Re: validation with annotation

2008-03-13 Thread matt.payne
The current usage of Annotating methods seems broken. Its still applying all the validation rules to all methods despite methods having different validation requirements. The Struts "Zero Config/Annotation/Auto Config needs help" Hopefully, a http://jira.opensymphony.com/browse/XW-603 sprink

Re: validation with annotation

2008-03-12 Thread Ealden Escañan
On Wed, Mar 12, 2008 at 4:17 AM, xianwinwin <[EMAIL PROTECTED]> wrote: > > Thanks Ealden, this was very helpful! > > I tried that and it works fine. > > Question, say I wish to check for a date, so far I've been doing it this > way: > example > > private Date delta; > > > @TypeConver

Re: validation with annotation

2008-03-11 Thread xianwinwin
Thanks Ealden, this was very helpful! I tried that and it works fine. Question, say I wish to check for a date, so far I've been doing it this way: example private Date delta; @TypeConversion(converter="com.utilities.conversion.DateTypeConversion") public void setDelta(Date d

Re: validation with annotation

2008-03-10 Thread Ealden Escañan
On Tue, Mar 11, 2008 at 7:10 AM, xianwinwin <[EMAIL PROTECTED]> wrote: > > assuming registration is composed of fname, lname, ss, dob and except dob > all fields are mandatory. > > Question: how do I make sure those fields will be input? should I have > something like: > > @RequiredStringValidator(