3 Replies Latest reply on Apr 13, 2009 7:41 PM by Nick Belaevski

    InplaceInput usage

    Gaurav Arora Newbie

      Hi,
      I'm new to RichFaces and JSF in general but I managed to get a seam app going and am learning the usage of various Richfaces components. I can't, however, get the InplaceInput component to work.

      The code:

      <rich:column>
       <f:facet name="header">Buy price</f:facet>
       <rich:inplaceInput layout="block" value="#{rawMaterial.buyPrice}"
       converterMessage="Price value should be integer. Price at row #{row+1} can't be changed."
       id="inplace" required="true"
       requiredMessage="Price at row #{row+1} wasn't filled. Value can't be changed."
       changedHoverClass="hover" viewHoverClass="hover"
       viewClass="inplace" changedClass="inplace"
       selectOnEdit="true" editEvent="ondblclick">
      
       <a4j:support event="onviewactivated" reRender="rawMaterialList, messages" />
      
       </rich:inplaceInput>
      </rich:column>
      


      The page all displays and I am able to edit the values but the values don't get saved to the database. I know for sure that hibernate works because I can add and delete entities from the database. So what am I doing wrong?

      Thanks.