1 Reply Latest reply on Sep 3, 2009 9:30 AM by Ilya Shaikovsky

    extendedDataTable - edit and persist

    Terje Bergesen Newbie

      I have searched the forum, but I could not see an answer. Sorry if this is covered in a thread I did not find. Also, I am a little new at this, so if I am asking a dumb question, just flame me :-)

      I have two extended datatables, one for parents and one for children. Clicking on an item in the parent displays all children for said parent. Each of the children in the child table has stuff that can be updated. So, child table looks something like (simplified):

      <rich:extendedDataTable value="#{parent.children}" var="child">
       <rich:column sortable="true" sortBy="#{child.age}">
       <f:facet name="header"><h:outputText value="Age"/></f:facet>
       <h:inputText value="#{child.age}" size="3"/>

      So, what I want to do is to edit the age of the child in place. Each row in the table therefore has an input box.

      What I want to do is to have, below the table, a "Save" button, which saves all the children who's had their age edited. That is, I do not want a command button/link for each row, only one.

      Is this possible? Any good ideas?