Problem with <p:wizard> (not getting next step)

UI Components for JSF
Post Reply
burferd
Posts: 234
Joined: 01 May 2010, 16:15

27 Oct 2011, 15:27

Using PrimeFaces 2.2.1, JSF2.0, Glassfish 3.2

I'm trying to use <p:wizard> in a composite component.
I cloned the example from the showcase, and after adding the title attribute to the <p:tab> components, got it to display.
However, when I push the "Next" button, the code in the backing bean does not have a value for the current step and the next step is pointing to the first step.
Here is the backing bean code for the "flowListener":

Code: Select all

    public String onFlowProcess(FlowEvent event) {
        System.out.println("Event:" + event);
        System.out.println("Current wizard step:" + event.getOldStep() );
        System.out.println("Next step:" + event.getNewStep());

        if(skip) {
            skip = false;   //reset in case user goes back
            return "confirm";
        }
        else {
            return event.getNewStep();
        }
    }
}


Here is what I in the server log after I push "Next":

Code: Select all

INFO: Event:org.primefaces.event.FlowEvent[source=org.primefaces.component.wizard.Wizard@2ea0c364]
INFO: Current wizard step:undefined
INFO: Next step:Profile
What this tells me is that the FlowEvent is being created.
The "oldStep" value is not being filled in (event.getOldStep() = "undefined") and.
The "newStep" value still has the value of my initial tab id (event.getNewStep() = "Profile")

I didn't see anything in the forun about this problem, so I am wondering if I am missing something in my definition.
Anyone know what I am doing wrong, or is this a known problem with <p:wizard>??

Here is the wizard code in the .xhtml composite component:

Code: Select all

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:cc="http://java.sun.com/jsf/composite"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <!-- INTERFACE -->
    <cc:interface>
    </cc:interface>

    <!-- IMPLEMENTATION -->
    <cc:implementation>

        <p:wizard widgetVar="wiz" style="position: relative; left: 10px; top: 20px; width: 700px;"
                  flowListener="#{sessionBean1.onFlowProcess}" >

            <p:tab id="Profile" title="Profile" >

                <p:panel header="Customer Profile Information">

                    <h:messages errorClass="error"/>

                    <h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">
                        <h:outputText value="Customer ID: " />
                        <p:inputText required="false" style="width: 300px;" label="Firstname"
                                     value="" />

                        <h:outputText value="Description: " />
                        <p:inputText required="false" style="width: 300px;" label="Lastname"
                                     value="" />

                        <h:outputText value="Email: " />
                        <p:inputText value="" style="width: 300px;" />

                        <h:outputText value="Please Note: " />
                        <h:outputText value="You must enter either a Customer ID, Description, or Email. " />
                    </h:panelGrid>
                </p:panel>
            </p:tab>

            <p:tab id="payment" title="Payment" >
                <p:panel header="Payment Pofile Information">

                    <h:messages errorClass="error"/>

                    <h:panelGrid columns="2" columnClasses="label, value">
                        <h:outputText value="Customer Type: " />
                        <p:inputText value="" />

                        <h:outputText value="First Name: " />
                        <p:inputText value="" />

                        <h:outputText value="Last Name: " />
                        <p:inputText value="" />

                        <h:outputText value="Address: " />
                        <p:inputText value="" />

                        <h:outputText value="City: " />
                        <p:inputText value="" />

                        <h:outputText value="State/Province: " />
                        <p:inputText value="" />

                        <h:outputText value="Zip: " />
                        <p:inputText value="" />

                        <h:outputText value="Country: " />
                        <p:inputText value="" />

                        <h:outputText value="Phone: " />
                        <p:inputText value="" />

                        <h:outputText value="Fax: " />
                        <p:inputText value="" />

                    </h:panelGrid>
                </p:panel>
            </p:tab>

            <p:tab id="contact" title="Credit Card" >
                <p:panel header="Credit Card Information">

                    <h:messages errorClass="error"/>

                    <h:panelGrid columns="2" columnClasses="label, value">
                        <h:outputText value="Card Type: " />
                        <p:inputText required="false" label="Email"
                                     value="" />

                        <h:outputText value="Number: " />
                        <p:inputText value=""/>

                        <h:outputText value="Expiration Date: " />
                        <p:inputText value=""/>

                        <h:outputText value="Card Code: " />
                        <p:inputText value=""/>
                    </h:panelGrid>
                </p:panel>
            </p:tab>

            <p:tab id="confirm" title="Bank" >
                <p:panel header="Bank Account Information">

                    <p:growl id="growl" sticky="true" showDetail="true"/>

                    <h:panelGrid id="confirmation" columns="6">
                        <h:outputText value="Firstname: " />
                        <h:outputText styleClass="outputLabel"
                                      value="" />

                        <h:outputText value="Lastname: " />
                        <h:outputText  styleClass="outputLabel"
                                       value=""/>

                        <h:outputText value="Age: " />
                        <h:outputText styleClass="outputLabel"
                                      value="" />>

                        <h:outputText value="Street: " />
                        <h:outputText styleClass="outputLabel"
                                      value="" />

                        <h:outputText value="Postal Code: " />
                        <h:outputText styleClass="outputLabel"
                                      value="" />

                        <h:outputText value="City: " />
                        <h:outputText styleClass="outputLabel"
                                      value="" />

                        <h:outputText value="Email: " />
                        <h:outputText styleClass="outputLabel"
                                      value="" />

                        <h:outputText value="Phone " />
                        <h:outputText styleClass="outputLabel"
                                      value=""/>

                        <h:outputText value="Info: " />
                        <h:outputText styleClass="outputLabel"
                                      value="" />

                        <h:outputText />
                        <h:outputText />
                    </h:panelGrid>

                    <p:commandButton value="Submit" update="growl"
                                     />

                </p:panel>
            </p:tab>

        </p:wizard>

        <p:ajaxStatus>
            <f:facet name="start">
                <h:outputText value="grrrrr" />
                <!-- h:graphicImage value="../design/ajaxloading.gif" / -->
            </f:facet>

            <f:facet name="complete">
                <h:outputText value="zzzz" />
            </f:facet>
        </p:ajaxStatus>
    </cc:implementation>
</html>

luca_bk
Posts: 4
Joined: 26 Oct 2011, 16:51

27 Oct 2011, 15:29

What about the backing bean? Did you set the scope?

burferd
Posts: 234
Joined: 01 May 2010, 16:15

27 Oct 2011, 15:42

Yes, it is session scoped.

I think the problem is with my <h:messages> components.
I found that if I comment them out, the pages seem to work OK.
Not sure why- I guess they aren't set up properly.
Using PrimeFaces 3.4, Mojarra 2.1.6, Glassfish 3.1.2, NetBerans 7.2, Hibernate 3.2.5 (sometimes)
Windows 7.

burferd
Posts: 234
Joined: 01 May 2010, 16:15

27 Oct 2011, 16:48

Well, I thought I had it working, but something is still wrong.
I was able to move from the first tab to the second tab, but not any farther.

I simplified the code for the wizard component and just have 3 simple tabs (code below).

Here is what is happening now:
- Display wizard and push "next" button.
- Wizard displays the second tab properly.
- Push the "Next" button to move to the third tab.
- Nothing happens - the flowListener does not get called.
- Push the "Next" button again - Now I get a Null Pointer exception (exception listed below).

I cannot see any structural differences between the 3 tabs, just the content in the container panels, and there are just output and input text fields.

I do not understand why I would be getting the null pointer exception when attempting to go between tab 2 and 3, but not between tab 1 and 2.

Any suggestions?
Thanks.

Here is the latest incarnation of the composite component with the wizard code.

Code: Select all

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:cc="http://java.sun.com/jsf/composite"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <!-- INTERFACE -->
    <cc:interface>
    </cc:interface>

    <!-- IMPLEMENTATION -->
    <cc:implementation>

        <p:wizard widgetVar="wiz" style="position: relative; left: 10px; top: 20px; width: 700px;"
                  flowListener="#{sessionBean1.onFlowProcess}" >

            <p:tab id="profile" title="Profile" >

                <p:panel header="Customer Profile Information">

                    <h:panelGrid columns="2" >
                        <h:outputText value="Customer ID: " />
                        <p:inputText required="false" style="width: 300px;" value="123456" />

                        <h:outputText value="Description: " />
                        <p:inputText required="false" style="width: 300px;" value="Bobs Bugs" />

                        <h:outputText value="Email: " />
                        <p:inputText value="Smith@email.com" style="width: 300px;" />

                        <h:outputText value="Please Note: " />
                        <h:outputText value="You must enter either a Customer ID, Description, or Email. " />
                    </h:panelGrid>
                </p:panel>
            </p:tab>

            <p:tab id="payment" title="Payment" >
                <p:panel header="Payment Pofile Information">

                    <h:panelGrid columns="2" >
                        <h:outputText value="Customer Type: " />
                        <p:inputText value="Individual" />

                        <h:outputText value="First Name: " />
                        <p:inputText value="John" />

                        <h:outputText value="Last Name: " />
                        <p:inputText value="Smith" />

                        <h:outputText value="Address: " />
                        <p:inputText value="" />

                        <h:outputText value="City: " />
                        <p:inputText value="Centerville" />

                        <h:outputText value="State/Province: " />
                        <p:inputText value="Iowa" />

                        <h:outputText value="Zip: " />
                        <p:inputText value="67890" />

                        <h:outputText value="Country: " />
                        <p:inputText value="USA" />

                        <h:outputText value="Phone: " />
                        <p:inputText value="666-444-5555" />

                        <h:outputText value="Fax: " />
                        <p:inputText value="444-555-6677" />

                    </h:panelGrid>
                </p:panel>
            </p:tab>

            <p:tab id="confirm" title="Credit Card" >
                <p:panel header="Credit Card Information">

                    <h:panelGrid columns="2" >
                        <h:outputText value="Card Type: " />
                        <p:inputText value="Visa" />

                        <h:outputText value="Number: " />
                        <p:inputText value="1234567890987654"/>

                        <h:outputText value="Expiration Date: " />
                        <p:inputText value="10/2012"/>

                        <h:outputText value="Card Code: " />
                        <p:inputText value="1234"/>
                    </h:panelGrid >
                </p:panel>
            </p:tab>

        </p:wizard>
    </cc:implementation>
</html>
Here is the first part of the Null Pointer exception I am getting:

Code: Select all

INFO: Event:org.primefaces.event.FlowEvent[source=org.primefaces.component.wizard.Wizard@7da054f5]
INFO: Current wizard step:profile
INFO: Next step:payment
INFO: java.lang.NullPointerException
java.lang.NullPointerException
        at org.primefaces.component.wizard.Wizard.processDecodes(Wizard.java:206)
        at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:506)
        at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
        at javax.faces.component.UIComponent.visitTree(UIComponent.java:1589)
        at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
        at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
        at javax.faces.component.UINamingContainer.visitTree(UINamingContainer.java:163)
        at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
        at javax.faces.component.UIForm.visitTree(UIForm.java:344)
        at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
        at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
        at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:376)
        at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:252)
        at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:183)
        at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:931)
        at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:662)

Using PrimeFaces 3.4, Mojarra 2.1.6, Glassfish 3.1.2, NetBerans 7.2, Hibernate 3.2.5 (sometimes)
Windows 7.

colerus
Posts: 1
Joined: 23 Aug 2012, 21:52

29 Aug 2012, 07:10

Hi... I'm sorry for reopening this thread, but i'm with this same problem... i'm using the most recent primefaces in maven repository and i can't make itpass to the third tab... he shows first one, validate fields, goes to second tab, validate fields an when i click next, nothing happens... then i click again and he throws me the following exception:
INFO: java.lang.NullPointerException
java.lang.NullPointerException
at org.primefaces.component.wizard.Wizard.processDecodes(Wizard.java:191)
at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:506)
at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1590)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIForm.visitTree(UIForm.java:344)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:376)
at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:252)
at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:183)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:931)
at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)

INFO: java.lang.NullPointerException
java.lang.NullPointerException
at org.primefaces.component.wizard.Wizard.processValidators(Wizard.java:197)
at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:508)
at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1590)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIForm.visitTree(UIForm.java:344)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:376)
at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:252)
at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:183)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1170)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)

INFO: java.lang.NullPointerException
java.lang.NullPointerException
at org.primefaces.component.wizard.Wizard.processUpdates(Wizard.java:203)
at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:510)
at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1590)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIForm.visitTree(UIForm.java:344)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:376)
at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:252)
at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:183)
at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:1229)
at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:78)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
if anyone knows a solution for this, please, post here... i don't know what to do anymore...

ps.: sorry for my poor english...

accord
Posts: 1
Joined: 27 Dec 2013, 17:19

27 Dec 2013, 17:20

The same problem...

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

27 Dec 2013, 17:22

cool

onyii5119
Posts: 112
Joined: 25 Nov 2009, 00:22

06 Mar 2014, 00:03

Any solution to this exception? I was trying to create a wizard dynamically and got the same exception.
Jonathan Ekwempu
TobiSoft Inc.

bagnos
Posts: 1
Joined: 07 Mar 2014, 11:09

04 Apr 2014, 11:58

I have the same problem!!

<p:wizard>
<p:tab id="personal" title="Personal">
<p:panel header="Personal Details">
<h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">
<h:outputText value="Firstname: *" />
<p:inputText required="true" label="Firstname" value="#{cartWizardView.prova}" />

</h:panelGrid>
</p:panel>
</p:tab>

<p:tab id="address" title="Address">
<p:panel header="Adress Details">
<h:panelGrid columns="2" columnClasses="label, value">
<h:outputText value="Street: " />
<p:inputText value="#{cartWizardView.prova}" />
</h:panelGrid>
</p:panel>
</p:tab>
</p:wizard>


apr 04, 2014 11:52:46 AM com.sun.faces.context.PartialViewContextImpl processPartial
Informazioni: java.lang.NullPointerException
java.lang.NullPointerException
at org.primefaces.component.wizard.Wizard.processDecodes(Wizard.java:179)
at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:590)
at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1690)


Can you help me?

sb

ali.valizadeh.h
Posts: 18
Joined: 17 Mar 2012, 11:15

03 Apr 2015, 09:30

It's kind of strange behavior!
I had exact problem and turn out another component out of the wizard had an error and it made wizard behavior going bad.
Check other part of your page.
PrimeFaces 5.1 | Apache Tomcat 7.0.14 | JSF Mojarra 2.2.8 | JDK1.7

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests