tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] Commented: (TAP5-453) FormFragment does not work in a loop
Date Tue, 03 Mar 2009 22:28:56 GMT

    [ 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.


Mime
View raw message