Opening a new window if condition true in managed bean
问题 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. I found this possibility: The “h:link” tag is useful to generate a link which requires to interact with the JSF “outcome” , but lack of “action” support make it hard to generate a dynamic outcome. The “h:commandLink” tag is suck, the generated JavaScript is really scary! Not recommend to use this tag, unless you have a solid reason to