RE: Advanced Struts 2 Validation Question...

2008-11-13 Thread Shannon, Andrew
- Andrew -Original Message- From: Burton Rhodes [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 11:25 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Advanced Struts 2 Validation Question... Thanks to all! Implementing Validatable was simple and works great. I am t

Re: Advanced Struts 2 Validation Question...

2008-11-13 Thread Burton Rhodes
Thanks to all! Implementing Validatable was simple and works great. I am thinking of moving all my action objects that need it to Validatable. per Bill's suggestion... one less file to worry about. :) On Thu, Nov 13, 2008 at 9:58 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Thu, 11/13/08,

Re: Advanced Struts 2 Validation Question...

2008-11-13 Thread Dave Newton
--- On Thu, 11/13/08, Burton Rhodes wrote: > How do I use validation in an [Action]-validation.xml file > to validate several fields? > > I need to implement the following logic for 3 fields on a > form: Company, FirstName, LastName. > > Psedo Code: > > If Company empty, then FirstName and LastN

RE: Advanced Struts 2 Validation Question...

2008-11-13 Thread Jishnu Viswanath
:: EXCELLENCE -Original Message- From: Burton Rhodes [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 9:06 PM To: Struts Users Mailing List Subject: Advanced Struts 2 Validation Question... How do I use validation in an [Action]-validation.xml file to validate several fields? I need

Re: Advanced Struts 2 Validation Question...

2008-11-13 Thread Bill Harper
Implement Valiadateable in your action and the Workflow interceptor will call validate() before and action method If your validate() method adds ActionErrors then the messages go back to the input form. You will also need to configure / annotate an "input" result. I can't remember off the top of

Re: Advanced Struts 2 Validation Question...

2008-11-13 Thread Néstor Boscán
if you want javascript validation you will have to create your own theme and own validation. You will have to create your own validator class and modify the form-close-validation.ftl. This is what I've done in the past. Once you figure out the details you start creating and reusing validators. On

Advanced Struts 2 Validation Question...

2008-11-13 Thread Burton Rhodes
How do I use validation in an [Action]-validation.xml file to validate several fields? I need to implement the following logic for 3 fields on a form: Company, FirstName, LastName. Psedo Code: If Company empty, then FirstName and LastName must be filled If FirstName and LastName empty, then Comp