facebook widgets

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

facebook widgets

Postby vampie » Fri Mar 07, 2008 11:21 am

my aim is to write facebook widgets for GWT using java facebook api provided by gwt

but when i import their classes i get chained ...error..

do I have to provide the source for facebook-api.jar ???
when i import i get error with it...

i know gwt preprocess the libs i added o project.xml ...

so what if i had jdbc driver with closed source ?
vampie
 
Posts: 89
Joined: Mon Nov 06, 2006 10:18 am

Re: facebook widgets

Postby Eric Clayberg » Fri Mar 07, 2008 12:27 pm

vampie wrote:do I have to provide the source for facebook-api.jar ?

I don't see why you would.
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

Re: facebook widgets

Postby peterblazejewicz » Fri Mar 07, 2008 2:24 pm

hi,

that is server side code not client code, if you use it outside of client folders (which are translated to javascript) and include jar in project path that is should just work,

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: facebook widgets

Postby vampie » Sat Mar 08, 2008 2:50 am

sorry for confused a bit

For example I have a java.sql.ResultSet

I have client side code in ... client package
and i have resultset in server package

how can i write result to a Label in gwt module located in client package???

can you give me a tine example pls?

( Do i have to use RPC calls for communicating data between ....client and ....service packages ? )
vampie
 
Posts: 89
Joined: Mon Nov 06, 2006 10:18 am

Re: facebook widgets

Postby peterblazejewicz » Sat Mar 08, 2008 6:37 am

hi,

that is non-translatable java object,
http://code.google.com/webtoolkit/docum ... n/jre.html
you can use it in any package wich is not within your "source" paths, which by default are "client",
Code: Select all
<source path="client"/>

which is defaulted pre-deemed entry in .gwt.xml module,
so you can use non-translatable java class in e.g. your.package.module.server implementation or any other imported package but not within your.package.module.client package and subpackages,
http://groups.google.com.bz/group/Googl ... 4313d7cd1e
so you write GWT RPC implementation with GWT Designer plugin, use your java sql classes in it and convert non-translatable object into your DTO object which is used both in "client" and "server" packages (as part of GWT RPC implementation of your service),

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: facebook widgets

Postby Eric Clayberg » Wed Mar 12, 2008 9:35 am

Thank you for adding your insights here.
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