4 Replies Latest reply on Nov 21, 2008 9:40 AM by lee64

    How to make rich:effect working like this

    lee64

      Hi,i use jsFunction to rerender panel,but how to make rich:effect effective when a panel is rendered?
      My code:

      <a4j:form>
       <a4j:jsFunction name="showPanel" reRender="loginGroup">
       <a4j:actionparam name="p3" assignTo="#{page.loginPanel}"/>
       </a4j:jsFunction>
      </a4j:form>
      
      
      <a onclick="showPanel('yes')">show</a>
      
      
      <rich:panel id="loginGroup" rendered="#{page.loginPanel=='yes'}">//default is "no"
      ....
      </rich:panel>
      
      
      <rich:effect name="effectShow" for="loginPanel" type="BlindDown" />
      


      This code could rerender the panel,but how to use "effectShow()" fuction to enable rich:effect?
      I've tried many ways,but all failed.