On 3/29/07, Jason Vincent <[EMAIL PROTECTED]> wrote:
I wonder if JSF is considering the -1 as a value that needs to be
validated and a "" as something it doesn't.
On the html side, "" is equivalent to null. So if there's no value,
then the validators don't run.
: Thursday, March 29, 2007 2:14 PM
To: user@shale.apache.org
Subject: Re: JSF Validator on select menus only getting used once.
just had an after thought...
when I don't change the first select it is still running the validator
on that first select menu.
There is a difference between th
e
> pulldown has changed? I think I remember that happening to me. I
> believe that the required check runs no matter what, but the validations
> only run if values change.
>
>
> JB
>
> -Original Message-
> From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
> Sent:
Making the field required would ensure that "" could not be submitted.
JB
-Original Message-
From: Jason Vincent [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 29, 2007 2:04 PM
To: user@shale.apache.org
Subject: Re: JSF Validator on select menus only getting used once.
check runs no matter what, but the validations
only run if values change.
JB
-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 29, 2007 1:54 PM
To: user@shale.apache.org
Subject: Re: JSF Validator on select menus only getting used once.
That'
It is pretty simple... here is the validator class...
public class SelectOneMenuValueValidator implements Validator {
private static final Log LOGGER =
LogFactory.getLog(SelectOneMenuValueValidator.class);
public void validate(FacesContext context, UIComponent component,
Object value) {
:[EMAIL PROTECTED]
Sent: Thursday, March 29, 2007 1:54 PM
To: user@shale.apache.org
Subject: Re: JSF Validator on select menus only getting used once.
That's pretty weird. It looks ok as far as I can tell.
I would also think that each component would have its own instance of
the validator.
That's pretty weird. It looks ok as far as I can tell.
I would also think that each component would have its own instance of
the validator.
Maybe there's something strange in your validator code? Are you
maintaining any kind of static state?
On 3/29/07, Jason Vincent <[EMAIL PROTECTED]> wrote