You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jeromy Evans (JIRA)" <ji...@apache.org> on 2008/04/11 06:05:05 UTC
[jira] Resolved: (WW-1958) Using "key" attribute on
results in value being printed, rather than i18n key
[ 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.