You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Joachim Van der Auwera (JIRA)" <ji...@apache.org> on 2009/01/19 10:19:59 UTC

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

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


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.

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


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

Posted by "Joachim Van der Auwera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joachim Van der Auwera updated TAP5-453:
----------------------------------------

    Attachment: formfragment.zip

Some classes which indicate the problem.

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

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


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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-453.
-------------------------------------

    Resolution: Invalid

Please use AjaxFormLoop, instead of Loop+FormFragment.  It manages the properties correctly.

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


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

Posted by "Joachim Van der Auwera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joachim Van der Auwera updated TAP5-453:
----------------------------------------

    Attachment: formfragment.zip

Some classes which indicate the problem.

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

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


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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-453.
-------------------------------------

    Resolution: Invalid

Please use AjaxFormLoop, instead of Loop+FormFragment.  It manages the properties correctly.

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


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

Posted by "Joachim Van der Auwera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joachim Van der Auwera updated TAP5-453:
----------------------------------------

    Description: 
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}


  was: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.


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


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

Posted by "Joachim Van der Auwera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joachim Van der Auwera updated TAP5-453:
----------------------------------------

    Description: 
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}


  was: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.


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


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

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ 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.