title: JavaServer faces redirecting form
body: <p>Hello I have that form:</p>
  
  <pre><code>        &lt;h:form&gt;
              &lt;h:selectOneRadio layout="pageDirection" value="#{votesBean.answer}"&gt;
                  &lt;f:converter converterId="PollConverter"/&gt;
                  &lt;f:selectItems value="#{pollsBean.selectItems}"/&gt;
              &lt;/h:selectOneRadio&gt;
              &lt;h:messages/&gt;
              &lt;h:commandButton value="#{msgs.vote}" action="/profile/main.xhtml"/&gt;
          &lt;/h:form&gt;
  </code></pre>
  
  <p>But when I submit this form, page no redirects to  main.xhtml, but refresh current page (viewpoll.xhtml, I ‘think because there are errors in form), but not include view parameters. I use view parameter to know current poll… in result I get nullpointer exception, because I don’t have poll id.</p>