jsf 2 - JSF 1.2- >2.0 :viewId parameter for save view state is null -


we migrating our jsf 1.2 project jsf 2.0 , using command button in jsp page .clicking command button reponse external system , display response.

while clicking command button getting blank page below execption

during debug found getting success response not able find original page lost state view id

[8/13/13 11:01:30:538 cdt] 000000e0 webapp        e com.ibm.ws.webcontainer.webapp.webapp logservleterror srve0293e: [servlet error]-[faces servlet]: java.lang.nullpointerexception: viewid parameter  save view state null     @ org.ajax4jsf.application.ajaxstateholder.savestate(ajaxstateholder.java:155)     @ org.ajax4jsf.application.ajaxstatemanager.savestateinsession(ajaxstatemanager.java:523)     @ org.ajax4jsf.application.ajaxstatemanager.buildviewstate(ajaxstatemanager.java:503)     @ org.ajax4jsf.application.ajaxstatemanager.saveview(ajaxstatemanager.java:462)     @ org.apache.myfaces.shared_impl.view.jspviewdeclarationlanguagebase.renderview(jspviewdeclarationlanguagebase.java:206)     @ org.apache.myfaces.application.viewhandlerimpl.renderview(viewhandlerimpl.java:263)     @ javax.faces.application.viewhandlerwrapper.renderview(viewhandlerwrapper.java:59)     @ org.apache.myfaces.tomahawk.application.resourceviewhandlerwrapper.renderview(resourceviewhandlerwrapper.java:169)     @ org.ajax4jsf.application.viewhandlerwrapper.renderview(viewhandlerwrapper.java:100)     @ org.ajax4jsf.application.ajaxviewhandler.renderview(ajaxviewhandler.java:176) 

is there specific config required in web.xml save view state ?

the presence of ajax4jsf 1.x specific org.ajax4jsf.* classes in stacktrace tells you're still using ajax4jsf jsf 1.x.

this not compatible jsf 2.x. must remove ajax4jsf 1.x related jar files , registrations in web.xml. need use jsf's own <f:ajax> facilities instead, or upgrade richfaces 4.x bundles newer, jsf 2.0 compatible, version of <a4j:xxx> tags. note in turn requires facelets instead of jsp. have migrate jsp facelets well.

see also:


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -