[richfaces-issues] [JBoss JIRA] Updated: (RF-9509) ClientScriptLookupService unit tests and implementation
Alexander Smirnov (JIRA)
jira-events at lists.jboss.org
Fri Oct 29 17:27:55 EDT 2010
[ https://jira.jboss.org/browse/RF-9509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Smirnov updated RF-9509:
----------------------------------
Original Estimate: 0 minutes
Remaining Estimate: 0 minutes
Description:
ClientScriptLookupService looks for client-side version of Java class ( for Converter or Validator )
o On startup, lookup for resources in classpath "/META-INF/csv.xml". If found, read it and build default class-to-resource mapping.
* 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 in the org.richfaces.csv with the same name as Java class, but with ".js" extension. If such resource exists, use it with default function name ( java class name with first letter lowercase.
o If no .js resource found, try to use table from XML ...
o If still resource found, try to use Java Annotations on custom validators or BeanValidator ...
o Throws ScriptNotFoundException otherwise.
was:
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.
> 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
>
> Original Estimate: 0 minutes
> Remaining Estimate: 0 minutes
>
> ClientScriptLookupService looks for client-side version of Java class ( for Converter or Validator )
> o On startup, lookup for resources in classpath "/META-INF/csv.xml". If found, read it and build default class-to-resource mapping.
> * 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 in the org.richfaces.csv with the same name as Java class, but with ".js" extension. If such resource exists, use it with default function name ( java class name with first letter lowercase.
> o If no .js resource found, try to use table from XML ...
> o If still resource found, try to 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
More information about the richfaces-issues
mailing list