You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Ben Bonfil (JIRA)" <ji...@apache.org> on 2008/09/18 13:53:46 UTC
[jira] Created: (SHINDIG-613) __MSG__'s are not being substituted
inside UserPrefs default_value
__MSG__'s are not being substituted inside UserPrefs default_value
------------------------------------------------------------------
Key: SHINDIG-613
URL: https://issues.apache.org/jira/browse/SHINDIG-613
Project: Shindig
Issue Type: Bug
Components: Gadget Rendering Server (PHP)
Environment: PHP, Lighttpd, Linux
Reporter: Ben Bonfil
As the title says, message's are not being substituted in a UserPref's default_value.
i.e.:
<UserPref name="cd_text" default_value="__MSG_edit_title__" datatype="hidden"/>
when calling "get", it will return "__MSG_edit_title__"
you can see this gadget as an example: http://www.labpixies.com/campaigns/countdown/countdown.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SHINDIG-613) __MSG__'s are not being substituted
inside UserPrefs default_value
Posted by "impetus technologies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632207#action_12632207 ]
impetus technologies commented on SHINDIG-613:
----------------------------------------------
I think Shindig PHP is sending the correct values but while rendering its not displaying proper values. If you view the source of the gadget rendered then you will see
<input type="text" onchange="lp_countdown.saveText(this.value);" onfocus="this.select();" value="Click here to edit title" class="text_input" id="title_text" style="color: rgb(150, 221, 14);"/>
which should display "Click here to edit title" but its not. May be somebody from JavaScript side can put some more light on it.
> __MSG__'s are not being substituted inside UserPrefs default_value
> ------------------------------------------------------------------
>
> Key: SHINDIG-613
> URL: https://issues.apache.org/jira/browse/SHINDIG-613
> Project: Shindig
> Issue Type: Bug
> Components: Gadget Rendering Server (PHP)
> Environment: PHP, Lighttpd, Linux
> Reporter: Ben Bonfil
>
> As the title says, message's are not being substituted in a UserPref's default_value.
> i.e.:
> <UserPref name="cd_text" default_value="__MSG_edit_title__" datatype="hidden"/>
> when calling "get", it will return "__MSG_edit_title__"
> you can see this gadget as an example: http://www.labpixies.com/campaigns/countdown/countdown.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SHINDIG-613) __MSG__'s are not being substituted
inside UserPrefs default_value
Posted by "Ben Bonfil (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632221#action_12632221 ]
Ben Bonfil commented on SHINDIG-613:
------------------------------------
actually I have just realized that this problem is related to the way I had implemented UserPrefs default_value
There was a discussion some days ago on shindig-dev, as the default shinding install doesn't (or didn't) load userprefs with their default values.
> __MSG__'s are not being substituted inside UserPrefs default_value
> ------------------------------------------------------------------
>
> Key: SHINDIG-613
> URL: https://issues.apache.org/jira/browse/SHINDIG-613
> Project: Shindig
> Issue Type: Bug
> Components: Gadget Rendering Server (PHP)
> Environment: PHP, Lighttpd, Linux
> Reporter: Ben Bonfil
>
> As the title says, message's are not being substituted in a UserPref's default_value.
> i.e.:
> <UserPref name="cd_text" default_value="__MSG_edit_title__" datatype="hidden"/>
> when calling "get", it will return "__MSG_edit_title__"
> you can see this gadget as an example: http://www.labpixies.com/campaigns/countdown/countdown.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SHINDIG-613) __MSG__'s are not being substituted
inside UserPrefs default_value
Posted by "impetus technologies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632195#action_12632195 ]
impetus technologies commented on SHINDIG-613:
----------------------------------------------
I tried this gadget with latest Shindig PHP code. And its working fine.
> __MSG__'s are not being substituted inside UserPrefs default_value
> ------------------------------------------------------------------
>
> Key: SHINDIG-613
> URL: https://issues.apache.org/jira/browse/SHINDIG-613
> Project: Shindig
> Issue Type: Bug
> Components: Gadget Rendering Server (PHP)
> Environment: PHP, Lighttpd, Linux
> Reporter: Ben Bonfil
>
> As the title says, message's are not being substituted in a UserPref's default_value.
> i.e.:
> <UserPref name="cd_text" default_value="__MSG_edit_title__" datatype="hidden"/>
> when calling "get", it will return "__MSG_edit_title__"
> you can see this gadget as an example: http://www.labpixies.com/campaigns/countdown/countdown.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SHINDIG-613) __MSG__'s are not being substituted
inside UserPrefs default_value
Posted by "Chris Chabot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Chabot resolved SHINDIG-613.
----------------------------------
Resolution: Fixed
Assignee: Chris Chabot
If i remeber correctly, the correct solution for this was to parse all the prefs + defaults on the container's side.
That's what i've implemented on partuza as well (committed yesterday) ... if that's incorrect in some way, please re-open the issue!
> __MSG__'s are not being substituted inside UserPrefs default_value
> ------------------------------------------------------------------
>
> Key: SHINDIG-613
> URL: https://issues.apache.org/jira/browse/SHINDIG-613
> Project: Shindig
> Issue Type: Bug
> Components: Gadget Rendering Server (PHP)
> Environment: PHP, Lighttpd, Linux
> Reporter: Ben Bonfil
> Assignee: Chris Chabot
>
> As the title says, message's are not being substituted in a UserPref's default_value.
> i.e.:
> <UserPref name="cd_text" default_value="__MSG_edit_title__" datatype="hidden"/>
> when calling "get", it will return "__MSG_edit_title__"
> you can see this gadget as an example: http://www.labpixies.com/campaigns/countdown/countdown.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.