2 Replies Latest reply on Jan 14, 2013 1:09 PM by hamzas100

    Richfaces 4 / JSF 2 - Dispatch/Redirect : Page Rendering Issue:High

    kanakarr

      Hi

       

      Am using Richfaces 4 with JSF 2. The problem is , when i give any request as URL then it goes fine.

       

      From Action , based on out come , if it gets forwarded to any view id (i.e xhtml page) ,

       

      <rich:calendar> component is working fine. But when i give <rich:panel> <rich:dataTable> <rich:collapisiblePanel> like so components are not at all working as panel / collapisble panel.

       

      Am not understanding the logic behind this. Whe nthe same page works when it is invoked as a request from URL , why it could not work when is dispatched from faces_config.file.

       

      The point here again is , it is able to forward to given to-view-id , rendering <rich:calendar> component. When i try to choose any date , am seeing as all html kind of output. <panel:grid> also goes fine.

       

      Am not sure what is making this problem to fix the issue. Could you please help me on this. Please see the image below, where in panel shows only kind of html label. Not sure where is the problem.

       

       

       

      ThanksIssue.jpg

      Roopa

        • 1. Re: Richfaces 4 / JSF 2 - Dispatch/Redirect : Page Rendering Issue:High
          nbelaevski

          Hi Roopa,

           

          Are there any JS errors on the page? Do you use navigation by AJAX or via common form submit?

          • 2. Re: Richfaces 4 / JSF 2 - Dispatch/Redirect : Page Rendering Issue:High
            hamzas100

            We have here a case where some of the resource files are not being loaded while doing ajax page navigation whithout redirect(eg. not full page load). I know coz I am in the same situation right now and I checked this with Crome.  Even  putting the following in the navigated page does not help here.

             

              <h:outputStylesheet  name="inplaceSelect.ecss" target="body"/>

                     <h:outputScript  name="inplaceSelect.js" target="head"/>

             

            If we preload missing resource files on the first page some of the components will render ok but still we have some minor problems. I whould be very happy if someone finally helps to resolve the issue since using redirect will cause 2 server hits and request termination. I have asked about this problem from Max he said that my best bet is YOU GUYS.

             

            thanks in advance for being so cooperative.