title: Opening a new window if condition true in managed bean
body: <p>I want to implement a situation where the user enter a URL, and if a specified condition is true in my managed bean this URL will be opened in a new web page. </p>
  
  <p>I found this possibility:</p>
  
  <blockquote>
    <p>The “h:link” tag is useful to generate a link which requires to interact with the <code>JSF</code> “outcome” , but lack of “action” support make it hard to generate a dynamic outcome.</p>
    
    <p>The “h:commandLink” tag is suck, the generated <code>JavaScript</code> is really scary! Not recommend to use this tag, unless you have a solid reason to support. But it supports the “action” attribute, which is what “h:link” lack of.</p>
    
    <p>The “h:outputLink” is useful to generate a link which does not require to interact with the <code>JSF</code> program itself.
    At last, it will be perfect if the “action” attribute is added into the “h:link“.</p>
  </blockquote>
  
  <p>But I didn't find a way to launch the open web page from my managed bean after the condition is verified.</p>
  
  <p>I'm using JSF2.0, Facelets and PrimeFaces 3.4.</p>