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=17600>.
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=17600

key property for html:optionsCollection to localise options

           Summary: key property for html:optionsCollection to localise
                    options
           Product: Struts
           Version: 1.1 Beta 3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In reviewing Chapter 13 - Localizing Content - of "Struts In Action", Ted 
Husted describes a way to localise select box labels with the use of 
<html:options> by using org.apache.scaffold.text.MessageUtils in the Action.

Suppose that the Action can construct a Collection of LabelValueBeans such that 
the "value" is the standard value, but the "label" property contains a message 
key.  Prima facie, html:optionsCollection would be awesome if we could 
substitute the "label" attribute for a "key" attribute.  This way, we could let 
the tag handle the details instead of having the Action look up the Locale to 
look up the message bundle to look up the messages for our select box.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to