Use the sandbox subForm component.   Each subform can perform custom
partial validation.

On 8/22/07, Nikhil Gahlot <[EMAIL PROTECTED]> 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.
>
>

Reply via email to