struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Burns (JIRA)" <j...@apache.org>
Subject [jira] Created: (SHALE-183) Shale Remoting doesn't support linking Javascript of popular javascript libraries.
Date Fri, 02 Jun 2006 20:50:16 GMT
Shale Remoting doesn't support linking Javascript of popular javascript libraries.
----------------------------------------------------------------------------------

         Key: SHALE-183
         URL: http://issues.apache.org/struts/browse/SHALE-183
     Project: Shale
        Type: Improvement

  Components: Remoting  
    Reporter: Ed Burns


I would like to have an enhancement to XhtmlHelper.linkJavascript() that supported many different
popular JavaScript libraries.  For example, I'd like to do something like:

getXhtmlHelper().linkJavascript(context, component, writer,
                        Mechanism.CLASS_RESOURCE, "dojo", "0.3.0");
getXhtmlHelper().linkJavascript(context, component, writer,
                        Mechanism.CLASS_RESOURCE, "prototype", "1.4.0");
getXhtmlHelper().linkJavascript(context, component, writer,
                        Mechanism.CLASS_RESOURCE, "scriptaculous", "1.6.1");

And rest assured in the knowledge that the proper script elemnets will be rendered out iff
no-one else on this request has asked for these scripts to be rendered.  

If we make jMaki and jsf-extensions use this, then we can save a lot of code and bandwidth.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message