[ http://issues.apache.org/jira/browse/MYFACES-337?page=all ]
Mathias Broekelmann resolved MYFACES-337:
-----------------------------------------
Resolution: Fixed
fixed.
> 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
>
> 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