You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joachim Van der Auwera <jo...@progs.be> on 2009/01/15 23:19:27 UTC

problems when using FormFragment in a loop

After two days of hunting, I have discovered a bug (or maybe better) 
"limitation".
If you try to use the FormFragment component inside a loop, then the 
updates caused by the form elements in the formfragment will only be 
applied to the last item in the loop.

The form elements seem to be included at the end of the form instead of 
inside the loop element, which causes the problem.

Maybe at a minimum the documentation could be modified to indicate this 
limitation.

Kind regards,
Joachim

-- 
Joachim Van der Auwera
PROGS bvba, progs.be


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: problems when using FormFragment in a loop

Posted by Kalle Korhonen <ka...@gmail.com>.
Please open an issue for it; otherwise these will get lost.

Kalle


On Thu, Jan 15, 2009 at 2:19 PM, Joachim Van der Auwera <jo...@progs.be>wrote:

> After two days of hunting, I have discovered a bug (or maybe better)
> "limitation".
> If you try to use the FormFragment component inside a loop, then the
> updates caused by the form elements in the formfragment will only be applied
> to the last item in the loop.
>
> The form elements seem to be included at the end of the form instead of
> inside the loop element, which causes the problem.
>
> Maybe at a minimum the documentation could be modified to indicate this
> limitation.
>
> Kind regards,
> Joachim
>
> --
> Joachim Van der Auwera
> PROGS bvba, progs.be
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: problems when using FormFragment in a loop

Posted by Howard Lewis Ship <hl...@gmail.com>.
This is the reason for the AjaxFormLoop component.

On Thu, Jan 15, 2009 at 3:19 PM, Joachim Van der Auwera
<jo...@progs.be> wrote:
> After two days of hunting, I have discovered a bug (or maybe better)
> "limitation".
> If you try to use the FormFragment component inside a loop, then the updates
> caused by the form elements in the formfragment will only be applied to the
> last item in the loop.
>
> The form elements seem to be included at the end of the form instead of
> inside the loop element, which causes the problem.
>
> Maybe at a minimum the documentation could be modified to indicate this
> limitation.
>
> Kind regards,
> Joachim
>
> --
> Joachim Van der Auwera
> PROGS bvba, progs.be
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: problems when using FormFragment in a loop

Posted by Andrew Court <an...@gmail.com>.

Did anyone find a resolution (or file a JIRA) for this issue? 

I'm encountering exactly the same problem with formFragments in a loop. Only
the final loop iteration is updated on form submit and all the rest ignored.

Seems like a really fundamental problem with the formFragment component and
has me stumped.

Any ideas?

Thanks,
Andrew





Joachim Van der Auwera wrote:
> 
> After two days of hunting, I have discovered a bug (or maybe better) 
> "limitation".
> If you try to use the FormFragment component inside a loop, then the 
> updates caused by the form elements in the formfragment will only be 
> applied to the last item in the loop.
> 
> The form elements seem to be included at the end of the form instead of 
> inside the loop element, which causes the problem.
> 
> Maybe at a minimum the documentation could be modified to indicate this 
> limitation.
> 
> Kind regards,
> Joachim
> 
> -- 
> Joachim Van der Auwera
> PROGS bvba, progs.be
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/problems-when-using-FormFragment-in-a-loop-tp21488113p23287963.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org