6 Replies Latest reply: Aug 31, 2012 2:13 PM by Edward D.G. RSS

    Open new Tab Windows  Browser

    Edward D.G.
      I can redirect to a URL using this code:

      private void goto_URL(String psURL){       
      FacesContext context = FacesContext.getCurrentInstance();
      try {
      context.getExternalContext().redirect(psURL);
      } catch (IOException ex) {
      System.out.println(ex.getMessage());
      }
      }

      but i really need to open a new tab windows in the browser for open a PDF file.
      What have i change in this code??

      Edited by: Edward D.G. on Aug 31, 2012 12:32 PM