2 Replies Latest reply on May 8, 2008 4:37 AM by nparfait

    inplaceInput and saving changes

    nparfait

      I would like to automatically save changes in my backing bean after updating value in inplaceinput.

      The following code with an input box works successfully

      <h:inputText value="#{contactManager.contact.departmentDescription}">
       <a4j:support action="#{contactManager.saveText}" event="onchange"/>
      </h:inputText>
      


      However if i use an inplaceinput, when the action/actionListener is called the value hasn't been updated in the backing bean. How would I get this to work?

      <rich:inplaceInput defaultLabel="click to change" value="#{contactManager.contact.departmentDescription}">
       <a4j:support action="#{contactManager.saveText}" event="onchange"/>
      </rich:inplaceInput>
      


      I've also tried the onviewactivated event and it behaves the same way.
      I am using richfaces 3.2.1 CR3.

      Thanks,
      Nick