myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Groovie <groo...@groovesytems.de>
Subject [TOBAGO] How to escape from a validation error with an escape button
Date Fri, 28 Nov 2008 08:30:44 GMT

Salut M'cs,

i build a dialog with some <tx:textarea> and <tx:in>
and a required="true" attribute to these tag.
Below that input field i add a [save] and a [cancel] 
button. When the user wants to save an forgot
to enter some data into a required input field,
the TOBAGO/Myfaces frameworks sends an error
by marking the inputfield with a red frame and 
displays lower a error message.

This is wonderful!!!

But iff the user wants to leave an is pressing the
cancel button, the same validation mechanism starts
to block any further operation and the user remains
in a error loop while he really wants to escape from
this dialog.

I also add a self implemented validation methode,
but unfortunately this one is not beeing called.

What can i do to disable the validation (like required=true)
for any cancel operation ?

Thank you
Groovie

-- 
View this message in context: http://www.nabble.com/-TOBAGO--How-to-escape-from-a-validation-error-with-an-escape-button-tp20730532p20730532.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message