You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Mario Ivankovits <ma...@ops.co.at> on 2007/09/20 13:47:26 UTC

[tomahawk] ppr and subform

Hi!

It looks like the ppr do not work with subforms if you do not use a
command* to trigger the ajax request.
With a command* stuff the subform is able to catch the queueEvent stuff
and set itself as submitted, but if you use the prr with a trigger
pattern like
partialTriggers="applyRightFilter(onkeyup)"
there is not command* involved and therefore the subform component is
not able to determine if it has been submitted - well - and it skips its
children processing.

I've seen the subform renderer renders a javascript piece (maybe a
relict) one can use to tell the system which subform is going to be
submitted from javascript. It is not used by the subform component
itself (can we remove this script?).

Basend on this idea I'd like to enhance the ppr component to set this
special hidden field to the component id of the subform where the ppr is
embedded in - but it requires us to depend the ppr on the subform tag.

Comments?

Ciao,
Mario


Re: [tomahawk] ppr and subform

Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!

Due to time constraints I hacked it that way for now (r577713).
If someone came up with a better idea we can revert it then.

Ciao,
Mario
> Hi!
>
> It looks like the ppr do not work with subforms if you do not use a
> command* to trigger the ajax request.
> With a command* stuff the subform is able to catch the queueEvent stuff
> and set itself as submitted, but if you use the prr with a trigger
> pattern like
> partialTriggers="applyRightFilter(onkeyup)"
> there is not command* involved and therefore the subform component is
> not able to determine if it has been submitted - well - and it skips its
> children processing.
>
> I've seen the subform renderer renders a javascript piece (maybe a
> relict) one can use to tell the system which subform is going to be
> submitted from javascript. It is not used by the subform component
> itself (can we remove this script?).
>
> Basend on this idea I'd like to enhance the ppr component to set this
> special hidden field to the component id of the subform where the ppr is
> embedded in - but it requires us to depend the ppr on the subform tag.
>
> Comments?
>
> Ciao,
> Mario
>
>   


-- 
mit freundlichen Grüßen

Mario Ivankovits
Software Engineering

OPS EDV VertriebsgesmbH
A-1120 Wien, Michael-Bernhard-Gasse 10

Firmenbuch Nr.: FN51233v, Handelsgericht Wien
Tel.: +43-1-8938810; Fax: +43-1-8938810/3700
http://www.ops.co.at

E-Mail: mario@ops.co.at
Skype: mario_ivankovits