title: Logout Link is not working
body: <p>I am using <strong>JSF</strong> and <strong>Primefaces</strong> in my web application.</p>
  
  <p>In this i am using one form which includes some some details to be filled by student.
  So there is some validation on that fields </p>
  
  <p>And, On this page there are two button one is Submit and Other is Logout</p>
  
  <p>When I pressed submit button form is displaying validation error if details are not completed.</p>
  
  <p>But Same things also shown while pressing LOGOUT link also</p>
  
  <p>Logout is p:commadLink</p>
  
  <pre><code>&lt;p:commandLink styleClass="logout" type="submit"  action="#{userManagedBean.logout}"&gt;
       &lt;p:graphicImage value="/images/logout.png"&gt;&lt;/p:graphicImage&gt;
       &lt;/p:commandLink&gt;
  </code></pre>
  
  <p>Submit is h:commandButton</p>
  
  <pre><code>&lt;h:commandButton image="/images/submit_button.png" type="submit" action="#{referManagedBean.saveDetails}" value="submit"&gt;&lt;/h:commandButton&gt;
  </code></pre>
  
  <p>I need Logout link skip this validation step and directly goes to managed bean called function.</p>
  
  <p><strong>How can i skip Validation Step ??</strong></p>