3 Replies Latest reply on Apr 9, 2008 4:54 AM by ilya_shaikovsky

    rich:componentControl on rich:inplaceInput

    elichtas

      I am trying to add a <rich:componentControl> to a <t:commandButton> in order to change the <rich:inplaceInput> to an edit state by clicking the t:commandButton instead of the inplaceInput component itself.

      I am currently using Apache MyFaces 1.2.2 along with Apache Tomahawk 1.1.6

      <h:form>
       <t:commandButton type="button" value="Action">
       <rich:componentControl for="myInplaceInput" disableDefault="true" event="onclick" operation="edit" />
       </t:commandButton>
       <rich:inplaceInput id="myInplaceInput" value="#{fileServerForm.name}" />
      </h:form>
      


      If I am reading the documentation correctly for the <rich:componentControl> component, i should be able to specify operation="edit" as edit() is available in the <rich:inplaceInput> Javascript API.

      I am however getting the following javascript error from Firebug in FireFox:

      component[operation] is not a function

      component[operation](cevent,paramsValue);});if(disableDefault){Event.stop(cevent...

      The javascript error is also present in IE7.

      Any solution? Thanks!