6 Replies Latest reply on May 30, 2008 7:35 PM by guarf

    Can't get it work with any release after 3.2.1 CR5

    guarf

      My page works fine with 3.2.1 CR5, but now fail with 3.2.1 GA and I can't find where is the problem.

      I comment 99% of my page to find the problem, and im thinking the problem probably will not be in the .xhtml pages.

      Apache Log:

      30/05/2008 08:35:09 AM javax.faces.webapp._ErrorPageWriter handleException
      GRAVE: An exception occurred
      javax.faces.application.ViewExpiredException: /main.jsfThe expected view was not returned for the view identifier: /main.jsf
      at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88)
      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
      at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:148)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)
      30/05/2008 08:35:09 AM org.apache.myfaces.renderkit.html.util.DefaultAddResource writeMyFacesJavascriptBeforeBodyEnd
      ADVERTENCIA: MyFaces special javascript could not be retrieved from request-map.


      a4j:log
      debug[8:38:00,206]: Have Event [object Object] with properties: target: undefined, srcElement: [object], type: click
      debug[8:38:00,206]: NEW AJAX REQUEST !!! with form :formBody
      debug[8:38:00,206]: Append text control formBody:inputusername with value [admin] and value attribute [admin]
      debug[8:38:00,206]: Append password control formBody:inputpassword with value [admin] and value attribute [admin]
      debug[8:38:00,206]: Append hidden control formBody_SUBMIT with value [1] and value attribute [1]
      debug[8:38:00,206]: Append hidden control javax.faces.ViewState with value [lGNaxDQ3504egLMMWs1AkjHZPQuxcbkvOMvoedUBY/ztHPeSGI0WRF01OkOHkf/sg6xyRe2EcwSoAySEktoBGw==] and value attribute [lGNaxDQ3504egLMMWs1AkjHZPQuxcbkvOMvoedUBY/ztHPeSGI0WRF01OkOHkf/sg6xyRe2EcwSoAySEktoBGw==]
      debug[8:38:00,216]: parameter formBody:loginSubmit with value formBody:loginSubmit
      debug[8:38:00,216]: Start XmlHttpRequest
      debug[8:38:00,216]: Reqest state : 1
      debug[8:38:00,226]: QueryString: AJAXREQUEST=_viewRoot&formBody%3Ainputusername=admin&formBody%3Ainputpassword=admin&formBody_SUBMIT=1&javax.faces.ViewState=lGNaxDQ3504egLMMWs1AkjHZPQuxcbkvOMvoedUBY%2FztHPeSGI0WRF01OkOHkf%2Fsg6xyRe2EcwSoAySEktoBGw%3D%3D&formBody%3AloginSubmit=formBody%3AloginSubmit&
      debug[8:38:00,376]: Reqest state : 2
      debug[8:38:00,376]: Reqest state : 3
      debug[8:38:00,376]: Reqest state : 4
      debug[8:38:00,376]: Reqest end with state 4
      debug[8:38:00,376]: Response with content-type: text/html;charset=UTF-8
      debug[8:38:00,376]: Full response content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"><head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>Error - /main.jsfThe expected view was not returned for the view identifier: /main.jsf</title>
      <style type="text/css">
      body, div, span, td, th, caption { font-family: 'Trebuchet MS', Verdana, Arial, Sans-Serif; font-size: small; }
      ul, li, pre { padding: 0; margin: 0; }h1 { color: #900; }
      h2, h2 span { font-size: large; color: #339; }
      h2 a { text-decoration: none; color: #339; }
      .grayBox { padding: 8px; margin: 10px 0; border: 1px solid #CCC; background-color: #f9f9f9; }
      #error { color: #900; font-weight: bold; font-size: medium; }
      #trace, #tree, #vars { display: none; }code { font-size: medium; }
      #tree dl { color: #006; }#tree dd { margin-top: 2px; margin-bottom: 2px; }
      #tree dt { border: 1px solid #DDD; padding: 4px; border-left: 2px solid #666; font-family: "Courier New", Courier, mono; font-size: small; }
      .uicText { color: #999; }
      table { border: 1px solid #CCC; border-collapse: collapse; border-spacing: 0px; width: 100%; text-align: left; }
      td { border: 1px solid #CCC; }
      thead tr th { padding: 2px; color: #030; background-color: #F9F9F9; }
      tbody tr td { padding: 10px 6px; }
      table caption { text-align: left; padding: 10px 0; font-size: large; }</style>
      <style type="text/css" media="print">#trace, #tree, #vars { display: block; }
      </style><script language="javascript" type="text/javascript">
      function faceletstoggle(id) { var style = document.getElementById(id).style;
       if ("block" == style.display) { style.display = "none";
       document.getElementById(id+"Off").style.display = "inline";
       document.getElementById(id+"On").style.display = "none"; } else {
       style.display = "block";
       document.getElementById(id+"Off").style.display = "none";
       document.getElementById(id+"On").style.display = "inline"; }}</script></head>
      <body><h1>An Error Occurred:</h1>
      <div id="error" class="grayBox" style="border: 1px solid #900;">/main.jsfThe expected view was not returned for the view identifier: /main.jsf</div>
      <h2><a href="#" onclick="faceletstoggle('trace'); return false;"><span id="traceOff">+</span><span id="traceOn" style="display: none;">-</span> Stack Trace</a></h2>
      <div id="trace" class="grayBox"><pre><code>javax.faces.application.ViewExpiredException: /main.jsfThe expected view was not returned for the view identifier: /main.jsf
       at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88)
       at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
       at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
       at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:148)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:619)</code></pre></div>
      <h2><a href="#" onclick="faceletstoggle('tree'); return false;"><span id="treeOff">+</span><span id="treeOn" style="display: none;">-</span> Component Tree</a></h2>
      <div id="tree" class="grayBox"><code></code></div>
      <h2><a href="#" onclick="faceletstoggle('vars'); return false;"><span id="varsOff">+</span><span id="varsOn" style="display: none;">-</span> Scoped Variables</a></h2>
      <div id="vars"><table><caption>Request Parameters</caption><thead><tr><th style="width: 10%; ">Name</th><th style="width:
      90%; ">Value</th></tr></thead><tbody><tr><td>AJAXREQUEST</td><td>_viewRoot</td></tr><tr><td>formBody:inputpassword</td><td>admin</td></tr><tr><td>formBody:inputusername</td><td>admin</td><
      /tr><tr><td>formBody:loginSubmit</td><td>formBody:loginSubmit</td></tr><tr><td>formBody_SUBMIT</td><td>1</td></tr></tbody></table><table>
      <caption>Request Attributes</caption><thead><tr><th style="width: 10%; ">Name</th><th style="width: 90%; ">Value</th></tr></thead><tbody><tr><td>ajaxContext</td><td>org.ajax4jsf.context.AjaxContextImpl@6256a6</td></tr>
      </tbody></table><table><caption>Session Attributes</caption><thead><tr><th
      style="width: 10%; ">Name</th><th style="width: 90%; ">Value</th></tr></thead><tbody><tr><td>Login</td><td>com.planex.smsbroadcaster.jsfbeans.Login@19d365c</td></tr><tr>
      <td>componentNavigator</td><td>com.planex.common.ComponentNavigator@18366d</td></tr><tr><td>jsf_sequence</td>
      <td>4</td></tr></tbody></table><table><caption>Application
      Attributes</caption><thead><tr><th style="width: 10%; ">Name</th><th style="width: 90%; ">Value</th></tr></thead><tbody><tr><td
      colspan="2"><em>None</em></td></tr></tbody></table></div>
      <div class="grayBox" style="text-align: right; color: #666;">30/05/2008 08:38:00 AM - Generated by Facelets</div>
      </body></html>
      debug[8:38:00,376]: Header Ajax-Response not found, search in <meta>
      debug[8:38:00,376]: Header Ajax-Expired not found, search in <meta>
      warn[8:38:00,376]: No ajax response header
      debug[8:38:00,376]: Header Location not found, search in <meta>
      debug[8:38:00,376]: replace all page content with response
      debug[8:38:00,376]: setup custom document.open method
      debug[8:38:00,386]: exception during write page content undefined
      error[8:38:00,396]: Error parsing responseXML Parsing Error: DTD is prohibited.
      Location: Line Number 1, Column 11:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      -----------^
      debug[8:38:00,396]: page content has been replaced


      it present an parsing error with the error page who present the same log presented in tomcat.


      Please, any solution or suggestion ?

        • 1. Re: Can't get it work with any release after 3.2.1 CR5
          ilya_shaikovsky

          could you show us your web.xml and page where the error risen?

          • 2. Re: Can't get it work with any release after 3.2.1 CR5
            guarf

            I change the STATE_SAVING_METHOD from server to client and it works fine.

            <context-param>
             <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
             <param-value>client</param-value>
             </context-param>


            I don't know if this is a good choice.

            web.xml
            <?xml version="1.0" encoding="UTF-8"?>
            <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
             <display-name>SMS Broadcaster</display-name>
             <context-param>
             <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
             <param-value>client</param-value> <!-- damn -->
             </context-param>
            <!-- Optional JSF-RI Parameters to Help Debug -->
             <context-param>
             <param-name>com.sun.faces.validateXml</param-name>
             <param-value>true</param-value>
             </context-param>
             <context-param>
             <param-name>com.sun.faces.verifyObjects</param-name>
             <param-value>true</param-value>
             </context-param>
             <!-- Use Documents Saved as *.xhtml -->
             <context-param>
             <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
             <param-value>.xhtml</param-value>
             </context-param>
             <context-param>
             <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
             <param-value>true</param-value>
             </context-param>
             <context-param>
             <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>
             <param-value>true</param-value>
             </context-param>
             <context-param>
             <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
             <param-value>NONE, NEKO, TIDY</param-value>
             </context-param>
             <context-param>
             <param-name>org.richfaces.CONTROL_SKINNING</param-name>
             <param-value>enable</param-value>
             </context-param>
             <context-param>
             <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
             <param-value>com.sun.facelets.FaceletViewHandler</param-value>
             </context-param>
             <context-param>
             <param-name>org.richfaces.LoadStyleStrategy</param-name>
             <param-value>ALL</param-value>
             </context-param>
             <context-param>
             <param-name>org.richfaces.LoadScriptStrategy</param-name>
             <param-value>ALL</param-value>
             </context-param>
             <context-param>
             <param-name>facelets.REFRESH_PERIOD</param-name>
             <param-value>2</param-value>
             </context-param>
            
             <!-- Remove Comments -->
             <context-param>
             <param-name>facelets.SKIP_COMMENTS</param-name>
             <param-value>true</param-value>
             </context-param>
             <!-- Special Debug Output for Development -->
             <context-param>
             <param-name>facelets.DEVELOPMENT</param-name>
             <param-value>true</param-value>
             </context-param>
            
            
             <!-- RichFaces -->
             <context-param>
             <param-name>org.richfaces.SKIN</param-name>
             <param-value>blueSky</param-value>
             </context-param>
             <filter>
             <display-name>RichFaces Filter</display-name>
             <filter-name>richfaces</filter-name>
             <filter-class>org.ajax4jsf.Filter</filter-class>
             </filter>
             <filter-mapping>
             <filter-name>richfaces</filter-name>
             <servlet-name>Faces Servlet</servlet-name>
             <dispatcher>REQUEST</dispatcher>
             <dispatcher>FORWARD</dispatcher>
             <dispatcher>INCLUDE</dispatcher>
             </filter-mapping>
            
             <filter>
             <filter-name>UploadFilter</filter-name>
             <filter-class>com.sun.webui.jsf.util.UploadFilter</filter-class>
             <init-param>
             <description>The maximum allowed upload size in bytes. If this is set to a negative value, there is no maximum. The default value is 1000000.</description>
             <param-name>maxSize</param-name>
             <param-value>1000000</param-value>
             </init-param>
             <init-param>
             <description>The size (in bytes) of an uploaded file which, if it is exceeded, will cause the file to be written directly to disk instead of stored in memory. Files smaller than or equal to this size will be stored in memory. The default value is 4096.</description>
             <param-name>sizeThreshold</param-name>
             <param-value>4096</param-value>
             </init-param>
             </filter>
            
             <filter-mapping>
             <filter-name>UploadFilter</filter-name>
             <servlet-name>Faces Servlet</servlet-name>
             </filter-mapping>
            
             <!-- Faces Servlet -->
             <servlet>
             <servlet-name>Faces Servlet</servlet-name>
             <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
             <init-param>
             <param-name>javax.faces.LIFECYCLE_ID</param-name>
             <param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
             </init-param>
             <load-on-startup>1</load-on-startup>
             </servlet>
             <servlet>
             <servlet-name>ExceptionHandlerServlet</servlet-name>
             <servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>
             <init-param>
             <param-name>errorHost</param-name>
             <param-value>localhost</param-value>
             </init-param>
             <init-param>
             <param-name>errorPort</param-name>
             <param-value>24444</param-value>
             </init-param>
             </servlet>
             <servlet>
             <servlet-name>ThemeServlet</servlet-name>
             <servlet-class>com.sun.webui.theme.ThemeServlet</servlet-class>
             </servlet>
            
             <!-- Faces Servlet Mapping -->
             <servlet-mapping>
             <servlet-name>Faces Servlet</servlet-name>
             <url-pattern>*.jsf</url-pattern>
             </servlet-mapping>
            
             <servlet-mapping>
             <servlet-name>ExceptionHandlerServlet</servlet-name>
             <url-pattern>/error/ExceptionHandler</url-pattern>
             </servlet-mapping>
             <servlet-mapping>
             <servlet-name>ThemeServlet</servlet-name>
             <url-pattern>/theme/*</url-pattern>
             </servlet-mapping>
            
             <session-config>
             <session-timeout>
             30
             </session-timeout>
             </session-config>
            
             <welcome-file-list>
             <welcome-file>index.jsp</welcome-file>
             </welcome-file-list>
            
             <!-- Chart -->
             <servlet>
             <servlet-name>Chartlet</servlet-name>
             <servlet-class>net.sf.jsfcomp.chartcreator.Chartlet</servlet-class>
             </servlet>
             <servlet-mapping>
             <servlet-name>Chartlet</servlet-name>
             <url-pattern>*.chart</url-pattern>
             </servlet-mapping>
             <context-param>
             <param-name>net.sf.jsfcomp.chartcreator.USE_CHARTLET</param-name>
             <param-value>true</param-value>
             </context-param>
            
             <!-- Filter de antes -->
             <filter>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
             <init-param>
             <param-name>maxFileSize</param-name>
             <param-value>20m</param-value>
             </init-param>
             <init-param>
             <param-name>uploadThresholdSize</param-name>
             <param-value>10</param-value>
             </init-param>
             </filter>
             <filter-mapping>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <servlet-name>Faces Servlet</servlet-name>
             </filter-mapping>
             <filter-mapping>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
             </filter-mapping>
            
             <!-- Error -->
             <error-page>
             <exception-type>javax.servlet.ServletException</exception-type>
             <location>/error/ExceptionHandler</location>
             </error-page>
             <error-page>
             <exception-type>java.io.IOException</exception-type>
             <location>/error/ExceptionHandler</location>
             </error-page>
             <error-page>
             <exception-type>javax.faces.FacesException</exception-type>
             <location>/error/ExceptionHandler</location>
             </error-page>
             <error-page>
             <exception-type>com.sun.rave.web.ui.appbase.ApplicationException</exception-type>
             <location>/error/ExceptionHandler</location>
             </error-page>
            
             <jsp-config>
             <jsp-property-group>
             <url-pattern>*.jspf</url-pattern>
             <is-xml>false</is-xml>
             </jsp-property-group>
             </jsp-config>
            
            </web-app>
            


            login page
            <html 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">
            
            <ui:composition>
             <rich:panel id="loginPanel" styleClass="loginBody" >
            
             <f:loadBundle basename="com.planex.smsbroadcaster.messageresource.MessageResource" var="msg" />
            
             <h:graphicImage id="loginLogo" value="/images/smsb2y.gif" width="227" height="171" rendered="${Login.notLoggedIn}"/>
             <br />
             <h:panelGrid styleClass="loginPanelGrid" columns="3" cellpadding="0" cellspacing="4" border="0" rendered="${Login.notLoggedIn}">
             <h:outputText value="#{msg.username}: " styleClass="loginPanelGridRight"/>
             <h:inputText value="#{Login.username}" id="inputusername" required="true" maxlength="255" styleClass="loginPanelGridLeft"/>
             <h:message for="inputusername" styleClass="loginPanelGridLeft"/>
             <h:outputText value="#{msg.password}:" styleClass="loginPanelGridRight"/>
             <h:inputSecret value="#{Login.password}" id="inputpassword" required="true" redisplay="false" maxlength="255" styleClass="loginPanelGridLeft"/>
             <h:message for="inputpassword" styleClass="loginPanelGridLeft" />
             </h:panelGrid>
            
             <a4j:commandButton type="submit" id="loginSubmit" action="#{Login.login}" onclick="loginEffect({duration:1.0})" value="#{msg.logintitle}" reRender="formBody,formHeader,formMenu,formFooter" rendered="${Login.notLoggedIn}"/>
             <rich:effect name="loginEffect" for="formBody" type="BlindUp" />
             <br />
             <br />
             <h:outputText value="#{msg.version}" styleClass="version" />
            
             </rich:panel>
            </ui:composition>
            </html>


            With the state saving method set to server the method from the a4j:CommandButton never been called (Login.login).


            • 3. Re: Can't get it work with any release after 3.2.1 CR5
              • 4. Re: Can't get it work with any release after 3.2.1 CR5
                guarf

                Yes, but i report it first :)

                I newbie with richfaces, i want to know the benefits of server saving method.

                • 5. Re: Can't get it work with any release after 3.2.1 CR5

                   

                  "Guarf" wrote:
                  Yes, but i report it first :)

                  Congratulation! You are the winner.

                  "Guarf" wrote:

                  I newbie with richfaces, i want to know the benefits of server saving method.


                  This is not about RichFaces. State Saving method is a part of JSF specification and implemented on the level of JSF implementation (JSF-RI or MyFaces, like in your case).

                  JSF has to store information about the component tree (but not the whole tree) between the requests. In case of server side saving method, it is stored on the server. Otherwise, travels to the client and returns back with each request (ajax or non-ajax).
                  Server's method saves resources, client's one saves traffic. Both have benefits and drawbacks.

                  • 6. Re: Can't get it work with any release after 3.2.1 CR5
                    guarf

                    Thx for your answer SergeySmirnov !