You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Tim Wintle (JIRA)" <ji...@apache.org> on 2010/05/07 11:52:48 UTC

[jira] Updated: (SHINDIG-1262) Default UserPref values in a gadget are not rendered.

     [ https://issues.apache.org/jira/browse/SHINDIG-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Wintle updated SHINDIG-1262:
--------------------------------

    Attachment: shindig-1262-tag-1.0-r942040.patch

Cleaned 1.0.x patch against revision 942040

> Default UserPref values in a gadget are not rendered.
> -----------------------------------------------------
>
>                 Key: SHINDIG-1262
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1262
>             Project: Shindig
>          Issue Type: Bug
>          Components: PHP
>    Affects Versions: 1.1-BETA5
>         Environment: RedHat 5.3, Apache 2.2, PHP 5.2
>            Reporter: James McIninch
>            Priority: Minor
>             Fix For: 1.1-RC1
>
>         Attachments: shindig-1262-tag-1.0-r942040.patch, shindig-1262-tag-1.0.patch, shindig-1262.patch
>
>
> Refer to SHINDIG-175.
> The problem is patched in the Java version, but not PHP.
> Sample gadget:
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
> 	<ModulePrefs title="Hello" description="An example of a simple gadget" author="JDM"  />
> 	<UserPref name="firstname" display_name="Your name" datatype="string" default_value="stranger" />
> 	<Content type="html">
> 		<![CDATA[
> 		    Hello, <span id="placeholder">name goes here</span>!
> 		    <script type="text/javascript">
> 		       var prefs = new gadgets.Prefs();
> 		       var name  = prefs.getString("firstname");
> 		       document.getElementById("placeholder").innerHTML = name;
> 		    </script>
> 		]]>
> 	</Content>
> </Module>
> Displays "Hello, !" when it should display "Hello, stranger!"

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