2 Replies Latest reply on Jul 7, 2008 9:38 AM by Mark Rich

    attachTo is not working in the demo of rich:componentControl

    Mark Rich Newbie

      did anyone found such problem below?

      pls check this demo http://livedemo.exadel.com/richfaces-demo/richfaces/componentControl.jsf?c=componentControl#

      I copied the sample codes in my sample, but the action to close the modal panel is not working.
      <f:facet name="controls">

      <h:panelGroup>

      <h:graphicImage value="/images/modal/close.png" style="cursor:pointer" id="hidelink"/>

      <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>

      </h:panelGroup>

      </f:facet>

      but it works when I revise the code as below:
      <f:facet name="controls">

      <h:panelGroup>

      <h:graphicImage value="/images/modal/close.png" style="cursor:pointer" id="hidelink">

      <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
      </h:graphicImage>

      </h:panelGroup>

      </f:facet>

      But seems it's only happen on h:graphicImage, for the code like:
      <h:outputLink value="#" id="link">

      Show Modal Panel </h:outputLink>

      <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>

      it's no problem.

      my RF version is 3.2.1 GA.
      Both IE & FF have this problem.