Cancel button in JSF
From Shrubbery
One annoying little thing about JSF is when you have a form with required fields and a cancel or 'back' button of some kind. By default, the <h:commandButton> tag will invoke all the validators etc. before invoking the application.
To get JSF to invoke the application immediately (i.e. without going through all the other phases) use the immediate="true" option.
http://forum.java.sun.com/thread.jspa?threadID=580497&messageID=2939253

