UIValidatorScript component test and implementation
---------------------------------------------------
Key: RF-9508
URL:
https://jira.jboss.org/browse/RF-9508
Project: RichFaces
Issue Type: Task
Security Level: Public (Everyone can see)
Components: component-a4j-core
Reporter: Alexander Smirnov
Assignee: Alexander Smirnov
Fix For: 4.0.0.Milestone4
# UIValidatorScript
* Holds Set of per-field validator functions ( ScriptObject instances ).
* encodeAll method:
o encode html <script> element for all libraries used by
validators/converters.
o encode all ScriptObject as <script> element with validator function
definition.
o Encode form-wide function for ActionSource components. That function should
call all per-field validation functions.
o Encode MessageDispatcher JavaScript object used to delivery messages from
validators.
# ScriptObject creates JavaScript function definition that performs per-field validation.
Attributes:
* functionName.
* description for converter function call, with parameters and message.
* Collection of description for validator functions, with actual parameters and
message.
* AJAX callback code.
* implements equals() method so all validators with same functionality would use
single function.
# ScriptBuilder takes ScriptObject collection and builds client-side JavaScript code.
This component should be added to viewResource by code ( with "form" or
"body" target ), so it should be implemented similar to Queue script.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira