title: Open a new window/tab using h:commandButton or p:commandButton?
body: <p>The requirement is to open a new window/tab on button click. The new window should redirect to new URL or say new page. I have tried the below code:</p>
  
  <pre><code>&lt;h:commandButton value="Login" onclick="this.form.target='_blank'"/&gt; 
  </code></pre>
  
  <p>but this opens the current page again. How shall I set new page or url to open in new window/tab?</p>