This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes How to localize checkboxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to localize checkboxes" Watch "How to localize checkboxes" New topic

How to localize checkboxes

Ed Mahoney

Joined: Sep 19, 2000
Posts: 14
Hi All,
I understand the 'standard' way to use multiboxes. The example is pretty clear, but it strikes me as being impossible to localize. The examples all show the strings hard-coded in the form bean. Which is exactly opposite the intent of putting all your strings in nice, neat properties files that will be automatically swapped for the correct language at run time. How can you access the properties file in your form bean so you populate the String array that you are passing to the multibox?
Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
I don't understand? The value of a multibox is purely a behind-the-scenes thing, so there's no need for i18n. The user-elements for the checkbox, such as alt text, title and label can be rendered in the usual, internationalized way. Am I missing something?
- Peter
I agree. Here's the link:
subject: How to localize checkboxes
Similar Threads
Transferring data from one FormBean to another
Java Bean default value for setProperty
Using a DataBean Object in Struts Form bean
radio buttons-storing different values
MyFaces - HtmlSelectOneMenu and ValueChangeEvent