myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <...@myfaces.apache.org>
Subject [jira] Issue Comment Edited: (MYFACES-2884) Getting error after switching 2.0.0 to 2.0.1
Date Tue, 17 Aug 2010 18:07:19 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-2884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899497#action_12899497
] 

Werner Punz edited comment on MYFACES-2884 at 8/17/10 2:07 PM:
---------------------------------------------------------------

Is the problem also there without ext-val?
I am asking because what you encounter should not happen in 2.0.1, you loose the viewstate
which I definitely have covered in the 2.0.1 sources the way you apply jsf.ajax.request.



      was (Author: werpu):
    Is the problem also there without ext-val?

  
> 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
>    Affects Versions: 2.0.1
>            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.


Mime
View raw message