shindig-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Barmeyer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SHINDIG-1162) Problem while updating a dataset and re-rendering a template
Date Wed, 23 Dec 2009 01:53:30 GMT

    [ https://issues.apache.org/jira/browse/SHINDIG-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793887#action_12793887
] 

Eric Barmeyer commented on SHINDIG-1162:
----------------------------------------

Stumbled over a very similar error when I tried to render one of my templates:

<div id="test"></div>
<script type="text/os-template" tag="foo:bar">
  ${data}
</script>
<script type="text/javascript">
  function init() {
    var template = opensocial.template.getTemplate("foo:bar");
    template.renderInto(document.getElementById("test"), { data : "Hello World!" });
  }
  gadgets.util.registerOnLoadHandler(init);

This results in "1Hello World!" instead of just "Hello World!".

My current fix for this is to turn off the javascript compression in the config file. Couldn't
figure out yet why this happen or how to fix it. Could this be a bug in the javascript compressor?

> Problem while updating a dataset and re-rendering a template
> ------------------------------------------------------------
>
>                 Key: SHINDIG-1162
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1162
>             Project: Shindig
>          Issue Type: Bug
>          Components: Javascript 
>         Environment: PHP Shindig (rev 810159)
>            Reporter: Matthieu Huguet
>         Attachments: test-1162.xml
>
>
> Here is an example gadget : http://pastebin.ca/1550608
> After the first dataset update /  template processing :
>  - A number (debug?) is prepended to the ${test} variable in the output
> After the second dataset update / template processing :
> - The number is still there, incremented
> -  The <h1></h1> block surrounding the ${test} variable has been removed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message