Want alternative ways of informing user of validation failure
-------------------------------------------------------------
Key: SHALE-490
URL: https://issues.apache.org/struts/browse/SHALE-490
Project: Shale
Issue Type: Improvement
Components: Validator
Affects Versions: 1.0.4
Environment: Any
Reporter: Jeff Tsay
I'd like to see the ability to override the validation error
handler. Currently, with the default validatorUtilities.js, whenever a
validation error occurs, an alert is displayed. To me that is a bit
unpolished; I'd rather see some message below the input field that has
an error. Although it's easy enough to replace validatorUtilities.js,
jcv_handleError() simply doesn't get enough information in its arguments
to do much with the DOM tree, unless the ID's of the elements to replace
are hardcoded. It would be good also to let the user supply his own
error handling script in the JSF tags, instead of messing with replacing
validatorUtilities (which would be apply across the entire web app
anyway). Any ideas on how to do this? Is anyone else interested in
getting rid of alert()?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.