Uploaded image for project: 'Shale'
  1. Shale
  2. SHALE-183

Shale Remoting doesn't support linking Javascript of popular javascript libraries.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • TBD
    • Remoting
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            edburns@acm.org Ed Burns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: