Matt,

Thats it -  thanks for your help. I'm using an extended version of
BeanValidatorForm - which helpfully :-( strips off the leading  /  in the
getValidationKey() method, so you don't have to specify them in the
valiadtion.xml.

Since <html:javascript> is using that to identify is a 'path' based
validation I'm getting the wrong method name generated.

Guess I'll need to change BeanValidatorForm and put all the slashes back
into my validation.xml.

Seems a shame to me that the commons javascript operates in this 'callback'
fashion - if it generated a method always based on the validator form name
that called the commons validations for each field, then there wouldn't be
any issues here.

Niall

----- Original Message ----- 
From: "Matt Bathje" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 12, 2004 4:44 PM
Subject: Re: Does Javascript Validation work with mapping path as key?


> Niall Pemberton wrote:
> >
>
> [snip]
>
> > <form name="houseTypeAdd">
> >
>
> [snip]
>
> >
>
>
> Niall - I'm pretty sure that you need to have the slash in front of the
> name in the validation.xml for a ValidatorActionForm - try it with
> /houseTypeAdd instead of just houseTypeAdd and see if that fixes your
> problem.
>
> If that doesn't work you may want to try /plotsales/houseTypeAdd also -
> not sure where the /plotsales part comes from, but that is what the form
> action gets generated as so it may help.
>



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

Reply via email to