It should be a JavaScript numerical type. Sorry that I haven't used GWT or JSNI in a while, so I'm not completely sure of the correct mapping (but it can't be that difficult, right?) ~Arne
On Fri, Jul 17, 2009 at 7:37 AM, Andre Leger <rareleg...@gmail.com> wrote: > One follow up question: > > What is the real type of 'postedTime'? Using JSNI in GWT, I am trying to > send the fetched value as a Java instance, however, it does not work when I > use the JNI parameter signature "Ljava/lang/String;" specifically for > 'postedTime'. I am able to see (using Firebug) that the postedTime data is > actually being fetched, however, I am not able to use the variable after it > has been fetched (this is where my gadget gets stuck). I do not have this > problem when I only fetch activity.getField('title'); > > What am I doing wrong? > > A rough example: > > public native void fetchActivitiesHandler(JavaScriptObject data) /*-{ > > [snipped code] > > var activities = data.get('req').getData(); > activities.each(function(activity) { > var time = activity.getField('postedTime'); > var title = activity.getField('title'); > someObject = > singlet...@gopensocial.client.gopensocial::createMessage(Ljava/lang/String;Ljava/lang/String;)(time, > title); > } > [snipped code] > > > }-*/; > > > Andre > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to opensocial-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---