Given MyMessages.java:

import com.google.gwt.i18n.client.Constants;
public interface MyMessages extends Costants {
        String textField_text();
}

The MyMessages.properties:
textField_text=date is not correct


and MyMessages_it.properties containing:
textField_text=la data non e' corretta.


and  in the Main.gwt.xml:
<inherits name="com.google.gwt.i18n.I18N"/>
<extend-property name="locale" values="it"/>


The label:
MyMessages MYMESSAGES = GWT.create(MyMessages.class);
textField.setText(MYMESSAGES.textField_text());


Shows the corrects message, depending on the ?locale=...

 ----- BUT -----

If i JUST change:

import com.google.gwt.i18n.client.Messages;
public interface MyMessages extends Messages {
..
}


I get this error Message:
java.lang.RuntimeException: Deferred binding failed for
'com.mycompany.project.client.MyMessages' (did you forget to inherit a
required module?)       at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.client.GWT.create(GWT.java:97)   at
com.mycompany.project.client.FirstComposite.<clinit>(FirstComposite.java:
24)     at com.mycompany.project.client.Main.onModuleLoad(Main.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)         at
java.lang.reflect.Method.invoke(Unknown Source)         at
com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)       at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)    at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)    at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)    at java.lang.Thread.run(Unknown Source)




I really don't get what i am doing wrong. If someone knows why this is
happening please help me.
Thanks in advance

p.s.: i am using Eclipse 3.6 with GWT 2.1.0

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

Reply via email to