I think the easiest way to do this currently would be a TypeConverter. Then 
you'd just specify the 
TypeConverter in @Validate on the fields that you wanted to trim.

Aaron


Alan Burlison wrote:
> Tim Fennell wrote:
> 
>> Is this something you want to do globally?  If so you might want to  
>> just do it in a request wrapper that overrides getParameter() and  
>> getParameterValues() to return trimmed versions.
> 
> No, on a per-field basis.  The example case is a user-entered username, 
> which needs to be have more than a minimum and less than a maximum 
> number of character, excluding any (probably mistakenly entered) leading 
> and trailing whitespace.
> 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to