You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/01/28 00:29:46 UTC
DO NOT REPLY [Bug 26476] New: -
Possibility of allowing parameter(s) in struts tags property
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26476>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26476
Possibility of allowing parameter(s) in struts tags property
Summary: Possibility of allowing parameter(s) in struts tags
property
Product: Struts
Version: 0.5 Final
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Custom Tags
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: davidwong87@hotmail.com
CC: davidwong87@hotmail.com
I have been using struts for about 3 years and I have being always wish to be
able to access bean/form getter methods that takes parameters. This is
particularly useful when working on multi-lingual support project.
For example to display the name of a location one would use the following,
<bean:write name="location" property="name" />
translate to calling the getName() method in the location bean.
Now, if location name have translation in many difference language the above
tag usage will not be able to display the location name in a particular
language.
However, if we could have the ability to supply a parameter to a method through
the tag we could pick which language to the name in. That is, the tag usage
would becomes
<bean:write name="location" property="name" parameter="-347849847775344" />
and this is translated to calling the getName(String languageId) method ==>
getName("-347849847775344").
I am happy to build the extension to support the feature proposed if it have
not been built.
Cheers,
David
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org