Hi All,
I am having a strange problem after moving my application from sun's jsf to
myfaces. Everything was OK with Sun's jsf. However, I am starting to get
ViewExpiredException after moving to myfaces. The problem seems due to the
following line in one of my customerzied components:
Object method = cmd.getAttributes().get("method");
if(method != null && method instanceof MethodBinding) {
(UICommand) cmd.setAction((MethodBinding)method);
}
If I remove the above lines, the program will be OK with myfaces. But I need
a way to setAction to this component (which extends UICommand)
programmingly. Here is the tack trace when exception happens. Any insight
will be greatly appreciated...
Error message: Exception Occurred
Status code: 500
Message: /jsp/my1.faces The expected view was not returned for the view
identifier: /jsp/my1.faces
Exception type: class javax.faces.application.ViewExpiredException
Request URI: /mycontext/jsp/my1.faces
Exception: javax.faces.application.ViewExpiredException: /jsp/my1.facesThe
expected view was not returned for the view identifier: /jsp/my1.faces
Stack trace:
javax.faces.application.ViewExpiredException : /jsp/my1.facesThe expected
view was not returned for the view identifier: /jsp/my1.faces at
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(
RestoreViewExecutor.java:88) at
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase (LifecycleImpl.java:95)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
ApplicationFilterChain.java:290) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206) at
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:230) at
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175) ...
TIA,
cindy