ClientScriptLookupService unit tests and implementation
-------------------------------------------------------

                 Key: RF-9509
                 URL: https://jira.jboss.org/browse/RF-9509
             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


ClientScriptLookupService looks for client-side version of Java class ( for 
Converter or Validator )

    * getScript method gets Java class for JSF Validator or JSR-303 annotation 
and returns instance of ClientScript interface that describes JavaScript 
resource and function name. First ( minimal ) implementation:
          o Tries to get resource with same name/folder as Java class has, but 
with ".js" extension. If such resource exists, use it with default function 
name.
          o If no .js resource found, perform the same lookup for resource with 
".properties" extension. If found, read it as Java properties and get 
information as "library" "resourceName" "function" properties.
          o In future, it can use Java Annotations on custom validators or 
BeanValidator ...
          o Throws ScriptNotFoundException otherwise.

-- 
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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to