-
1. Re: Call to StatusMessage.addToControl inside dataTable
crudolf Feb 5, 2009 6:19 PM (in response to crudolf)Sorry for my bad english.
What i want to do is:
- display a h:message inside of each datatable-row, in order to inform the user that he did an action for this row.Has anybody an idea?
-
2. Re: Call to StatusMessage.addToControl inside dataTable
hurzeler Mar 1, 2009 1:27 PM (in response to crudolf)Did you find the answer to this one?
-
3. Re: Call to StatusMessage.addToControl inside dataTable
crudolf Mar 1, 2009 1:44 PM (in response to crudolf)No, it doesn't work with StatusMessage.addToControl. I do it manually by using an h:commandButton with an actionListener. In the actionListener Method I get the ID of the clicked button. Then i can get the UIComponent out of the Context and append the message to the button, by using the plain JSF-FacesContext-message to add the message to the component.
So the XHTML looks something like:<h:dataTable value="#{list}"> <h:column> <h:inputText id="test"/> <h:message for="testbutton"> <h:commandButton id="testbutton" actionListener="#{TestComponent.testAction}" /> </h:column> </h:dataTable>
Sorry I have not the code for the
testaction
right here, but I think the solution is clear. -
4. Re: Call to StatusMessage.addToControl inside dataTable
joblini Mar 2, 2009 3:03 AM (in response to crudolf)The solution posted above by Christopher Rudolf is the best approach. This is a known issue with Seam's addToControl, see JIRA.