Re: Dynaview View Bean method not called

Splash Forums PrettyFaces Users Dynaview View Bean method not called Re: Dynaview View Bean method not called

#22445

Arun Kumar
Participant

Christian, I also tried your: <pattern value=”/#{ /.*/ path }” />

but I got this error:

com.ocpsoft.pretty.PrettyException: Could not forward to view: #{forms.computeViewPath}

at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109)

at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:109)

at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:185)

at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:103)

at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)

Truncated. see log file for complete stacktrace

Caused By: javax.el.ELException: java.lang.ArrayIndexOutOfBoundsException: 2

at com.sun.el.parser.AstValue.invoke(AstValue.java:238)

at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)

at com.ocpsoft.pretty.faces.util.FacesElUtils.invokeMethod(FacesElUtils.java:70)

at com.ocpsoft.pretty.faces.util.FacesElUtils.invokeMethod(FacesElUtils.java:62)

at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.calculateDynaviewId(DynaviewEngine.java:149)

Truncated. see log file for complete stacktrace

Caused By: java.lang.ArrayIndexOutOfBoundsException: 2

at com.saggezza.mmfsl.loanapp.bean.system.Forms.computeViewPath(Forms.java:66)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)