title: target="_blank" in h:commandlink not opening page in new tab of browser
body: <p>My h:commandLink is opening/previewing the pdf document on same page/window when h:commandlink used  with target="_blank". I want it to be opened in new tab of the browser</p>
  
  <p>where can be the error?</p>
  
  <p>Preview.xhtml code:</p>
  
  <pre><code>&lt;h:commandLink  id="DocUpoadPreview" action="#{documentController.previewUploadedFile}" value="Preview" target="_blank" &gt;
  
               &lt;/h:commandLink&gt;
  </code></pre>
  
  <p>In previewuploadedFile() action encription/decryption and some other process with pdf is required that is why necessary to use and that is why not using h:outputlink here. After the action process i want to redirect to another page(previewUploadedDoc.xhtml) which uses primefaces p:media tag to preview the document. </p>
  
  <pre><code>public String previewUploadedFile() throws Exception {
  
  
    //decryption process and adding water mark here//
  FacesContext.getCurrentInstance().getExternalContext()
          .redirect("previewUploadedDoc.xhtml");}
  </code></pre>