myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: How to create a button that doesn't submit a form
Date Thu, 28 Feb 2008 16:36:15 GMT
>  <h:commandButton value="#{bundle.back}"
>  onclick="javascript:history.back();return false;"/>

or <button onclick="javascript:history.back();">#{bundle.back}</button>
or <input type="button" onclick="javascript:history.back();"
value="#{bundle.back}"/>

This assumes JSF 1.2 or facelets.

Mime
View raw message