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/03/01 11:04:05 UTC

[jira] Commented: (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:comment-tabpanel&focusedCommentId=12839626#action_12839626 ] 

Tim Wintle commented on SHINDIG-1262:
-------------------------------------


Is this patch likely to get applied against the 1.0 branch?



> 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.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.