You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Rainer Hermanns (JIRA)" <ji...@apache.org> on 2007/06/21 12:57:26 UTC

[jira] Updated: (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 ]

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.