Re: Usage of constants/property files based on arbitrary property rather than locale

2011-04-16 Thread Alexandre Ardhuin
Jeff, You are right. This code did not work although there was no compilation error. I have 2 other solutions ( and this time, I have successfully tested the first one :) ) 1. with a class that switch I18n public class I18nSwitcher { public static I18n getI18n() { final String

Re: Usage of constants/property files based on arbitrary property rather than locale

2011-04-15 Thread Alexandre Ardhuin
I have something similar in my project. I resolved the problem with Deferred Binding. In HTML page, I can set a js variable : var profil = profil1; This js variable will be re-use in Module.gwt.xml to replace default i18n by a specific one: !-- 'profil' property -- define-property

Re: Usage of constants/property files based on arbitrary property rather than locale

2011-04-15 Thread Jeff Burnham
Alexandre, I had tried this but ran into the issue that the replace-with class=xxx declaration required a class rather than an interface which is what is used by i18n when utilizing property files. I've seen other approaches where people have used this approach along with a factory but that

Usage of constants/property files based on arbitrary property rather than locale

2011-04-13 Thread Jeff
Does anyone have any experience with how to handle the following problem? My application has multiple user roles, all of which see the same screen with the same fields but depending on what role the user comes in with, the labels on the fields may differ. I'd like to use an approach similar to