Re: [Help]: Struts2 List object validation

2008-11-24 Thread EoneZhang
But that's no related items validation, I think what should to be done in validation method should be related items check. anyway, it's also a good idea in my current solution. thank you Burton:handshake: Burton Rhodes wrote: > > I'm my experience it is much easier to implement Validateable i

Re: [Help]: Struts2 List object validation

2008-11-24 Thread Burton Rhodes
I'm my experience it is much easier to implement Validateable in your action object. That way you can have very complex validation rules. Also allows you not keep track of another 'validation' file! On 11/24/08, EoneZhang <[EMAIL PROTECTED]> wrote: > > Now I suffer a problem with s2' validation. >

Re: [Help]: Struts2 List object validation

2008-11-24 Thread Dave Newton
--- On Mon, 11/24/08, EoneZhang <[EMAIL PROTECTED]> wrote: > in my validation config file I write like this: > > >type="requiredstring"> >/> > [...] > It seems doesn't work. Correct, it doesn't. At this point there's no support for collection-based validation (that I'm aware of). Thi

[Help]: Struts2 List object validation

2008-11-24 Thread EoneZhang
Now I suffer a problem with s2' validation. Here is my problem: In my action,there is a property List persons; now in jsp, I use iterator like below: I want to validation user input while submit the form, “name" should not empty, and "age" must be number. in my validation confi