Hi,

On Tue, May 8, 2012 at 4:51 AM, Christopher Piggott <[email protected]> wrote:
> What's the current state of javascript overlay objects and
> JsonpRequestBuilder?  Should the same code work both in deployed (running on
> a web server) as well as  debug / development mode?
>
> I'm running into issues with runtime exceptions, and the whole thing is a
> bit murky to me.  The jsonp "object" that I'm returning is actually nested:
>
> public class SensorList extends JavaScriptObject {
>     protected SensorList() { }
>     public final native List<Sensor> getSensorList() /*-{ return
> this.sensorList; } -*/
> }
>
> public class Sensor extends JavaScriptObject {
>     protected Sensor() { }
>     public final native List<Sensor> getSensorName() /*-{ return
> this.sensorName; } -*/
>     /* other properties ... */
> }

The above code is not expected to work. In particular the use of List
as a return type from a native method is probably not what you want.
You probably want one of

com.google.gwt.core.client.JsArrayString
com.google.gwt.core.client.JsArrayInteger
com.google.gwt.core.client.JsArray<E>

HTH,

Peter Donald

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