jsf - After confirmation, navigate to first tab of wizard -


Too much, everything is said in the subject's title. What I need to achieve is that when I click on the tab of the last (confirmation) wizard and my button, after all, I want to return to the wizard's first tab. Of course, everything in the magician should be reset after that.


Well, that's not help. Currently I'm totally confused. I get this exception when I click on the button, but not in the server log, I only get in the browser:

An error occurred:

java.lang.NullPointerException

  org.primefaces.component.datatable.DataHelper.decodeFilters (DataHelper.java:167) java.lang on javax on org.primefaces.component.datatable.DataTableRenderer.decode (DataTableRenderer.java:51) .NullPointerException. On javax.faces.component.UIData.processDecodes (UIData.java:980) on faces.component.UIComponentBase.decode org.primefaces.component.datatable.DataTable.processDecodes (UIComponentBase.java:790) (DataTable.java:542) on org.primefaces.component.panel.Panel.processDecodes (Panel.java:282) on javax.faces.component.UIComponentBase.processDecodes javax.faces.component.UIComponentBase.processDecodes (UIComponentBase.java:1042) (on UIComponentBase.java : 1042) .component.UIForm.processDecodes javax on javax.faces on javax.faces.component.UIComponentBase.processDecodes (UIComponentBase.java:1042 on org.primefaces.component.wizard.Wizard.processDecodes) (Wizard.java:210) on .faces.component.UIComponentBase.processDecodes (UIComponentBase.java:1042) on javax.faces.component.UIComponentBase.processDecodes (UIComponentBase.java:1042) (UIForm.java:216) on javax. faces.component.UIViewRoot.processDecodes (UIViewRoot.java:941) com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute (ApplyRequestValuesPhase.java:78) on com.sun.faces.lifecycle.Phase.doPhase (on Phase.java: 101) com.sun.faces.lifecycle.LifecycleImpl.execute (LifecycleImpl.java:118) on javax.faces.webapp.FacesServlet.service (FacesServlet.java:312) on org.apache.catalina.core.StandardWrapper.service on org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:188) on org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:279) (StandardWrapper.java:1523) on org.apache. catalina.core.StandardPipeline.invoke (StandardPipeline.java:641) on com.sun.enterprise.web.WebPipeline.invoke (WebPipeline.java:97) on Com.sun.enterprise.web. On PESessionLockingStandardPipeline.invoke org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:185) (PESessionLockingStandardPipeline.java:85) org.apache.catalina.connector.CoyoteAdapter.doService (CoyoteAdapter.java:325) on organization on .apache.catalina.connector.CoyoteAdapter.service com.sun.enterprise.v3.services.impl.ContainerMapper.service (ContainerMapper.java:165) (CoyoteAdapter.java:226) on com.sun.grizzly.http.ProcessorTask .invokeAdapter (ProcessorTask.java:791) on com on com.sun.grizzly.http.ProcessorTask.doProcess (ProcessorTask.java:693) on com.sun.grizzly.http.ProcessorTask.process (ProcessorTask.java:954). Sun.grizzly.http.DefaultProtocolFilter.execute (DefaultProtocolFilter.java:170) (DefaultProtocolChain.java:100) at com.sun.grizzly.deefaultProtocolChain.execute at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter (DefaultProtocolChain.java:135) on Com.sun.grizzly.DefaultProtocolChain.execute (DefaultProtocolChain.java:88) com.sun.grizzly.SelectionKeyContextTask.call (SelectionKeyContextTask.java:57) on com.sun.grizzly on com.sun.grizzly.http.HttpProtoc OlChain.execute (HttpProtocolChain.java:76) com.sun.grizzly.ProtocolChainContextTask.doCall (ProtocolChainContextTask.java:53). Contekstaskkrn (Contakttaskkjawa: 69) on com.sun.grizzly.util.AbstractThreadPool $ Worker.doWork (comTradePool.java:330) on com.sun.grizzly.util.AbstractThreadPool $ Worker.run (AbstractThreadPool.java: 309) at java.lang.Thread.run (Thread.Java: 619)   

The button looks like this:

  & lt; p: commandButton ajax = "false" value = "service" Save = "# {Kuben. Svs service}" update = "growl" / & gt;    

Interesting ...

Assume that your bean < Code> @ViewScoped Then a simple page redirect on your wizard page URL should restore your wizard managed wan. If that does not work then you can add GET property [url] - faces-redirect = true on the URL.

to switch to it will not work if your managed bean @ session-Scokd Although expected data and state information from the previous wizard confirmation would still be the best solution ViewScoped and if it write a reset method of managed Bean is not possible, which may state the managed bean and clear data.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -