myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: Different validations for different command links
Date Thu, 23 Aug 2007 14:39:40 GMT
Oops.   I misread that as 1.2.1.   Yes, subforms probably showed up in
the sandbox in 1.1.3 or 1.1.4.

Unfortunately, that really is the way to solve your problem.   1.1.2
is a pretty ancient and buggy release -- Maybe you should consider
upgrading to 1.1.5 or 1.1.6.


On 8/23/07, Nikhil Gahlot <gahlotnikhil@gmail.com> wrote:
>
> thanks for the reply. I tried with this but it seems the tag is not defined
> under sandbox version 1.1.2.
>
>
>
> Mike Kienenberger wrote:
> >
> > Use the sandbox subForm component.   Each subform can perform custom
> > partial validation.
> >
> > On 8/22/07, Nikhil Gahlot <gahlotnikhil@gmail.com> wrote:
> >>
> >> I have used  myfaces-1.1.2 and sandbox-1.1.2 in my application. I have
> >> created a form which has many command links/buttons for different actions
> >> (add entry, delete entry and save). I am also using validations for
> >> various
> >> input fields. But I want to make these validations applicable only to
> >> SAVE
> >> action, others to bypass all the validations. I have tried with
> >> immediate="true" but all the entered data get lost. And if I use custom
> >> validator which I thought to check the nature of action while applying
> >> validations, it doesnt work on empty fields even if I remove
> >> required="true".
> >> Is there a way to write custom validator for 'required validation'?
> >> or
> >> How can i bypass validation for an action(other than cancel action) as I
> >> need model values to be persisted?
> >>
> >> Thanks
> >> Nikhil
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Different-validations-for-different-command-links-tf4309598.html#a12268674
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Different-validations-for-different-command-links-tf4309598.html#a12288003
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message