Getting error after switching 2.0.0 to 2.0.1
--------------------------------------------

                 Key: MYFACES-2884
                 URL: https://issues.apache.org/jira/browse/MYFACES-2884
             Project: MyFaces Core
          Issue Type: Bug
            Reporter: Gurkan Erdogdu


After switching to 2.0.1, getting following exceptions while accessing JSF page

Aug 17, 2010 4:41:41 PM org.apache.myfaces.renderkit.ErrorPageWriter 
handleThrowable
SEVERE: An exception occurred
javax.faces.application.ViewExpiredException: /counter.jsfNo saved view state 
could be found for the view identifier: /counter.jsf
        at 
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:128)
        at 
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171)
        at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)

Code is
------------
<html xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:h="http://java.sun.com/jsf/html";>
<h:head>
        <title>JSF2 Ajax with OpenWebBeans Demo</title>
</h:head>
<h:body>
        
        <h3>JSF2 Ajax Demo :: Click <b>Count</b> button to inrease your 
count</h3>

        <h:form id="form">
                
                <h:outputScript name="jsf.js" library="javax.faces" 
target="body"></h:outputScript>
                        
                <div>
                        <h:commandButton id="button1" value="Count..." 
actionListener="#{helloBean.processAction}"
                            onclick="jsf.ajax.request(this,event, 
{execute:'form:button1',render:'form:status'});return false;">
                        </h:commandButton>
                
                </div>
                
                <div>           
                        <h:outputText value="Counter Number : " />
                        <h:outputText value="#{helloBean.count}" id="status" />
                </div>
        </h:form>

</h:body>
</html>

Full source code is here!
http://siwpas.googlecode.com/svn/trunk/samples/hellojsf2/

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to