title: How can I open a Popup in JSF
body: <p>I need to open a Popup window on clicking a button in a xhtml page.
  I have written something like that:</p>
  
  <pre><code>&lt;p:commandButton type="submit" value="Select User" onclick="showGrpMemberSearchPageCalenderLeave()"/&gt;
  </code></pre>
  
  <p>and the java script is like:</p>
  
  <pre><code>function showGrpMemberSearchPageCalenderLeave()
  {
      window.open('./SearchGroupMembersLeaveCalander.xhtml,resizable=no,
      toolbar=no,scrollbars=yes,height=450,width=530,top=145,left=235');
  
      return true;
  }
  </code></pre>
  
  <p>But it just opens the page in the current window, no pop up window is opening.Please suggest.</p>