[ http://issues.apache.org/jira/browse/MYFACES-38?page=history ]

Heath Borders-Wing updated MYFACES-38:
--------------------------------------

    Attachment: UIData.java

Fixed the nested UIData bug.
I had to override encodeEnd to do it (which means that our code does not have 
the _exact_ same interface as Sun's RI), and its probably not as effecient as 
it could be, but I wasn't entirely sure about the assumptions I could make for 
efficiency's sake.  Better to get working code out to the community to toy with 
as needed.

> nested h:dataTables don't correctly update its children (was: SF#1030116  by 
> Heath - heaththegreat)
> ---------------------------------------------------------------------------------------------------
>
>          Key: MYFACES-38
>          URL: http://issues.apache.org/jira/browse/MYFACES-38
>      Project: MyFaces
>         Type: Bug
>     Reporter: Heath Borders-Wing
>     Assignee: Manfred Geiler
>  Attachments: 3-Layered-MyFaces-Nested-DataTable-Test.war, 
> MyFaces-Nested-DataTable-Test.war, UIData.java
>
> Given the following jsp:
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"
> %>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"
> %>
> <f:view>
> <h:form>
> <h:dataTable id="containersTable"
> var="container" value="#{test.containers}">
> <h:column>
> <h:dataTable
> id="subtainersTable" var="subtainer" value="#
> {container.subtainers}">
> <h:column>
> <h:inputText value="#{subtainer.name}" />
> </h:column>
> </h:datatable>
> </h:column>
> </h:dataTable>
> <h:commandButton value="Submit" />
> </h:form>
> </f:view>
> The inner datatable does not correctly update the
> models.
> If all inner datatable rows are updated, the only inner
> row's setter that gets called is the first inner row, but it
> gets called with data from the last inner row.
> We are dependent upon this feature, and tried to fix it
> ourselves, but our debugger doesn't work well with the
> jars.
> -------------------------
> Additional comment at SF:
> http://sourceforge.net/tracker/index.php?func=detail&aid=1030116&group_id=69709&atid=525508

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to