Hi,
I have a problem with implementing i18n in my application using
ConstantsWithLookup interface.
The exception is thrown: java.util.MissingResourceException: Cannot
find constant 'METADATA2'; expecting a method name.
The interface is:
public interface AppConstants extends ConstantsWithLookup {
/**
* Translated "State".
*
* @return translated "State"
*/
@DefaultStringValue("State")
@Key("Attr.State")
String attrState();
}
And AppConstants.properties file contains one line:
attrState=Test State
Exception is thrown in the next piece of code:
const = GWT.create(AppConstants.class)
String state = const.getString('Attr.State');
Does anyone know what is wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---