4 Replies Latest reply on Mar 12, 2009 5:51 AM by ilya_shaikovsky

    Urgent help - Rich inplaceInput - How to call entityHome.upd

    valatharv

      Hi,

      I have a very simple question, I have a form with inplaceInput value as "project.projectName".

      How can I call projectHome.update() of entity home using inplaceInput , just as I can call using action using commandlink, etc.
      <h:commandLink id="update" action="#{projectHome.update}"/>

      <h:form>
       <rich:inplaceInput defaultLabel="#{project.projectName}" showControls="true"
       controlsHorizontalPosition="left" controlsVerticalPosition="bottom"
       id="inplaceInput">
       <f:facet name="controls">
       <button onmousedown="#{rich:component('inplaceInput')}.save();"
       type="button">Update</button>
       <button onmousedown="#{rich:component('inplaceInput')}.cancel();"
       type="button">Cancel</button>
       </f:facet>
       </rich:inplaceInput>
       </h:form>