2 Replies Latest reply on Feb 27, 2010 5:50 PM by Rafal Chojnacki

    How to hide RichFaces component on load

    Rafal Chojnacki Newbie

      Hi All,


      I would like to hide selected rendered component (for example: label) on page load. This gives mi opportunity to subsequently show component after user action (for example: when user clicks link).


      Here is example:

      <a4j:outputPanel id="myPanel">

      <h:outputText value="Text 1" />

      <h:outputText value="Text 2" />


      <a4j:commandLink ajaxSingle="true" onclick="#{rich:component('myPanel')}.show()">

      <h:outputText value="Show panel"/>



      Panel myPanel should be hidden at the begining (after page load) and should apper when user click link.


      Can you give me please advice how to do that?