On my JSF website, I’ve got a couple elements that I’d like to use to cause navigation to our old classic ASP site (no data needs survive, just simple navigation). What’s the best way to do this?
Thoughts so far:
– Using the outcome/navigation rules implies that you’re staying within the same site. Can it be used to navigate outside?
You can’t use navigation cases for this. Use
h:outputLinkwith a direct URL.Or just plain vanilla HTML.
Update:
A
<h:commandButton>is also doable, but then you have to add a bean action method which doesExternalContext#redirect()to the desired URL.An alternative is indeed to style the link to make it look like a button. Here’s a kickoff example:
Use it as
<h:outputLink styleClass="button">or<a class="button">.