10 Replies Latest reply on Nov 27, 2011 5:41 AM by totoranky

    Richfaces4 richfaces css lost between 2 pages

    totoranky

      Hi all,

       

      I noticed that I lost my richfaces skin css when I used rich:panel in 2 successive pages.
      So, I implemented a single test with two similar pages test1.xhtml and test2.xhtml, test1 call test2 with

      a single h:commandLink.

       

      test1 

      < h:head > 

      </ h:head>  

      < h:body >   

           <h:commandLink action="test2" value="Go To test 2"  />    

           <rich:panel header="test" > 

                test text

           </rich:panel >

      </ h:body >

       

      test2

      < h:head > 

      </ h:head>   

      < h:body >   

           <h:commandLink action="test1" value="Back To test 1"  />     

           <rich:panel header="test" >  

                test text 

           </rich:panel >

      </ h:body >  

       

       

      When test1 page is displayed I have all richfaces elements with the appropriate layout, the css is used.

      When I click on the link to switch on test2, test 2 page is displayed without richfaces layout, the css is no longer applied.

      In the page source code the css link is removed from the header.

       

      I think I forgot something but I can't explain why the css disappears between two pages

      Thanks for your help.