Friday, June 26, 2015

GWT MyConstants extends Constants not loading

Hello,

I have a question about Contants in GWT. When Im changing my properties file the new values are not imported. What Im doing wrong?

Thanks in advanced

Here my Configuration


import com.google.gwt.i18n.client.Constants;

public interface MyConstants extends Constants {
 String targetVersion();
 String server();
 String port();
 String loglevel();
 String pathtoServer();
 
}


In my Entry Class Im loading the class 


 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class TestWeb implements EntryPoint {
/**
* The message displayed to the user when the server cannot be reached or
* returns an error.
*/
        MyConstants myConstants = (MyConstants)  GWT.create(MyConstants.class);
List<String> targetVersionArray =new ArrayList<String>();
String configServer="";
String configPort="";
String logging="";
String pathServer="";
MyContants.properties is placed under Class Client.



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment