aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to localize checkboxes" Watch "How to localize checkboxes" New topic
Author

How to localize checkboxes

Ed Mahoney
Greenhorn

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?
Thanks,
Ed
Peter den Haan
author
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: http://aspose.com/file-tools
 
subject: How to localize checkboxes
 
Similar Threads
radio buttons-storing different values
Transferring data from one FormBean to another
MyFaces - HtmlSelectOneMenu and ValueChangeEvent
Using a DataBean Object in Struts Form bean
Java Bean default value for setProperty