sory, i make a mistake when pressing keyboard, so message sent before i
finish typing

sample is like this
class Person extends JavaScriptObject{
protected Person(){}
public native String getUserName ()/*-{return this.username.}-*/;
public native void setUserName(String name)/*-{this.username=name;}-*/;
}

and on jsni method :
private native Person test()/*-{
var a={username:"some username"}
return a;
}-*/;

i think this trick will work
On Mon, Mar 2, 2009 at 4:58 PM, sutarsa giri <[email protected]> wrote:

> you may could set the jsni method return instance of subclass of
> com.google.gwt.core.client.JavaScriptObject
>
> for example :
> class Person extends JavaScriptObject{
>
>
> }
>
> On Mon, Mar 2, 2009 at 4:34 PM, jagadesh <[email protected]>wrote:
>
>>
>> Hi i read the article.
>> i was able to get the primitive values liks String , int e.t.c. i want
>> an javascript object to be transmitted to java Code[Gwt ] .
>>
>> Thank u,
>> jagadesh.
>> >>
>>
>

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