6 Replies Latest reply on Mar 10, 2008 1:54 PM by ilya_shaikovsky

    rich:dataTable does not write changes in the last record

    skotinin

      Hi!

      Help me please. Problem with rich:dataTable.

      rich:dataTable does not save changes in the LAST RECORD (since 3.1.3)

       <h:form>
       <rich:dataTable value="#{BProduct.volume}" var="v" width="75%" columnClasses="sf,cf,cf" >
       <f:facet name="header">
       <rich:columnGroup>
       <h:column><h:outputText value="#{messages.topic}" /></h:column>
       <h:column><h:outputText value="#{messages_bproduct.topic_kind}" /></h:column>
       <h:column><h:outputLink value="javascript:Richfaces.showModalPanel('addVolume',{width:450,top:200})" ><h:outputText value="+" /></h:outputLink></h:column>
       </rich:columnGroup>
       </f:facet>
      
       <h:column>
       <h:outputText value="#{v.topic}. #{v.topic_name}" />
       </h:column>
      
       <h:column>
       <h:selectOneMenu value="#{v.kind}" >
       <f:selectItems value="#{FormUtil.topicKindList}" />
       </h:selectOneMenu>
       </h:column>
      
       <h:column>
       <h:commandLink value="-" action="#{BProduct.actionVolumeDelete}" />
       </h:column>
       </rich:dataTable>
      
       <br>
       <center>
       <h:commandButton value="#{BProduct.buttonIUD}" action="#{BProduct.actionVolumeAcceptChanges}" />
       <a4j:commandButton value="#{messages.cancel}" action="#{BProduct.actionVolumeUpdateCancel}" ajaxSingle="true" />
       </center>
       </h:form>
      


      h:dataTable - OK
      rich:dataTable 3.1.2 - OK

      ---
      Skotinin