5 Replies Latest reply on Apr 6, 2010 10:53 AM by Ilya Shaikovsky

    save rich:datatable data

    odelya yomtov Novice



      I have this code :

      <a4j:keepAlive beanName="bJobDetailsBean" />


              <rich:dataTable  rows="7" value="#{bJobDetailsBean.lreqs}"  var="req"

                  id="reqs" width="630px" binding="#{bJobDetailsBean.table}" >



                  <rich:column label="Value" styleClass="schColL" width="90px"

                      <f:facet name="header">
                          <h:outputText value="#{bJobDetailsBean.colValue}" />
                      <h:inputText value="#{req.value}" immediate="true">
              <a4j:commandButton value="Save"
                  action="#{bJobDetailsBean.saveChanges}" ></a4j:commandButton>


      with the bean:

      private List<JobBookingDetail> lreqs;

      public List<JobBookingDetail> getLreqs() {
              return lreqs;

          public void setLreqs(List<JobBookingDetail> lreqs) {
              this.lreqs = lreqs;


      public String saveChanges() {


      the value of lreqs is never being saved! even if the user had entered a different data!