title: java.io.NotSerializableException: com.wings.marketingevent.util.FlowWizard
body: <p>I think it's simple but I got stuck with this. The idea is would like to use the liferay <code>wizard</code> as in: <a href="https://www.primefaces.org/showcase/ui/panel/wizard.xhtml" rel="nofollow noreferrer">https://www.primefaces.org/showcase/ui/panel/wizard.xhtml</a>. I have this on the xhtml:</p>
  
  <pre><code>&lt;h:form id="frmCreate"&gt;
      &lt;p:wizard flowListener="#{flowWizard.onFlowProcess}"&gt; 
          &lt;p:tab id="header" title="Header"&gt;
              &lt;p:panel&gt;
                  /*1*/
              &lt;/p:panel&gt;
          &lt;/p:tab&gt;
  
          &lt;p:tab id="detail" title="Detail"&gt;
              &lt;p:panel&gt;
                  /*2*/
              &lt;/p:panel&gt;
          &lt;/p:tab&gt;
  
          &lt;p:tab id="confirmation" title="Confirmation"&gt;
              &lt;p:panel&gt;
                  /*3*/
              &lt;/p:panel&gt;
          &lt;/p:tab&gt;
      &lt;/p:wizard&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>And on the bean:</p>
  
  <pre><code>@ManagedBean
  @ViewScoped
  public class FlowWizard {
      public String onFlowProcess(FlowEvent event) {
          return event.getNewStep();
      }
  }
  </code></pre>
  
  <p>But when I tried to click NEXT button, it doesn't change the page to the next tab, and I got this error message on the console:</p>
  
  <pre><code>11:16:21,663 ERROR [ExceptionHandlerAjaxImpl:62] java.io.NotSerializableException: com.wings.marketingevent.util.FlowWizard
  javax.faces.FacesException: java.io.NotSerializableException: com.wings.marketingevent.util.FlowWizard
      at com.sun.faces.renderkit.ResponseStateManagerImpl.getViewState(ResponseStateManagerImpl.java:137)
      ...
  Caused by: java.io.NotSerializableException: com.wings.marketingevent.util.FlowWizard
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
      ...
  Jul 13, 2013 11:16:21 AM org.apache.catalina.core.ApplicationDispatcher invoke
  </code></pre>
  
  <p>What's wrong? Thanks.</p>