2 Replies Latest reply on Jun 16, 2009 10:10 AM by Ilya Shaikovsky

    How To: Effects on TogglePanel?

    Prathamesh Gaddam Novice

      Dear Nick/Ilya,

      I need to apply the rich:effect on the rich:togglePanel. OnClick it should change the state to 'opened' and 'BlindUp' after delay. I have tried some of the combination, however failed. One of the way tried is as:

      <rich:togglePanel id="commentTogglePanel" switchType="client" stateOrder="close,open">
       <f:facet name="close">
       <rich:toggleControl value="Show comments" switchToState="open" oncomplete="hideDiv({duration:0.7})"/>
       </f:facet>
       <f:facet name="open">
       <rich:panel id="commentPanel">
       <h:outputText value="#{timesheets.comment}"/>
       <!-- <rich:toggleControl value="Close" switchToState="close"/> -->
       </rich:panel>
       </f:facet>
       <rich:effect name="hideDiv" for="commentPanel"
       type="BlindUp" params="delay:0.5,duration:1.0"/>
      </rich:togglePanel>


      Note: I'm using this in a column of rich:dataTable.

      Please assist, as what m'I missing? Thank you in advance!