You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Terry Roe <li...@terryroe.com> on 2004/09/11 03:58:14 UTC
JavaScript Validation of Indexed Properties
I guess my last post was too lengthy for anyone to read and respond to.
Trying again...
Does Struts JavaScript validation work with indexed properties? If so,
a pointer to an example would be appreciated. If not, confirmation that
it's not supported would be appreciated.
TR
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: JavaScript Validation of Indexed Properties
Posted by Terry Roe <li...@terryroe.com>.
Niall,
Thank you very much for your response. I'd seen many people asking this
question, but no definitive answers. I appreciate your help, very much.
TR
Niall Pemberton wrote:
> No Struts does not do javascript validation of indexed properties.
>
> The createDynamicJavascript() method in JavascriptValidatorTag has the
> following code:
>
> // Skip indexed fields for now until there is a good way to handle
> // error messages (and the length of the list (could retrieve from
> scope?))
> if (field.isIndexed()
> || field.getPage() != page
> || !field.isDependency(va.getName())) {
> continue;
> }
>
> If you're interested in working on a patch, that looks like the place to
> start.
>
> Niall
>
> ----- Original Message -----
> From: "Terry Roe" <li...@terryroe.com>
> To: <us...@struts.apache.org>
> Sent: Saturday, September 11, 2004 2:58 AM
> Subject: JavaScript Validation of Indexed Properties
>
>
>
>>I guess my last post was too lengthy for anyone to read and respond to.
>> Trying again...
>>
>>Does Struts JavaScript validation work with indexed properties? If so,
>>a pointer to an example would be appreciated. If not, confirmation that
>>it's not supported would be appreciated.
>>
>>TR
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: JavaScript Validation of Indexed Properties
Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
No Struts does not do javascript validation of indexed properties.
The createDynamicJavascript() method in JavascriptValidatorTag has the
following code:
// Skip indexed fields for now until there is a good way to handle
// error messages (and the length of the list (could retrieve from
scope?))
if (field.isIndexed()
|| field.getPage() != page
|| !field.isDependency(va.getName())) {
continue;
}
If you're interested in working on a patch, that looks like the place to
start.
Niall
----- Original Message -----
From: "Terry Roe" <li...@terryroe.com>
To: <us...@struts.apache.org>
Sent: Saturday, September 11, 2004 2:58 AM
Subject: JavaScript Validation of Indexed Properties
> I guess my last post was too lengthy for anyone to read and respond to.
> Trying again...
>
> Does Struts JavaScript validation work with indexed properties? If so,
> a pointer to an example would be appreciated. If not, confirmation that
> it's not supported would be appreciated.
>
> TR
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org