myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] Resolved: (TOMAHAWK-1568) UIInputs in DataTable (UIData) lose submitted values when UICommands are set to immediate=true
Date Thu, 17 Mar 2011 00:12:29 GMT

     [ https://issues.apache.org/jira/browse/TOMAHAWK-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leonardo Uribe resolved TOMAHAWK-1568.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.11-SNAPSHOT
         Assignee: Leonardo Uribe

I tried the example an now with the modifications on TOMAHAWK-961 and TOMAHAWK-1567 this can
be closed as fixed. To make it work, it is just necessary to use <t:dataTable preserveRowComponentState="true"
....>. Use rowKey property is optional, and it allows define the association between the
row and the component state. 

> UIInputs in DataTable (UIData) lose submitted values when UICommands are set to immediate=true
> ----------------------------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1568
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1568
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Extended Datatable
>    Affects Versions: 1.1.1, 1.1.2, 1.1.3
>            Reporter: David Green
>            Assignee: Leonardo Uribe
>             Fix For: 1.1.11-SNAPSHOT
>
>         Attachments: FaceletsTestExampleByMikeKienenberger.zip, TestExampleByDavidGreen.zip
>
>
> Similar to MYFACES-335, DataTable values do not reflect a form submission is an action
is performed with immediate=true
> Perform the following actions:
> Failure Scenario:
> 1. load the page in your browser Test.jsp
> 2. Press the "Add" button once to add a row to the data table.
> 3. Enter some data in the text field in the added row.
> 4. Press "Add" again to add a second row to the data table.
> 5. Notice that the rendered page now has two rows in the data table, however text entered
into the text field in the first row is now lost.
> Success Scenario:
> 1. Repeat steps 1 to 4 of the failure scenario (above).
> 2. Now press "Delete" on the second row in the data table.
> 3. Notice that the rendered page now has only one row and it is containing text entered
in step 3 as expected.
> This test confirms that data tables work as expected when immediate=true is not used,
but that data tables fail to work as expected when immediate=true is used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message