[ 
https://issues.apache.org/struts/browse/WW-2804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45335#action_45335
 ] 

Musachy Barroso commented on WW-2804:
-------------------------------------

I do agree, that showing the "key" is a better option than evaluating the value 
stack, if that were to be changed, this is the place in UIBean:

if(this.label == null) {
    // lookup the label from a TextProvider (default value is the key)
-    providedLabel = TextProviderHelper.getText(key, key, stack);
+    providedLabel = TextProviderHelper.getText(key, key, 
Collections.emptyList(), stack, false);
}

> s:textfield lable incorrectly rendered
> --------------------------------------
>
>                 Key: WW-2804
>                 URL: https://issues.apache.org/struts/browse/WW-2804
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.1.1
>         Environment: Struts 2.1.1
>            Reporter: Scott Stanlick
>            Priority: Minor
>             Fix For: 2.1.3
>
>
> When using the struts tag <s:textfield.../> with only a key and no matching 
> label key/value pair in a resource properties file, the label is rendered as 
> the text you enter into the field!  If you either explicitly specify the 
> label attribute *or* add the key/value pair, the problem vanishes.

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