0 Replies Latest reply on Feb 27, 2008 3:14 PM by Mouleeswaran Subramanian

    Simple toggle panel style problem

    Mouleeswaran Subramanian Newbie


      I am new to RichFaces. In my JSP page i am having a4j include tag..like below
      <rich:toolBar width="99%" styleClass="rich-toolbar,rich-toolbar-item">

      <rich:dropDownMenu value="Sample1">
      <rich:menuItem submitMode="ajax" value="Page1" actionListener="#{dynamicIncludeBean.openPage1}" reRender="includedView">
      <rich:menuItem submitMode="ajax" value="Page2" actionListener="#{dynamicIncludeBean.openPage2}" reRender="includedView">

      <a4j:include id="includedView" viewId="#{dynamicIncludeBean.page}"></a4j:include>

      in the page1.jsp i am having a Rich simpletoggle panel.....as below
      <rich:simpleTogglePanel switchType="client" label="Shipment Order Search Criteria" opened="true" style="text-align:left; width:98%" styleClass="rich-stglpanel-header,rich-stglpanel">

      I am not having any form or view tag in page1 source.....it contains only simpletoggle panel code....

      I have defined the styles in common.css and included that in my main page....

      Problem is that when i click the Menu option of page...page1 is getting loaded...but the styles what i have defined for simpletogglepannel is not applied.....

      Another intersting thing is if i refresh the page the style is getting applied.....

      Please let me know the solution for this...or any other alternative way to handle the style........