Re: Validate an hmt:select with validator framework

2006-09-25 Thread Heidy Gutiérrez Guzmán
Hi I tried with the solution of Laurie, and that work's. Now the problem is that i have two kinds of html:select The first html:select, load an Collection of Value Objects This is the code: --- The field in the ValidatorForm is: private String categoria With this type of html:select i

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Wendy Smoak
On 9/25/06, Laurie Harper <[EMAIL PROTECTED]> wrote: You said your form property was of type 'Long'. By default, a null input value will be turned into 0, so the required validator rule will think the property has a value. Good catch, Laurie! I completely missed the type... probably didn't re

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Laurie Harper
You said your form property was of type 'Long'. By default, a null input value will be turned into 0, so the required validator rule will think the property has a value. You should generally use String-typed form bean properties, but if you need to keep it as Long, you'll want to configure Bea

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Heidy Gutiérrez Guzmán
Hi I try ---. and that also does't work If you have any more idea, i would be grateful On 9/25/06, Chris Pratt <[EMAIL PROTECTED]> wrote: According to your code, the default value is the String "null", not ---. You might want to try setting that to an empty value, e.g. --- (*Chris*) On 9/

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Chris Pratt
According to your code, the default value is the String "null", not ---. You might want to try setting that to an empty value, e.g. --- (*Chris*) On 9/25/06, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote: Hi I need to validate an html:select with validator framework This is the code tha

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Wendy Smoak
On 9/25/06, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote: I need to validate an html:select with validator framework --- I tried to use the required validation, but that does'nt work, i think because the html:select have the "---" default value More likely it's because you have value="

Validate an hmt:select with validator framework

2006-09-25 Thread Heidy Gutiérrez Guzmán
Hi I need to validate an html:select with validator framework This is the code that i have --- I need have a default value that is " ---" , but i need validate that this value does'nt selected. The code in the Validator form is private Long categoria; I tried to use the required valid