I have something like this:
<h:commandButton value="test" action="#{bean.action}"/>
once the action method is evaluated, I would like to navigate (only in some cases) to an absolute URL.
I know that if the "bean.action" returns a relative path that corresponds to a valid path in context it will go there, but I don't want that.
I want to evaluate the action return and if it is all ok navigate to an absolute URL like "www.anypage.com", something like
<a href="www.anypage.com">test</a>
but depending on action return and keeping the jsf2 advantages.
Any ideas? Thx a lot