Re: JSF Validator on select menus only getting used once.

2007-03-29 Thread Mike Kienenberger
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.

RE: JSF Validator on select menus only getting used once.

2007-03-29 Thread Baker,Jonathan
: 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

Re: JSF Validator on select menus only getting used once.

2007-03-29 Thread Jason Vincent
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:

RE: JSF Validator on select menus only getting used once.

2007-03-29 Thread Baker,Jonathan
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.

Re: JSF Validator on select menus only getting used once.

2007-03-29 Thread Jason Vincent
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'

Re: JSF Validator on select menus only getting used once.

2007-03-29 Thread Jason Vincent
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) {

RE: JSF Validator on select menus only getting used once.

2007-03-29 Thread Baker,Jonathan
:[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.

Re: JSF Validator on select menus only getting used once.

2007-03-29 Thread Mike Kienenberger
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