Re: type validwhen validation

2007-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nathan, Nathan Coast wrote: > this feels better as the existing framework is responsible for executing > all validations, assembling cumulative errors and creating localised > messages. I'm just not sure it's possible to add validations. Whenever I

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
apologies if this is a dumb question, but how come there is no validateBoolean? Niall Pemberton wrote: On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi Niall, thanks again for the quick response. I've been looking at the struts and validator source and have a couple of ideas for a solut

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
excellent stuff, It would probably have taken me a couple of weeks to get here :) I'll let you know how I got on. cheers Nathan Niall Pemberton wrote: On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi Niall, thanks again for the quick response. I've been looking at the struts and valid

Re: type validwhen validation

2007-02-09 Thread Niall Pemberton
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi Niall, thanks again for the quick response. I've been looking at the struts and validator source and have a couple of ideas for a solution to my problem. 1) just create an appropriate validator and execute it. Simpler but doesn't 'feel' as

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
Hi Niall, thanks again for the quick response. I've been looking at the struts and validator source and have a couple of ideas for a solution to my problem. 1) just create an appropriate validator and execute it. Simpler but doesn't 'feel' as good. IntegerValidator validator = IntegerVali

Re: type validwhen validation

2007-02-09 Thread Niall Pemberton
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: thanks Niall, I've had a look at the examples and I'm not sure they demonstrate what I need. The examples all seem to be simple boolean expressions e.g. test ( (*this* != null) or

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
thanks Niall, I've had a look at the examples and I'm not sure they demonstrate what I need. The examples all seem to be simple boolean expressions e.g. test ( (*this* != null) or ( (address2 == null) and (

Re: type validwhen validation

2007-02-09 Thread Niall Pemberton
On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi, I have two fields in a form. I believe the validwhen rule executes a specific rule (e.g. required) on field a based upon the value of field b. The situation I have is that I need to execute different validations on field a determined by th

type validwhen validation

2007-02-09 Thread Nathan Coast
Hi, I have two fields in a form. I believe the validwhen rule executes a specific rule (e.g. required) on field a based upon the value of field b. The situation I have is that I need to execute different validations on field a determined by the value of field b. Is this possible client sid