jsf 2 - JSF: ContextAwarePropertyNotFoundException/javax.el.PropertyNotFoundException -


i have jsf page home.xhtml jsf components / view , let's loaded in (firefox) browser popup window named test-popoup-win. try access same page/url, home.xhtml?query=jsf, additional url parameters, (firefox) browser window, supposed load different/new set of components, based on new search context (?query=jsf). , loads home.xhtml in same browser popup window, named test-popup-win, overriding previous jsf components / view. in backend servlet code, redirecting same page, home.xhtml?query=jsf.

but instead of showing new view, throws following error. log shows property not found. can confirm property not found, belongs old view / bean. if click continue on custom error page, new view without issue.

please help/advice, suggesting way clear previous view cleanly , load new view or other way issue fix. let me know if missing inputs. thank much.

is there way debug kind of jsf issue ?

update: 1 may-not-be-good temporary workaround (i dont call solution) ignore exception in faceserrorhandlingservlet class. i still trying/looking solution, please share if have one

*15:58:55,495 error [stderr] (http-/0.0.0.0:8080-10) **javax.servlet.servletexception: javax.el.propertynotfoundexception: class 'com.test.containerbean' not have property 'testjsondata'.** 15:58:55,496 error [stderr] (http-/0.0.0.0:8080-10)     @ javax.faces.webapp.facesservlet.service(facesservlet.java:229) 15:58:55,496 error [stderr] (http-/0.0.0.0:8080-10)     @ org.apache.myfaces.webapp.myfacesservlet.service(myfacesservlet.java:112) 15:58:55,497 error [stderr] (http-/0.0.0.0:8080-10)     @ **com.test.faceserrorhandlingservlet**.service(faceserrorhandlingservlet.java:44) 15:58:55,497 error [stderr] (http-/0.0.0.0:8080-10)     @ sun.reflect.generatedmethodaccessor293.invoke(unknown source) . . . 15:58:55,536 error [stderr] (http-/0.0.0.0:8080-10) **caused by: javax.el.propertynotfoundexception: class 'com.test.containerbean' not have property 'testjsondata'.** 15:58:55,537 error [stderr] (http-/0.0.0.0:8080-10)     @ javax.el.beanelresolver.getbeanproperty(beanelresolver.java:661) 15:58:55,537 error [stderr] (http-/0.0.0.0:8080-10)     @ javax.el.beanelresolver.getvalue(beanelresolver.java:290) 15:58:55,537 error [stderr] (http-/0.0.0.0:8080-10)     @ javax.el.compositeelresolver.getvalue(compositeelresolver.java:175) 15:58:55,538 error [stderr] (http-/0.0.0.0:8080-10)     @ org.apache.myfaces.el.unified.resolver.facescompositeelresolver.getvalue(facescompositeelresolver.java:179) 15:58:55,538 error [stderr] (http-/0.0.0.0:8080-10)     @ org.apache.el.parser.astvalue.getvalue(astvalue.java:166) 15:58:55,539 error [stderr] (http-/0.0.0.0:8080-10)     @ org.apache.el.valueexpressionimpl.getvalue(valueexpressionimpl.java:189) 15:58:55,539 error [stderr] (http-/0.0.0.0:8080-10)     @ org.apache.myfaces.view.facelets.el.contextawaretagvalueexpression.getvalue(contextawaretagvalueexpression.java:96) 15:58:55,540 error [stderr] (http-/0.0.0.0:8080-10)     ... 82 more*  

make sure don't invoke unexisting getter/setters on beans, or make sure beans share same basic properties (inheritance) or wrap components (which try access getters) rendered="#{mybean.typeofbean eq 'theonewiththatproperty'}" or that...


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -