You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Nicolas Romanetti (JIRA)" <ji...@apache.org> on 2007/06/12 11:10:28 UTC
[jira] Created: (WW-1983) text tag and action support getText does
not resolve properties having a prefix matching the name of a bean on the
value stack
text tag and action support getText does not resolve properties having a prefix matching the name of a bean on the value stack
------------------------------------------------------------------------------------------------------------------------------
Key: WW-1983
URL: https://issues.apache.org/struts/browse/WW-1983
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.0.6
Reporter: Nicolas Romanetti
Here is a simple example:
On the value stack I have a bean named currentAccount.
In a properties resource file I have the following properties defined:
currentAccount.firstNameLabel=Prénom
myCurrentAccount.firstNameLabel=Prénom
In my JSP (result of an action) I have:
==============================
<s:property value="currentAccount.firstName" />
-- Using text tag
<s:text name="currentAccount.firstNameLabel" />
<s:text name="myCurrentAccount.firstNameLabel" />
-- Same test with getText...
<s:property value="%{getText('currentAccount.firstNameLabel')}" />
<s:property value="%{getText('myCurrentAccount.firstNameLabel')}" />
The output result is:
=================
Nicolas
-- Using text tag
firstNameLabel
Prénom
-- Same test with getText...
firstNameLabel
Prénom
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-1983) text tag and action support getText does
not resolve properties having a prefix matching the name of a bean on the
value stack
Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Husted updated WW-1983:
---------------------------
Fix Version/s: Future
Setting Fix Version to "future" for issues without a set fix version.
> text tag and action support getText does not resolve properties having a prefix matching the name of a bean on the value stack
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: WW-1983
> URL: https://issues.apache.org/struts/browse/WW-1983
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.6
> Reporter: Nicolas Romanetti
> Fix For: Future
>
>
> Here is a simple example:
> On the value stack I have a bean named currentAccount.
> In a properties resource file I have the following properties defined:
> currentAccount.firstNameLabel=Prénom
> myCurrentAccount.firstNameLabel=Prénom
> In my JSP (result of an action) I have:
> ==============================
> <s:property value="currentAccount.firstName" />
> -- Using text tag
> <s:text name="currentAccount.firstNameLabel" />
> <s:text name="myCurrentAccount.firstNameLabel" />
> -- Same test with getText...
> <s:property value="%{getText('currentAccount.firstNameLabel')}" />
> <s:property value="%{getText('myCurrentAccount.firstNameLabel')}" />
> The output result is:
> =================
> Nicolas
> -- Using text tag
> firstNameLabel
> Prénom
> -- Same test with getText...
> firstNameLabel
> Prénom
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.