You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2009/03/03 23:28:56 UTC

[jira] Commented: (TAP5-453) FormFragment does not work in a loop

    [ https://issues.apache.org/jira/browse/TAP5-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678490#action_12678490 ] 

Howard M. Lewis Ship commented on TAP5-453:
-------------------------------------------

This is related to how the FormFragment inherently operates, breaking the stream of component actions into per-fragment pieces. I'm not sure of a way to resolve this.

> FormFragment does not work in a loop
> ------------------------------------
>
>                 Key: TAP5-453
>                 URL: https://issues.apache.org/jira/browse/TAP5-453
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Joachim Van der Auwera
>         Attachments: formfragment.zip
>
>
> When using a formfragment in a loop, the form data is not saved correctly (the loop itmes are iterated before the data in the formfragment is saved. The end result is that all changes are put in the last item from the loop.
> Using the following template
> {code}
>         <t:loop source="list" value="current" volatile="true">
>             <div t:type="FormFragment" visible="true">
>             <input t:type="TextField" maxlength="50" size="50" value="current.content" />
>             <br />
>             </div>
>         </t:loop>
> {code}
> the data is not stored correctly, while this works.
> {code}
>         <t:loop source="list" value="current" volatile="true">
>             <input t:type="TextField" maxlength="50" size="50" value="current.content" />
>             <br />
>         </t:loop>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.