You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2009/03/09 18:34:04 UTC

[jira] Created: (WW-3029) key attribute is not working properly

key attribute is not working properly
-------------------------------------

                 Key: WW-3029
                 URL: https://issues.apache.org/struts/browse/WW-3029
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.1.6
            Reporter: Musachy Barroso
            Priority: Critical
             Fix For: 2.1.7


We are moving some applications from using Struts 2.0.11 to Struts 2.1.6.  In
our applications using Struts 2.0.11 we used the label tag's key attribute
to specify the name, value, label on some of our jsp view pages.  So for
example:

       <s:label key="personBean.firstName" />

would render in the jsp page as:

<tr>
   <td class="tdLabel"><label for="personBean_firstName" class="label">Your
first name:</label></td>
   <td
><label id="personBean_firstName">Bruce</label></td>
</tr>

The global-message.properties file has:

   personBean.firstName=Your first name

and the personBean object exists on the value stack and it has a public
getFirstName() method.

After changing to Struts 2.1.6, using the label tag with the key attribute
no longer works as it did when we used Struts 2.0.11.  Now the jsp renders:

<tr>
   <td class="tdLabel"><label for="personBean_firstName" class="label">Your
first name:</label></td>
   <td><label id="personBean_firstName">Your first name</label></td>
</tr>

Instead of showing the value of the personBean.firstName, it shows the value
from the global-message.properties file (Your First Name)

If I use <s:property value="personBean.firstName" /> the
personBean.firstName value (Bruce) does display correctly on the jsp page.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WW-3029) key attribute is not working properly

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso reassigned WW-3029:
-----------------------------------

    Assignee: Musachy Barroso

> key attribute is not working properly
> -------------------------------------
>
>                 Key: WW-3029
>                 URL: https://issues.apache.org/struts/browse/WW-3029
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>            Reporter: Musachy Barroso
>            Assignee: Musachy Barroso
>            Priority: Critical
>             Fix For: 2.1.7
>
>
> We are moving some applications from using Struts 2.0.11 to Struts 2.1.6.  In
> our applications using Struts 2.0.11 we used the label tag's key attribute
> to specify the name, value, label on some of our jsp view pages.  So for
> example:
>        <s:label key="personBean.firstName" />
> would render in the jsp page as:
> <tr>
>    <td class="tdLabel"><label for="personBean_firstName" class="label">Your
> first name:</label></td>
>    <td
> ><label id="personBean_firstName">Bruce</label></td>
> </tr>
> The global-message.properties file has:
>    personBean.firstName=Your first name
> and the personBean object exists on the value stack and it has a public
> getFirstName() method.
> After changing to Struts 2.1.6, using the label tag with the key attribute
> no longer works as it did when we used Struts 2.0.11.  Now the jsp renders:
> <tr>
>    <td class="tdLabel"><label for="personBean_firstName" class="label">Your
> first name:</label></td>
>    <td><label id="personBean_firstName">Your first name</label></td>
> </tr>
> Instead of showing the value of the personBean.firstName, it shows the value
> from the global-message.properties file (Your First Name)
> If I use <s:property value="personBean.firstName" /> the
> personBean.firstName value (Bruce) does display correctly on the jsp page.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-3029) key attribute is not working properly

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-3029.
---------------------------------

    Resolution: Fixed

This bug was introduced by https://issues.apache.org/struts/browse/WW-2171

> key attribute is not working properly
> -------------------------------------
>
>                 Key: WW-3029
>                 URL: https://issues.apache.org/struts/browse/WW-3029
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>            Reporter: Musachy Barroso
>            Assignee: Musachy Barroso
>            Priority: Critical
>             Fix For: 2.1.7
>
>
> We are moving some applications from using Struts 2.0.11 to Struts 2.1.6.  In
> our applications using Struts 2.0.11 we used the label tag's key attribute
> to specify the name, value, label on some of our jsp view pages.  So for
> example:
>        <s:label key="personBean.firstName" />
> would render in the jsp page as:
> <tr>
>    <td class="tdLabel"><label for="personBean_firstName" class="label">Your
> first name:</label></td>
>    <td
> ><label id="personBean_firstName">Bruce</label></td>
> </tr>
> The global-message.properties file has:
>    personBean.firstName=Your first name
> and the personBean object exists on the value stack and it has a public
> getFirstName() method.
> After changing to Struts 2.1.6, using the label tag with the key attribute
> no longer works as it did when we used Struts 2.0.11.  Now the jsp renders:
> <tr>
>    <td class="tdLabel"><label for="personBean_firstName" class="label">Your
> first name:</label></td>
>    <td><label id="personBean_firstName">Your first name</label></td>
> </tr>
> Instead of showing the value of the personBean.firstName, it shows the value
> from the global-message.properties file (Your First Name)
> If I use <s:property value="personBean.firstName" /> the
> personBean.firstName value (Bruce) does display correctly on the jsp page.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.