We need to make Xap.require() more configurable, or at least give users a
directory it understand.
--------------------------------------------------------------------------------------------------
Key: XAP-219
URL: http://issues.apache.org/jira/browse/XAP-219
Project: XAP
Issue Type: Improvement
Components: MCOs, Widgets
Reporter: Turyn, Michael
Currently, Xap.require() can only locate JS constructors with the prefices
"xap.", "dojo.", and "google.". This makes it more difficult for users to
bring in their own classes, most significantly in an MCO without a defined path
to a source file. This also has implications for adding user-defined bridges
and widgets.
At the very least, we should configure XAP out-of-the-box with a an additional
directory known to Xap.require(), so that a user who creates a file in (say)
org/apache/format/YenFormatter.js
will be able to use it using a simple MCO:
<mco:mco class="org.apache.format.YenFormatter"
id="yenFormatter"/>
---that is, XAP_ROOT/usr/ is a default directory for unrecognized prefices.
Alternately, we should let Xap.require() know about additional prefix mappings
using the configuration file. This is probably a better solution overall, can
be wizardable,....
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira