class that extends a visual component ?

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

class that extends a visual component ?

Postby terra25 » Sat Feb 03, 2007 6:41 am

I have a class that extendes a Tree component

Is possible to send that class from the client to the server or from the server to the client serializyng that class that extends a visual component.
terra25
 
Posts: 4
Joined: Mon Jan 29, 2007 5:53 am

Re: class that extends a visual component ?

Postby Eric Clayberg » Sat Feb 03, 2007 1:28 pm

terra25 wrote:I have a class that extendes a Tree component
Is possible to send that class from the client to the server or from the server to the client serializyng that class that extends a visual component.

No. GWT can't do that.

Only classes that implement com.google.gwt.user.client.rpc.IsSerializable can be serialized and sent between the client and the server.

Widget's are not serializable, so it is better to send moel information and build the GUI on the client side.

If you want to use a custom component on the client, place it in the client directory.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests