Re: Validator, Indexed Properties and error messages.

2005-02-16 Thread Antony Joseph
Check out 
http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html



- Original Message -
From: Cruz, Edward J. [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Subject: Validator, Indexed Properties and error messages.
Date: Tue, 15 Feb 2005 11:03:26 -0500

 
 Hello all,
 
   In review various documentation and several google search's I have
 found how to use the validator framework to validate indexed properties.  In
 looking at the javadocs for the validator framework I see that the field
 class has an attribute called 'property' which (I think) tells the validator
 what property to associate any error message encountered during validation.
 
 
 My question is how do we associate the indexed properties error messages
 with different properties in the errors queue?
 
 For instance, if I have an indexed property that represents a list of items
 is there anyway to associate any error message for item 1 in the list using
 the property field.  I want something like itemX as the property when the
 ActionMessage is placed into the queue as the property where the X
 represents the index of the item that the error happened on?
 
 Thanks for any Help
 
 Jamie Cruz
 Software Engineering


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Antony Joseph
Available for consulting
http://www.logicden.com

-- 
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator, Indexed Properties and error messages.

2005-02-16 Thread Edward Cruz
Thank you for your help.  

Antony Joseph ajosephmi at lycos.com writes:

 
 Check out 
 http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validator, Indexed Properties and error messages.

2005-02-16 Thread Benedict, Paul C
Just my 2 cents here, but isn't this an awfully awkward way of extending
validations? Tiles does it nicely by putting an extend attribute on the
tile definition, which allows sub-definitions to do overriding. I would
expect that when Struts 1.3+ allows extending on all configuration elements,
it mimics what Tiles has achieved.

Thanks,
Paul

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Edward Cruz
Sent: Wednesday, February 16, 2005 1:55 PM
To: user@struts.apache.org
Subject: Re: Validator, Indexed Properties and error messages.


Thank you for your help.  

Antony Joseph ajosephmi at lycos.com writes:

 
 Check out 
 http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Notice:  This e-mail message, together with any attachments, contains 
information of Merck  Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates (which may be known outside the 
United States as Merck Frosst, Merck Sharp  Dohme or MSD and in Japan, as 
Banyu) that may be confidential, proprietary copyrighted and/or legally 
privileged. It is intended solely for the use of the individual or entity named 
on this message.  If you are not the intended recipient, and have received this 
message in error, please notify us immediately by reply e-mail and then delete 
it from your system.
--

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator, Indexed Properties and error messages.

2005-02-16 Thread Niall Pemberton
Its not down to Struts, since Validator is a separate project and form
ineritance (using extends) has already been put into the development
version of Validator (i.e. Validator 1.2) - so its arrival is purely
dependant on a release of that version of Validator.

http://jakarta.apache.org/commons/validator/changes-report.html

I agree with you, it is awkward and has limitations

http://www.mail-archive.com/user@struts.apache.org/msg21389.html

but its available to use now until better versions are released.

Niall

- Original Message - 
From: Benedict, Paul C [EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 8:39 PM


 Just my 2 cents here, but isn't this an awfully awkward way of extending
 validations? Tiles does it nicely by putting an extend attribute on the
 tile definition, which allows sub-definitions to do overriding. I would
 expect that when Struts 1.3+ allows extending on all configuration
elements,
 it mimics what Tiles has achieved.

 Thanks,
 Paul

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Edward Cruz
 Sent: Wednesday, February 16, 2005 1:55 PM


 Thank you for your help.

 Antony Joseph ajosephmi at lycos.com writes:

 
  Check out
  http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]