Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1412

Internet Explorer does not display external taglibraries in template

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.2
    • Component/s: Java, Javascript , PHP
    • Labels:
      None
    • Environment:
      Windows XP, Internet Explorer 8
      OSDE-Plugin for Eclipse v1.0.0

      Description

      When trying to use external custom taglibraries in templates with require and autoUpdate-attribute, IE refuses to display the content iniside the <script type="text/os-template"></script> Tag.
      Works fine in Firefox,Safari.

      Example to demonstrate the issue:

      gadget.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <Module>
      <ModulePrefs title="OS Templates Crossbrowser">
      <Require feature="opensocial-0.9" />
      <Require feature="views" />
      <Require feature="dynamic-height" />
      <Require feature="opensocial-data" />
      <Require feature="opensocial-templates">
      <Param name="requireLibrary">test.xml</Param>
      </Require>
      </ModulePrefs>
      <Content type="html"><![CDATA[

      <script type="text/javascript">
      opensocial.data.DataContext.putDataSet( "fruit", "Pineapple" );
      </script>

      <script type="text/os-template" xmlns:qc="http://www.qc.com" xmlns:os="http://ns.opensocial.org/2008/markup" require="fruit" autoUpdate="true">
      <qc:mytemplate/>
      </script>

      ]]></Content>
      </Module>

      external template:

      <?xml version="1.0" encoding="UTF-8"?>
      <Templates xmlns:qc="http://www.qc.com" xmlns:os="http://ns.opensocial.org/2008/markup" xmlns="http://www.w3.org/1999/xhtml">
      <Namespace prefix="qc" url="http://www.qc.com" />

      <Template tag="qc:mytemplate">

      <h3>Fruit: <span>${fruit}</span></h3>

      </Template>
      </Templates>

      Our current workaround is to copy all content from external template-xml-files into the gadget.xml

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhofmann Bastian Hofmann
                Reporter:
                stefanthem Stefan Meyer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: