API JSF 2.0, <h:button> action. <h:button> - JSF 2.0. outcome, bean, , <h:commandButton>.
JavaScript , , "h: button" "onclick" window.location.href.
<h:button value="buton" outcome="login" />
// HTML
<input type="button"
onclick="window.location.href='/ContextRoot/faces/login.xhtml; return false;"
value="buton" />
: mkyong. , .
JSF: BalusC. :).