myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <>
Subject Re: Apply Validator to n controls
Date Wed, 15 Aug 2007 16:33:18 GMT
Some ideas:

1) have your validator look up multiple components, and check to see
if their getSubmittedValue property returns null or not.

2) Validate that one has been set using an action listener or action
instead of a validator

3) Use binding with your controls and implement value change listeners
on each (this one would be harder I think)


On 8/15/07, daniel ccss <> wrote:
> Hi all,
> I use custom validator for validate my controls, but I have a question, I
> have a search form where at least one search control not can be empty, for
> example an input for id, an input for name, an input for known as. I have to
> validate that at least one of them not be empty.
> How can I do that on a Validator??
> thanks

View raw message