Re: validator intRange

Matt Raible <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
This question is better addressed to the struts user list - rather
than the struts-menu list.

Thanks,

Matt

On 9/5/05, msemenkin <[email protected]> wrote:
> Hi!
> 
> I need to validate integer value entered in 'year' field. This fied can be
> emty as well.
> 
> I use following rule in validation.xml
>  
>  
>  
>  
>  
>  
>  min
>  1900
>  
>  
>  max
>  2100
>  
>  
> But such rule doesn't allows me to leave this field empty. If I insert zero
> instead min value in rule declaration, than everything is ok, but it is not
> a solution for me. How can I use range limitation and allow to user leave
> this field empty using validation.xml rules.
> 
> Maxim.
> 
> 
> -----------------------------------------------------------------------------------------------------------------
> Broadband interface (RIA) + mail box saftey = Roomity.com
> *Your* clubs, no sign up to read, ad supported; try broadband internet.
> ~~1125949887208~~
> -----------------------------------------------------------------------------------------------------------------
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.