Cancel Button?

Is there a way to bypass the phases "Apply Request Values", "Process Validations" etc if the user presses a "Cancel" button?

For example, if a user enters invalid data and then presses "Cancel", the validators should not request a redisplay of the current page. This should happen only for "OK" Buttons.

Andreas

[330 byte] By [avixa] at [2007-9-27 23:56:00]
# 1
You have to use a request event. In the request event return true to indicate that as soon as lifecycle is finished processing should proceed to render phase and skip validate, model update, and invoke app events.
mleska at 2007-7-7 16:56:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Any chance you could supply some more info on this? A simple example?Thanks in advance!!
EricConwaya at 2007-7-7 16:56:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
To skip validation etc., set the "immediate" attribute to "true" on the <h:command_button> action, and implement the logic in an action method bound by the "action" attribute.
bergstena at 2007-7-7 16:56:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...