[ 
http://issues.apache.org/jira/browse/MYFACES-337?page=comments#action_12316109 
] 

Mathias Broekelmann commented on MYFACES-337:
---------------------------------------------

I´ve verified your example and it works with h:datatable and x:datatable 
without replacing the values.

Please wait until the next nightly build is created or get the latest version 
from the svn repository and verify it. It is not working with the current 
nightly build.

I´ve fixed several bugs in the datatable (especially for nested datatable) 
today.

> Nested dataTable buttons not working
> ------------------------------------
>
>          Key: MYFACES-337
>          URL: http://issues.apache.org/jira/browse/MYFACES-337
>      Project: MyFaces
>         Type: Bug
>     Versions: Nightly Build
>     Reporter: Peter Mahoney
>     Assignee: Mathias Broekelmann
>  Attachments: testtable.zip
>
> Buttons within a nested dataTable always call the action methods bound to the 
> first row of the outer table:
> For example, using the JSP below, if the delete button is clicked for the 
> third answer of question 2, answer.deleteAnswer() is called on the third 
> answer of question 1 instead.
> <h:dataTable value="#{handler.poll.questions}" var="question">
>       <h:column> 
>               <h:dataTable value="#{question.answers}" var="answer">
>                       <h:column>
>                               <h:outputLabel for="answerText" 
> value="Q#{question.questionNumber} A#{answer.answerNumber}"/>
>                               <h:inputText id="answerText" 
> value="#{answer.text}"/>
>                       </h:column>
>                       <h:column>
>                               <h:commandButton 
> action="#{answer.deleteAnswer}" value="Delete"/>
>                       </h:column>
>               </h:dataTable>    
>       </h:column>
> </h:dataTable>
> Probably related is that the text of all other answers for the first question 
> becomes the text from the last answer of the last question following clicking 
> on the delete button. This did not occur using the RI.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to