I am working with the GWT edition and trunk r5150 in order to get the recent 
changes that fix content negotiation issues present in 2.0m3.

I have a simple GWT app loosely based upon the RestletGWTSimpleExample. I 
notice that I cannot get my GWT app to run in hosted mode without changing the 
source element in GWT.gwt.xml. The trunk version specifies:

  <source path="."/>

which causes a "Non-canonical source path: ./" in the hosted mode browser 
followed by numerous other derived errors. Changing the offending source 
statement to:

  <source path=""/>

apparently solves the issue.

I have not been able to find RestletGWTSimpleExample in the svn sources or on 
the site other than through the link provided. Obviously there have been 
changes made in the callback mechanism between 2.0m3 and the trunk version. 
Attempting the following:

        // Add an AJAX call to the server
        final Client client = new Client(Protocol.HTTP);
        client.get(PING_URL, new Uniform() {
            public void handle(Request request, Response response, Uniform 
callback) {

gets me past compilation issues but results in an NPE:

[ERROR] Uncaught exception escaped
java.lang.NullPointerException: null

So, I am wondering if I have the callback pattern properly coded, or maybe this 
isn't yet ready for prime time?

Also, it would be helpful if the RestletGWTSimpleExample source was in the svn 
trunk and updated along with the core.

Thanks for any help you can provide.



Reply via email to