1 Reply Latest reply on Feb 24, 2009 6:57 PM by Nick Belaevski

    facelets.BUILD_BEFORE_RESTORE problem

    Drew Kutchar Newbie

      I have many forms that the form is inside a <a4j:outputPanel ajaxRenderer="true"> and on validation the form re-renders to show the validation errors.

      If I set the facelets.BUILD_BEFORE_RESTORE context parameter to true, (to avoid getting ViewExpiredExceptions on expired sessions) then when the form re-renders, the browser only shows the re-rendered HTML, not the whole page. So basically you start with a full page with header, footer, etc and after you click on the submit button , you get a page that only has the contents of the <a4j:outputPanel>, the form inputs and a funny URL with all the input names and values.

      I am using RichFaces 3.3.0.GA and Facelets 1.1.15.B1 with Seam 2.0.3.CR1 and JSF-RI 1.2_10.

      Thanks,

      Drew

        • 1. Re: facelets.BUILD_BEFORE_RESTORE problem
          Nick Belaevski Master

          Hi Drew,

          I cannot reproduce the problem:

          <ui:composition xmlns="http://www.w3.org/1999/xhtml"
           xmlns:ui="http://java.sun.com/jsf/facelets"
           xmlns:h="http://java.sun.com/jsf/html"
           xmlns:f="http://java.sun.com/jsf/core"
           xmlns:a4j="http://richfaces.org/a4j"
           xmlns:rich="http://richfaces.org/rich"
           xmlns:c="http://java.sun.com/jstl/core"
           xmlns:fn="http://java.sun.com/jsp/jstl/functions">
           <html>
           <head></head>
          
           <body>
           Some text
           <h:form>
           <a4j:outputPanel ajaxRendered="true">
           <h:inputText /><br />
           <h:inputText /><br />
           <h:inputText /><br />
           <h:inputText /><br />
          
           <a4j:commandLink value="ReRender" />
           </a4j:outputPanel>
          
           </h:form>
           Some text 2
           </body>
          
           </html>
          </ui:composition>


          Please post your page code.