You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Krygowski <ja...@shaws.com> on 2003/03/14 18:27:14 UTC

Validator & Indexed Properties

Hey All-

I can't seem to get the validation.xml file configured correctly so that I
can validate indexed properties.   I've done a bunch of Mailing List/Google
searches and come up dry.  I've tried to configure it as suggested by D.
Winterfeldt and P. Ginnaram, but neither approach worked.  I ended up
getting the following useless javascript function rendered:

    function DateValidations () {
    }

Which as you notice, contains no validations.  I've hard-coded
(field="indexed[0].value") and the javascript rendered worked perfectly.  Of
course that's useless because I don't know how many result may come back.
Matt Raible seemed to be on the same route (note that his emails to the list
post-date Winterfeldt & Ginnaram) but his last email seems to indicate that
he's going to write his own custom javascripts to handle this.

My question is, does the validator handle indexed properties as of
struts-1.1b3 (aka RC1)??? If so, how is it done?  If not, does anyone have a
workaround (Matt if you're listening...)?

Here are a few links to the discussions regarding the validator and indexed
properties:

D. Winterfeldt Thu, 13 Jun 2002
Re: Indexed Property Validation on a String[]
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg33752.html


P. Ginnaram Tue, 20 Aug 2002
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg38703.html


M Raible
Validating Indexed Properties
17 Dec 2002
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg51913.html

Mon, 20 Jan 2003
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg54868.html

Tue, 21 Jan 2003
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg55133.html

Brandon Goodin Sat, 01 Feb 2003
[Validator] indexed property validation
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg56956.html


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Validator & Indexed Properties

Posted by Vic Cekvenich <vc...@basebeans.com>.
It works fine for my clients.... with 2 diferent patches offered, on dev 
list a long time ago:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8798
and attached sollution on May of 2002, almost a year ago, you can search 
the dev list on the topic.

Then there is a 2nd better patch that I kind of stop giving out becuase 
there was to much private traffic:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg55192.html
(one commiter did ask for the 2nd one and I gave it out)

So, it's "known" bug with a "known" solution. :-(

.V

Jim Krygowski wrote:
> Hey All-
> 
> I can't seem to get the validation.xml file configured correctly so that I
> can validate indexed properties.   I've done a bunch of Mailing List/Google
> searches and come up dry.  I've tried to configure it as suggested by D.
> Winterfeldt and P. Ginnaram, but neither approach worked.  I ended up
> getting the following useless javascript function rendered:
> 
>     function DateValidations () {
>     }
> 
> Which as you notice, contains no validations.  I've hard-coded
> (field="indexed[0].value") and the javascript rendered worked perfectly.  Of
> course that's useless because I don't know how many result may come back.
> Matt Raible seemed to be on the same route (note that his emails to the list
> post-date Winterfeldt & Ginnaram) but his last email seems to indicate that
> he's going to write his own custom javascripts to handle this.
> 
> My question is, does the validator handle indexed properties as of
> struts-1.1b3 (aka RC1)??? If so, how is it done?  If not, does anyone have a
> workaround (Matt if you're listening...)?
> 
> Here are a few links to the discussions regarding the validator and indexed
> properties:
> 
> D. Winterfeldt Thu, 13 Jun 2002
> Re: Indexed Property Validation on a String[]
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg33752.html
> 
> 
> P. Ginnaram Tue, 20 Aug 2002
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg38703.html
> 
> 
> M Raible
> Validating Indexed Properties
> 17 Dec 2002
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg51913.html
> 
> Mon, 20 Jan 2003
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg54868.html
> 
> Tue, 21 Jan 2003
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg55133.html
> 
> Brandon Goodin Sat, 01 Feb 2003
> [Validator] indexed property validation
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg56956.html



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org