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

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

Ok I tried it with MyFaces 2.0.1, and could not reproduce it without ext-val, 
the funny stuff however is that if the form has an id form I get following 
error:
java.lang.IllegalStateException: component with duplicate id "form" found

Caused by:
java.lang.IllegalStateException - component with duplicate id "form" found

By changing the forms identifier to something else I am able to run it without 
errors.
The problem is not there on the latest 2.0.2-SNAPSHOT trunk.

Just retried, 2.0.2-SNAPSHOT works like a charm here, even with the id form, I 
assume that 2.0.1 has introduced maybe an element with the identifier form 
which is automatically added. I have not dug deeper and wont because it is 
fixed anyway.


      was (Author: werpu):
    Ok I tried it with MyFaces 2.0.1, and could not reproduce it without 
ext-val, the funny stuff however is that if the form has an id form I get 
following error:
java.lang.IllegalStateException: component with duplicate id "form" found

Caused by:
java.lang.IllegalStateException - component with duplicate id "form" found

By changing the forms identifier to something else I am able to run it without 
errors.
The problem is not there on the latest 2.0.2-SNAPSHOT trunk.

  
> 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.

Reply via email to