myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volker Weber" <v.we...@inexso.de>
Subject Re: [TOBAGO] How to escape from a validation error with an escape button
Date Fri, 28 Nov 2008 15:09:36 GMT
Hi Groovy,

http://wiki.apache.org/myfaces/How_The_Immediate_Attribute_Works


Regards,
    Volker

2008/11/28 Groovie <groovie@groovesytems.de>:
>
> 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.
>
>



-- 
inexso - information exchange solutions GmbH
Bismarckstra├če 13      | 26122 Oldenburg
Tel.: +49 441 4082 356 |
FAX:  +49 441 4082 355 | www.inexso.de
Mime
View raw message