struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Raible (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-1958) Using "key" attribute on <s:label> results in value being printed, rather than i18n key
Date Thu, 31 May 2007 00:14:38 GMT
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.


Mime
View raw message