You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shale.apache.org by "Ed Burns (JIRA)" <ji...@apache.org> on 2006/08/08 18:39:21 UTC

[jira] Updated: (SHALE-183) Shale Remoting doesn't support linking Javascript of popular javascript libraries.

     [ http://issues.apache.org/struts/browse/SHALE-183?page=all ]

Ed Burns updated SHALE-183:
---------------------------

    Attachment: shale-183-snapshot.tar.gz

Fix in progress.  If someone has time, please review my approach.

> 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
>          Issue Type: Improvement
>          Components: Remoting
>            Reporter: Ed Burns
>         Attachments: shale-183-snapshot.tar.gz
>
>
> 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