8 Replies Latest reply on Oct 5, 2007 12:50 PM by Sergey Smirnov

    rich:effect onload hide a panel

    Lynne Johnson Newbie

      I am trying to get a panel to be hidden when the page loads. I would like it to work like the 'Show Source' link functionality on the RichDemo examples. I followed the effect example . . .

      <a4j:form id="bookingform" ajaxSubmit="true">
      <rich:effect name="hidePanel" for="bookingpanel" type="BlindUp" />
      <rich:effect name="showPanel" for="bookingpanel" type="BlindDown" />
      <rich:effect for="window" event="onload" type="BlindUp" params="id:'bookingpanel'" />
      <h:commandLink id="commandbookingshow" onclick="showPanel();return false;" styleClass="showhide" value="Make a booking request . . . " />
      <a4j:outputPanel id="bookingpanel" ajaxRendered="true" layout="block">

      however, it doesn't work . . . any suggestions?