6 Replies Latest reply on Apr 29, 2011 3:56 PM by bmuniz

    Richfaces 4 inplaceInput saveing values to bean?

    jonask

      Hi all,

       

      i've a problem saving values entered into an inplaceinut field to the bean.

       

      here my code:

      <rich:dataTable id="table" value="#{treeBean.currentSelection.items}" var="item" width="350px" columnClasses=";columns;columns;columns" rows="15">
           <rich:column>
                <f:facet name="header">
                       <h:outputText value="AttributBezeichnung" />
                  </f:facet>
                <h:outputText layout="block" value="#{item.attributBezeichnung}" />
           </rich:column>
           <rich:column>
           <f:facet name="header">
                <h:outputText value="AttributWert" />
           </f:facet>
                <rich:inplaceInput layout="block" value="#{item.attributWert}">
                       <a4j:ajax event="change" render="table"/>
                  </rich:inplaceInput>
           </rich:column>
       </rich:dataTable>
      
      

       

      The bean treeBean.currentSelection.items is a list of ItemBeans with the attributes "attributBezeichnung" and "attributWert" (and normal set/get-methods) the display of these values works great, but when i enter different values in the input-field it always resets the values and doesnt save them to the bean!

       

      Thank you, Jonas