You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Matt Raible (JIRA)" <ji...@apache.org> on 2007/05/31 02:14:38 UTC
[jira] Created: (WW-1958) Using "key" attribute on
results in value being printed, rather than i18n key
Using "key" attribute on <s:label> results in value being printed, rather than i18n key
---------------------------------------------------------------------------------------
Key: WW-1958
URL: https://issues.apache.org/struts/browse/WW-1958
Project: Struts 2
Issue Type: Bug
Components: Views
Affects Versions: 2.0.6
Reporter: Matt Raible
Priority: Minor
<s:label key="person.active" cssClass="choice desc" theme="simple"/> results in <label for="...">true</label>. As a workaround, you can use the value attribute to lookup the key.
<s:label key="person.active" value="%{getText('person.active')}" cssClass="choice desc" theme="simple"/>
If I use the xhtml or css_xhtml theme, it renders both the raw value and the i18n key.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-1958) Using "key" attribute on
results in value being printed, rather than i18n key
Posted by "Matt Raible (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41150 ]
Matt Raible commented on WW-1958:
---------------------------------
Also, key seems to render an "id" attribute, but it doesn't render a "for" attribute that points to the input field's id.
> Using "key" attribute on <s:label> results in value being printed, rather than i18n key
> ---------------------------------------------------------------------------------------
>
> Key: WW-1958
> URL: https://issues.apache.org/struts/browse/WW-1958
> Project: Struts 2
> Issue Type: Bug
> Components: Views
> Affects Versions: 2.0.6
> Reporter: Matt Raible
> Priority: Minor
>
> <s:label key="person.active" cssClass="choice desc" theme="simple"/> results in <label for="...">true</label>. As a workaround, you can use the value attribute to lookup the key.
> <s:label key="person.active" value="%{getText('person.active')}" cssClass="choice desc" theme="simple"/>
> If I use the xhtml or css_xhtml theme, it renders both the raw value and the i18n key.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WW-1958) Using "key" attribute on
results in value being printed, rather than i18n key
Posted by "Jeromy Evans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeromy Evans resolved WW-1958.
------------------------------
Resolution: Duplicate
Fix Version/s: (was: 2.1.3)
2.1.1
Assignee: Jeromy Evans
key issued resolved in WW-2511
The for attribute can't be derived from the key as the key provides the label's id rather than the target element's id. The for attribute must be used explicitly,
> Using "key" attribute on <s:label> results in value being printed, rather than i18n key
> ---------------------------------------------------------------------------------------
>
> Key: WW-1958
> URL: https://issues.apache.org/struts/browse/WW-1958
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags
> Affects Versions: 2.0.6
> Reporter: Matt Raible
> Assignee: Jeromy Evans
> Priority: Minor
> Fix For: 2.1.1
>
>
> <s:label key="person.active" cssClass="choice desc" theme="simple"/> results in <label for="...">true</label>. As a workaround, you can use the value attribute to lookup the key.
> <s:label key="person.active" value="%{getText('person.active')}" cssClass="choice desc" theme="simple"/>
> If I use the xhtml or css_xhtml theme, it renders both the raw value and the i18n key.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-1958) Using "key" attribute on
results in value being printed, rather than i18n key
Posted by "Rainer Hermanns (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rainer Hermanns updated WW-1958:
--------------------------------
Fix Version/s: 2.1.0
> Using "key" attribute on <s:label> results in value being printed, rather than i18n key
> ---------------------------------------------------------------------------------------
>
> Key: WW-1958
> URL: https://issues.apache.org/struts/browse/WW-1958
> Project: Struts 2
> Issue Type: Bug
> Components: Views
> Affects Versions: 2.0.6
> Reporter: Matt Raible
> Priority: Minor
> Fix For: 2.1.0
>
>
> <s:label key="person.active" cssClass="choice desc" theme="simple"/> results in <label for="...">true</label>. As a workaround, you can use the value attribute to lookup the key.
> <s:label key="person.active" value="%{getText('person.active')}" cssClass="choice desc" theme="simple"/>
> If I use the xhtml or css_xhtml theme, it renders both the raw value and the i18n key.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.