Hi,
I want to forward the user to new web site using commandLink.
Most importantly before forwarding them i need to store the values in database in session bean.
I have tried with all 3 possibilities
html : <a href="#{val.productLink}" target="_blank" onclick="#{val.productFunction}">Help</a> jsf : <h:commandLink target="_blank" action="#{val.productFunction}">Help</h:commandLink> ajax : <a4j:commandLink target="_blank" action="#{val.productFunction}">Help</a4j:commandLink>
return "http://www.jboss.com"
use a4j:commanLink. Return null from your action. Use oncomplete on this component and open page from your JS.