[ 
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.

Reply via email to