Eclipse GWT NoClassDefFoundError

2009-08-29 Thread jack

I have a simple GWT project in Eclipse that requires another external
project.  Everything builds fine.  But when I launch as a Google Web
App using the App Engine I get a server-side NoClassDefFound for
classes located in the external project.

I've played around with the launch config and can't get around this.
Under the classpath tab when I select the external project, Eclipse
also chooses the project's dependent jars, but when I run the GWT
project apparently Eclipse is not making these jars available to the
App Engine.

I can jar up the external project and cram it into WEB-INF/lib of my
GWT project - the error goes away then.  But this requires me to
gather up every jar that the external project relies on and place it
under WEB-INF/lib.  I imagine Eclipse should be doing this for me
through the launch configuration.

Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Making a fancy GWT Chart

2009-08-29 Thread Nether

My goal is to make a chart which shows standard deviations as a
gradient on the vertical axis.  I don't think it is easy to do this in
the browser, so what I plan on doing is having the server render the
chart to a BufferedImage and sending that to the client to display in
an "Image" widget.

The problem is that the Image widget only takes a URL, but how do I
give it a bufferedimage?

Also, is this the best solution for me to be using for making this
gradient chart?

Thanks for your time.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Project & Package Name

2009-08-29 Thread GumbyGWTBeginner

Please be gentol... I am very green around the ears to thislol

Hi Can anyone please tell me what the importance of the Project and
Package name have on app when creating a new application in eclipse?

The tutorials all tell you what to write but dont mention how they
effect the app?

Thanks in advance.

Stephan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Did you forget to inherit a required module? about jdo

2009-08-29 Thread lily

When i call
  private static final PersistenceManagerFactory PMF =
  JDOHelper.getPersistenceManagerFactory("transactions-optional");
It will be like this.
what's trouble with me?

p.s.I have jdoconfig.xml made by eclipse.

Compiling module com.Demo3
   Refreshing module from source
  Validating newly compiled units
 Removing units with errors
[ERROR] Errors in 'file:/D:/eclipasejava/demo3/src/com/
client/PMF.java'
   [ERROR] Line 7: No source code is available for type
javax.jdo.PersistenceManagerFactory; did you forget to inherit a
required module?
   [ERROR] Line 8: No source code is available for type
javax.jdo.JDOHelper; did you forget to inherit a required module?
[ERROR] Errors in 'file:/D:/eclipasejava/demo3/src/com/
client/neww.java'
   [ERROR] Line 30: No source code is available for type
javax.jdo.PersistenceManagerFactory; did you forget to inherit a
required module?
   [ERROR] Line 31: No source code is available for type
javax.jdo.JDOHelper; did you forget to inherit a required module?
 Removing invalidated units
[WARN] Compilation unit 'file:/D:/eclipasejava/demo3/src/
com/client/Demo3.java' is removed due to invalid reference(s):
   [WARN] file:/D:/eclipasejava/demo3/src/com/client/
neww.java
   Computing all possible rebind results for
'com.example.cal.client.CalendarApp'
  Rebinding com.example.cal.client.CalendarApp
 Checking rule 
[ERROR] Unable to find type
'com.example.cal.client.CalendarApp'
   [ERROR] Hint: Check that the type name
'com.example.cal.client.CalendarApp' is really what you meant
   [ERROR] Hint: Check that your classpath includes all
required source roots

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Running Apache Hupa sample of GWT MVP

2009-08-29 Thread smiletolead

Hi all,
  I am looking at the sample GWT project Apache HUPA which implements
MVP pattern. I am having trouble in running it, though I was able to
set up in Eclipse. I am unable to login. I set this mail client to
connect to gmail by setting IMAP details of gmail. But it did not
connect. Has anyone connected it with gmail or any other IMAP mail
server?

Thanks
Ganesh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Has anyone used gwt-validation api? or is there a better one?

2009-08-29 Thread myapplicationquestions

Has anyone used gwt-validation api? or is there a better one? I need
mostly data type validations, and some basic constraints on UI side..
Let me know what you all think

http://code.google.com/p/gwt-validation/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announcing the Google Plugin for Eclipse 1.1.0

2009-08-29 Thread Shavkat S

Thank you, Paul and Cornelius!
I've installed 1.6.0_16 and breakpoints work now.


On Aug 26, 12:37 pm, Paul Robinson  wrote:
> There's a bug in JDK 1.6.0_14 which causes breakpoints not to work.
> Check which JDK version you have. 1.6.0_16 is out and allegedly fixes
> this bug.
>
>
>
> Shavkat S wrote:
> > Hi everyone!
> > I've installed
> > eclipse-jee-galileo-win32.zip
> > gwt-windows-1.7.0.zip
>
> > and I am going through the "Getting started" tutorial for GWT (http://
> > code.google.com/webtoolkit/tutorials/1.6/debug.html)
> > Everything works just fine until I get the Step 6: Debugging a GWT
> > Application.
>
> > Execution of the GWT application doesn't stop at the breakpoints that
> > I set in Eclipse.
> > At the same time it works non-GWT applications.
>
> > I am new to GWT and Eclipse so I can miss something.
> > Do I need to do something specific for GWT application to debug it in
> > Eclipse?
>
> > Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Port to OpenBSD

2009-08-29 Thread obvvbooo obvvbooo
Thanks for reply.

Sorry, I didn't make it clear. I was asking help for porting the "host mode"
of GWT. There's a lot of native libraries in GWT. For it seems host mode is
really convinient way for GWT.

Thanks & Best Regards,


On Sat, Aug 29, 2009 at 1:10 AM, Steven Jay Cohen <
steven.jay.co...@gmail.com> wrote:

>
> I'm sorry. What are you trying to port?
>
> GWT is just a java library. Pick an IDE that runs on your system,
> identify the GWT libaries for your project, and you are done.
>
> There is nothing to port.
>
> On Aug 27, 11:29 am, obvvbooo obvvbooo 
> wrote:
> > Hi,
> >
> > Is there any chance that somebody in this group would like to port it to
> > OpenBSD, or make it run on OpenBSD? Although I'd like to do this, but I'm
> > too unfamiliar with this kinds of tasks: shell, native apis, compiles...
> >
> > If nobody would like to do this. Any suggestion on steps how to do this
> > besides reading port document and googling results?
> >
> > All help is appreciated.
> >
> > Thanks.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



gin + Javascript Overlay types

2009-08-29 Thread Jeff Chimene

Hi,

Is it expected that the following binding to a JSO type would fail?

bind(Jsot.class).in(Singleton.class)

The issue is: "Deferred binding failed for
'com.google.gwt.core.client.JavaScriptObject"

The get() method in the JSO type is

public final native Jsot get() /*-{
return this;
}-*/;

However, if I create the following binding:

bind(Jsot.class).toProvider(JsotProvider.class)

that has the following get() method

private Jsot jsot;
public Jsot get() {
  return jsot;
}

everything is copacetic.

Thomas Broyer and I were talking earlier about using Provider methods
with JSO types. He mentioned the @Provides annotation, but I cannot get
that to work either.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: "semaphores" in gwt

2009-08-29 Thread Christian Goudreau
Implement a Batch request. You can use the gwt-dispatch project. It's an
implementation of the command pattern really well done that allow you to
batch request and a lot of thing like rollback, caching, etc.

Christian

On Sat, Aug 29, 2009 at 8:36 PM, ThomasWrobel  wrote:

>
> I think your options are;
> a) Just nest one request inside the other.
> or
> b) Do both requests separately, but within both the OnResponse check a
> flag to see if the other one has finished as well. If either flags
> that both are done, then trigger the message/code you want to run
> based on this.
>
> I think b is better, but I'm sure someone else might have better more
> detailed advice.
>
> On Aug 30, 2:20 am, Jaap  wrote:
> > Hi,
> >
> > When starting my webapp I do two RPC calls. I need the data of both of
> > them in order to display something. If you work with threads with a
> > native program you just use semaphores to achieve this. What's the
> > way to do this in GWT?
> >
> > Thanks
> >
> > Jaap
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: "semaphores" in gwt

2009-08-29 Thread ThomasWrobel

I think your options are;
a) Just nest one request inside the other.
or
b) Do both requests separately, but within both the OnResponse check a
flag to see if the other one has finished as well. If either flags
that both are done, then trigger the message/code you want to run
based on this.

I think b is better, but I'm sure someone else might have better more
detailed advice.

On Aug 30, 2:20 am, Jaap  wrote:
> Hi,
>
> When starting my webapp I do two RPC calls. I need the data of both of
> them in order to display something. If you work with threads with a
> native program you just use semaphores to achieve this. What's the
> way to do this in GWT?
>
> Thanks
>
> Jaap
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: File Manipulation / Processing in GWT

2009-08-29 Thread ThomasWrobel

Not sure how you mean.
You can use GWT to read a file, then mess about with it as a string,
then post the result to a PHP file that can write the file to your
sever.

On Aug 29, 8:31 am, alvinjayreyes  wrote:
> Anyone here has done some file manipulation through GWT?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Image/Absolute panel...how to make the clickhandlers fire on the abs, ignoreing the image?

2009-08-29 Thread darkflame

Basically is it possible for an image widget to be "transparent" as
regards to click events, passing them to the panel under it?

I'm working on a panel-streaming engine;
http://www.darkflame.co.uk/panalstreamer/panelstreamer.html
Just click on the first option in the dropdown on the top right.
(Anyone thats read Reinventing comics should recognize this idea ;) )

You will notice you can click and drag it around fairly easily when
clicking on the "space", but if you click on the image panels the
mouse will get 'stuck'.
Any method to make the images on the absolute be completely ignored
click-wise?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



"semaphores" in gwt

2009-08-29 Thread Jaap

Hi,

When starting my webapp I do two RPC calls. I need the data of both of
them in order to display something. If you work with threads with a
native program you just use semaphores to achieve this. What's the
way to do this in GWT?

Thanks

Jaap
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Country combobox and lookup country by IP

2009-08-29 Thread Jaap

Hi,

In my GWT/appengine application I need users to select their country.
Two questions

1) Does GWT provide by default a combobox that lists all countries, or
is there some 3rd party library for this
2) I'd like to fill in the country already when the page loads based
on the IP address. Is there a known way on how to do this?

Thanks

Jaap

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Java server frameworks for GWT

2009-08-29 Thread Sandman

elpix1 wrote:
> I didn't have any experience with Java servers also, having worked
> mostly with Python,
> but using servlets with the GWT RPC model is very easy.
> I run my test GWT application with Tomcat and Jetty with no problems.
> I think any of these servers are OK for testing and even production.
> 
> I am not currently using any framework,  but I am researching
> an ORM to use with my project (currently I am using standard JDBC).
> An ORM can really boost productivity but there is some issues using
> ORMs with GWT, since you can't transfer through RPC entity classes
> generated by the ORMs. These classes need to be converted
> to/from DTOs before RPC or you need to user some class
> converter (gilead, dozer).
> 
> See:
> http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html
> 
> Regards,
> 
> > 

Thanks elpix1 and David for your replies.

David, I will check out Winstone. It seems like a really cool program. 
It seems like it could work for me, since I wouldn't have to disrupt my 
existing setup. Discoveries like this make me really glad that I posted 
this question to the group :)

elpix1, your comment made me aware of some of the issues I need to watch 
out for. I suspected that a framework might not really be necessary 
since Java provides most functionality inherently. With Python for 
instance, django makes communication with databases so easy that its 
hard to resist using a framework such as it. But I guess Java's JDO 
mechanism does similar things.

Thanks a lot. Take care.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Deployment on Web Hosting Sites

2009-08-29 Thread khj

Sorry for the delay in replying to your (Sumit) and Dobes' help.  A
new academic term started and I have been pretty "covered up" ...

  sc> As Dobes mentioned, you can definitely use any hosting service,
  sc> like GoDaddy, to deploy your GWT application. Also as mentioned,
  sc> GWT generates regular JavaScript and HTML files than any hosting
  sc> service provider should be able to handle.

That's kind of what I thought, but wanted to make sure there weren't
any "tricks" at least for deploying a "simple" application on GoDaddy.

  sc> If you're using GWT RPC, you will need a hosting service that
  sc> provides a Java server-side environment, supporting the Servlet
  sc> 2.5 specification.

I believe GoDaddy *does* have Tomcat, but apparently I need to dig
deeper to see if Servlet 2.5 is supported.  Also, it might only be for
their "dedicated server" accounts (which I don't have).

Guess I'll just have to do some "exploratory testing" to really
understand what they provide or don't provide.

Maybe other participants on this mailing list can provide more
GoDaddy-specific info?

  sc> Deploying a GWT Application:
  sc> http://code.google.com/webtoolkit/doc/1.6/DevGuideDeploying.html

Thanks for the link!

Again, sorry for the delay and thanks for you two taking the time to
reply to my request.

  -Kenneth

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Does GWT work in Snow Leopard?

2009-08-29 Thread pohl


I noticed that it should be possible for Google to release a quick
patch of GWT 1.6.x that should allow users to run the legacy hosted
mode under a Java 1.6 VM now.

GWT's hosted mode, on the Mac, does an explicit check to ensure that
Java 1.5 is being used.  This check only existed because under
Leopard, Java 1.5 is the only 32-bit JVM that was available.  (I
believe 1.6 was 64-bit only).

I install Snow Leopard today, and it appears that while it only has
Java 1.6, it appears to have both a 64-bit mode and a 32-bit mode.
(Open "/Applications/Utilities/Java Preferences.app", and under the
"General" tab you can see both of these modes.)

So I think it should be possible to simply remove the explicit check
that GWT does for Java 1.5.I have never built GWT from source, but
I think I may try.  Has anybody else attempted this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Does GWT work in Snow Leopard?

2009-08-29 Thread Christian Goudreau
Omg I wasn't aware of that ! Thanks a lot, I'm installing Snow Leopard
monday, so it'll save me a lot of pain and time !

Christian

On Sat, Aug 29, 2009 at 1:25 PM, Brian Dorry  wrote:

>
> Thanks Dean, that got me up and running again
>
> On Aug 29, 2:51 am, "Dean S. Jones"  wrote:
> > http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard
> >
> > this got me back up and running
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Howto implement a RequestBuilder using gin

2009-08-29 Thread Christian Goudreau
>
> However in my app, the request is sometimes a POST with a body,
> sometimes it's just a GET. I can see that the example will have to be
> extended to handle such cases.


I'm doing the same exact thing, I'm still working to get it work with only
one execute without actually having to add another parameter. So within an
action class, I'll add the stuff that I need to send to the server here and
then, when it reach de Dispatch call, if there's stuff to send, i'tll do a
POST request with extra stuff, else, it'll do a GET request. It's the way it
was originally designed, though without Gin and without command-pattern.


> The pastie code demonstrates a unique class per object; which is
> fundamentally the same as my first solution


Actually, I make three extra classes client side for each action.
Action/Reaction and the XML Unserializer for the type. Btw, it's less then
what we have to do with gwt-dispatch, but once it's done, it's clear,
concise and follow Better pratice guideline. Server side is a bit of  a
problem. Php doesn't have Generic and so, we have to select case wich class
to build... Or I could do, one file per action and my client would call the
appropriate file according to his action, so I don't have to select case it
by exploring the xml file. Here's the problem for me. It takes a lot of work
and it's suject to errors ! I'll have to find a nice and elegant proper way
to do this. Any idea is welcome by the way.


> Thank-you very much for taking the time to post this code. I will take the
> time to study it.


It's always a pleasure to share experiences. Thanks for your comments :)

Christian


>
> On 08/29/2009 11:32 AM, Christian Goudreau wrote:
> > First thing first, my implementation is for a server that don't have
> > Servlet ! So gwt-dispatch wasn't the thing for me. I use it in another
> > project, but for this one, I had to build a dispatch api from scratch.
> >
> > Si I decided to use XML for communication between PHP et my client and
> > use Request Builder to retreive that XML. So, I CAN'T use real object !
>
> By this you mean POJO's?
>
> > I have to "serialize" them with a custom class before sending them and
> > then, on server side, deserialize them. There's a couple things to know
> > when we use that type of communication.
> >
> >1. Server Side is unaware of client side classes. So we can't use
> >   clients object or server object, that's why I have to "serialize"
> >   them in xml. I could use JSON btw.
> >2. I don't really need a "response" classe like in the model, since
> >   this classe is used to be send from the server to the client.
>
> Agreed. The GWT response is all that is needed.
>
> >3. We have to do the work twice... That's shitty, but I had to make
> >   Products obejcts in PHP as well as in java.
>
> Agreed. That is a drawback, and a potential source of error.
>
> >4. The only thing that is sent to the server by the client, is an URL
> >   ! The url to a specific php script that send back an XML reponse.
> >   So it's not generic, because it's always String that your parse
> >   back in XML !
>
> However in my app, the request is sometimes a POST with a body,
> sometimes it's just a GET. I can see that the example will have to be
> extended to handle such cases.
>
> > So now, here's the complete meat in action. Hope you'll find something
> > to use for yourself.
> > http://pastie.org/598942
>
> Yes. I will stare at it some more. There's no way I could get from your
> first post to this one. Thank-you very much for your consideration.
>
> > So, in SearchProductPresenter I have the @inject is done here and I
> > simply call (dispatcher.execute) the appropriate action(GetProductsName)
> > and when I get the response(GotProductsName), I transform it from XML to
> > the type I want. In service side, when the PHP script is called, it
> > looks at the $_GET action and print out xml according to the argument.
>
> Agreed. That seems pretty standard. One thing I will add is stuff from
> Hupa
> (http://svn.apache.org/repos/asf/labs/hupa/src/main/java/org/apache/hupa/)
> that handles authentication and authorization.
>
> > It's work in progress, I have a couple things to do to generalize the
> > process on server side, and multiple type of objects actually doesn't
> > work verry well (For Batching purpose), I chose XML over json for this
> > very purpose.
>
> Yes, I can see that. In another application, I used XML (Perl <-->
> JavaScript) for just that reason. It seems you are using Eclipse? I
> found that the XML & DTD editors were quite helpful constructing complex
> structures.
>
> The DTD was also input to an XML parsing/validating editor so that users
> could construct source documents in XML. These documents were sent to
> the client to be rendered as a questionnaire. The user responses were
> added to the questionnaire and the resulting document POSTed to the
> server for transformation via XSLTPROC into HTML.
>
> I ca

Re: Howto implement a RequestBuilder using gin

2009-08-29 Thread Jeff Chimene

On 08/29/2009 11:32 AM, Christian Goudreau wrote:
> First thing first, my implementation is for a server that don't have
> Servlet ! So gwt-dispatch wasn't the thing for me. I use it in another
> project, but for this one, I had to build a dispatch api from scratch.
>  
> Si I decided to use XML for communication between PHP et my client and
> use Request Builder to retreive that XML. So, I CAN'T use real object !

By this you mean POJO's?

> I have to "serialize" them with a custom class before sending them and
> then, on server side, deserialize them. There's a couple things to know
> when we use that type of communication.
> 
>1. Server Side is unaware of client side classes. So we can't use
>   clients object or server object, that's why I have to "serialize"
>   them in xml. I could use JSON btw.
>2. I don't really need a "response" classe like in the model, since
>   this classe is used to be send from the server to the client.

Agreed. The GWT response is all that is needed.

>3. We have to do the work twice... That's shitty, but I had to make
>   Products obejcts in PHP as well as in java.

Agreed. That is a drawback, and a potential source of error.

>4. The only thing that is sent to the server by the client, is an URL
>   ! The url to a specific php script that send back an XML reponse.
>   So it's not generic, because it's always String that your parse
>   back in XML !

However in my app, the request is sometimes a POST with a body,
sometimes it's just a GET. I can see that the example will have to be
extended to handle such cases.

> So now, here's the complete meat in action. Hope you'll find something
> to use for yourself.
> http://pastie.org/598942

Yes. I will stare at it some more. There's no way I could get from your
first post to this one. Thank-you very much for your consideration.

> So, in SearchProductPresenter I have the @inject is done here and I
> simply call (dispatcher.execute) the appropriate action(GetProductsName)
> and when I get the response(GotProductsName), I transform it from XML to
> the type I want. In service side, when the PHP script is called, it
> looks at the $_GET action and print out xml according to the argument.

Agreed. That seems pretty standard. One thing I will add is stuff from
Hupa
(http://svn.apache.org/repos/asf/labs/hupa/src/main/java/org/apache/hupa/)
that handles authentication and authorization.

> It's work in progress, I have a couple things to do to generalize the
> process on server side, and multiple type of objects actually doesn't
> work verry well (For Batching purpose), I chose XML over json for this
> very purpose. 

Yes, I can see that. In another application, I used XML (Perl <-->
JavaScript) for just that reason. It seems you are using Eclipse? I
found that the XML & DTD editors were quite helpful constructing complex
structures.

The DTD was also input to an XML parsing/validating editor so that users
could construct source documents in XML. These documents were sent to
the client to be rendered as a questionnaire. The user responses were
added to the questionnaire and the resulting document POSTed to the
server for transformation via XSLTPROC into HTML.

I can do the same thing to give the server some
> informations by adding content to the request, read it on server side
> and doing the action as said in my $_GET action string.

Well, you're clearly doing exactly what I've been trying to do: take
lessons learned from gwt-dispatch and formulate into something that
works w/ RequestBuilder. I'm just not good enough at Java to understand
how to get There from Here.

Thank-you very much for taking the time to post this code. I will take
the time to study it.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: WYSIWYG version of Google Plugin for Eclipse coming soon?

2009-08-29 Thread Eric Clayberg

BTW, GWT Designer does support GWT-Ext and work on EXT GWT (GXT) is
getting close to complete (SmartGWT will be after that). See...


http://www.instantiations.com/forum/viewtopic.php?f=11&t=2204&start=30#p11874

The problem with many 3rd party widget packages (like the two you
mention) is that they don't conform to normal GWT and/or JavaBean
standards so they require a great deal of custom support within the
GUI builder in order to provide a nice editing experience.

The latest build also includes a multi-page CSS editor so that you can
edit CSS files directly using the same CSS editing UI provided
elsewhere in the tool.

On Aug 29, 12:14 pm, Robnauticus-  wrote:
> I own the Designer, the only warning I would give about purchase is
> this; only get it if you are not planning on using any 3rd party
> widget libraries that are up to date.  SmartGWT and GXT cannot be
> designed yet.  They are working on it but you should not hold a
> project up for that.
>
> Other than that limitation (I am using GXT), when designing and laying
> out individual widgets (Composites mostly), it is great and fast.  The
> CSS editor is really nice that integrates with it.  The more recent
> version is much more flexible and solid.
>
> I usually create a sandbox widget that I use for my designs right now
> then copy/paste the layout code into my real widget.  If you are using
> pure GWT this is not an issue, as long as your widgets are not
> terribly complicated especially at construction time.
>
> HTH,
> Rob
>
> On Aug 28, 11:43 am, Keith Bennett  wrote:
>
> > Hi, we're trying to decide whether to spend the money on GWT Designer
> > from Instantiations.  Does anyone in the community know (or can anyone
> > from Google tell us) whether Google will be releasing a WYSIWYG
> > designer for GWT in any upcoming releases of  Google Plugin for
> > Eclipse?  Also, is there anyone out there with experience using the
> > GWT Designer from Instantiations?  Is it worth the money?
>
> > Thanks,
>
> > Keith
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Howto implement a RequestBuilder using gin

2009-08-29 Thread Christian Goudreau
First thing first, my implementation is for a server that don't have Servlet
! So gwt-dispatch wasn't the thing for me. I use it in another project, but
for this one, I had to build a dispatch api from scratch.

Si I decided to use XML for communication between PHP et my client and use
Request Builder to retreive that XML. So, I CAN'T use real object ! I have
to "serialize" them with a custom class before sending them and then, on
server side, deserialize them. There's a couple things to know when we use
that type of communication.

   1. Server Side is unaware of client side classes. So we can't use clients
   object or server object, that's why I have to "serialize" them in xml. I
   could use JSON btw.
   2. I don't really need a "response" classe like in the model, since this
   classe is used to be send from the server to the client.
   3. We have to do the work twice... That's shitty, but I had to make
   Products obejcts in PHP as well as in java.
   4. The only thing that is sent to the server by the client, is an URL !
   The url to a specific php script that send back an XML reponse. So it's not
   generic, because it's always String that your parse back in XML !

So now, here's the complete meat in action. Hope you'll find something to
use for yourself.
http://pastie.org/598942

So, in SearchProductPresenter I have the @inject is done here and I simply
call (dispatcher.execute) the appropriate action(GetProductsName) and when I
get the response(GotProductsName), I transform it from XML to the type I
want. In service side, when the PHP script is called, it looks at the $_GET
action and print out xml according to the argument.

It's work in progress, I have a couple things to do to generalize the
process on server side, and multiple type of objects actually doesn't work
verry well (For Batching purpose), I chose XML over json for this very
purpose. I can do the same thing to give the server some informations by
adding content to the request, read it on server side and doing the action
as said in my $_GET action string.

Regards

Christian

On Sat, Aug 29, 2009 at 11:17 AM, Jeff Chimene  wrote:

>
> Hi Christian:
>
> Thanks for the meat!
>
> I hope you have time for a few questions...
>
> So ServiceCached is:
>
> Public interface ServiceCached  {
> public class GetProductsName implements Action;
> public abstract class GotProductsName implements RequestCallback;
> }
>
> Action: from gwt-dispatch? How do you get past the "extends
> serializable" part of its definition? Serializable seems to bring in
> all kinds of Java RPC baggage; which definitions cause problems at
> link time. I notice that here it's not bound to a generic type.
>
> Why is GotProductsName an abstract class?
>
> I'm assuming that the injection is something like:
>
> @Inject
> Fred (ServiceCached serviceCached) {
> this.serviceCached = serviceCached;
> }
>
> So how does that get us to GetProductsName?
>
> Looking forward to your responses!
>
>
>
> On Sat, Aug 29, 2009 at 6:02 AM, Christian
> Goudreau wrote:
> > Huh, I have done this with a command pattern style...
> >
> > bind(ServiceCached.
> >
> > class).in(Singleton.class);
> > As simple as that ! I use XML between client and server. Action class
> know
> > what is the url to use and when a response is received, I have a class
> that
> > transform my XML in object.
> >
> > Works fine, I have to rework the cache a little because for now I use a
> > static array.
> >
> > Here's some meat :
> >
> > http://pastie.org/598748
> >
> > I have to change my XMLObjectBuilder for a static one, since I don't
> really
> > need to have more than one instance of it. If I had passed more than one
> > object In my xml file, I simple have to call the same class, with a
> diffrent
> > object, to build the object.
> >
> > Hope you'll find that interresting
> >
> > Christian
> >
> > On Sat, Aug 29, 2009 at 4:36 AM, Jeff Chimene 
> wrote:
> >>
> >> It looks like that's the only way.
> >>
> >> One wrinkle that was not mentioned in the original post is that the
> >> URL argument to a RequestBuilder instantiation is RESTful with
> >> volatile path components. IOW, instance bindings will not solve this
> >> problem.
> >>
> >> I'm using binding annotations:
> >>
> >>
>  
> bind(RequestBuilder.class).annotatedWith(XXX.class).toProvider(XXXRequesterAsync.class);
> >>
> >>
> bind(RequestBuilder.class).annotatedWith(YYY.class).toProvider(YYYRequesterAsync.class);
> >>
> >> I'm using the provider binding because I want only one instance of
> >> each implementing class.
> >>
> >> The XXXRequesterClass knows what CGI method and URL to use when
> >> instantiating a RequestBuilder object. The volatile URL path
> >> components are concatenated at runtime.
> >>
> >> Each annotation class (XXX.class, YYY.class) is an interface.
> >>
> >> Discuss amongst yourselves.
> >>
> >> On Fri, Aug 28, 2009 at 6:02 PM, Jeff Chimene
> wrote:
> >> > On 08/28/2009 05:53 PM, Jeff Chimene wrote:
> >> >> Hi,
> >> >>
> >> >> I'm not eno

Re: Howto implement a RequestBuilder using gin

2009-08-29 Thread Jeff Chimene

On 08/29/2009 06:02 AM, Christian Goudreau wrote:
> Huh, I have done this with a command pattern style...
> 
> bind(ServiceCached.
> 
> *class*).in(Singleton.*class*);
> As simple as that ! I use XML between client and server. Action class
> know what is the url to use and when a response is received, I have a
> class that transform my XML in object.
>  
> Works fine, I have to rework the cache a little because for now I use a
> static array.
>  
> Here's some meat :
>  
> http://pastie.org/598748
>  
> I have to change my XMLObjectBuilder for a static one, since I don't
> really need to have more than one instance of it. If I had passed more
> than one object In my xml file, I simple have to call the same class,
> with a diffrent object, to build the object.
>  
> Hope you'll find that interresting
>  
> Christian

Thanks, but after staring at this post & the pastie code, the end result
looks like it's "six of one, half dozen of another." The pastie code
demonstrates a unique class per object; which is fundamentally the same
as my first solution. Also, there is no demonstrated linkage between the
gin binding (ServiceCached) and the pastie code; which linkage would be
interesting to see, but I'm guessing will also map one-to-one rather
than one-to-many.

I really don't see any way to get around the one-to-one mapping
requirement given that RequestBuilder is implemented as a class, not an
interface.

As always, I'm willing to be proven wrong.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: The dreaded "No source code is avail" error - ARGH!!!!

2009-08-29 Thread jack

SOLVED!!!

Isn't always something real dumb.  So my final piece of
misunderstanding on  element was keeping this from compiling.

The inherited module xml file was under gwt/.  The path component of
the  element is relative to the directory in which the xml
module file resides.  So it looked like this ...

gwt/
  Patient.java
  Patient.gwt.xml

So my  entry was likely making the compiler look
for source under gwt.gwt.Patient.  LOL

I changed it to   which I doubted was legal.  But it
worked!!!

Hope this might help someone.

On Aug 29, 1:01 pm, jack  wrote:
> I meant to say the jar i created is NOW in my project's classpath  -
> and still getting the same error
>
> On Aug 29, 12:42 pm, jack  wrote:
>
> > Ok, so now I have some idea of how the  element works.
>
> >  I've gone a little further and I have created a jar file with
> > gwt.Patient (both source and class files).  gwt.Patient.gwt.xml now
> > includes a .  I think I need this since I am using
> > a non-standard package convention that does not include client/server
> > packages and I need to tell the GWT compiler where the code for this
> > inherited module exists.
>
> > This jar file is not in my projects classpath but I am getting the
> > same old tiresome error.
>
> > Any help would be greatly appreciated.
>
> > On Aug 29, 11:20 am, jack  wrote:
>
> > > I understand what this issue is and basically how to solve it.
> > > Namely, I need to create a module xml file for code that I want to use
> > > in my client and inherit it in my client's xml module.
>
> > > In my case, I have a widget that calls a service through GWT-RPC.  The
> > > service returns a simple DTO (that I define it in an external project
> > > and bundle into a jar file and include it in my client's Eclipse
> > > project)... I call it "gwt.Patient".
>
> > > -Eclipse is good with what I've done [check]
> > > -I use  in client module xml. [check]
> > > -I create gwt.Patient.gwt.xml (I know without this GWT compile will
> > > immediately complains it can't find it) [check]
>
> > > From what I have read, this is all I need.  Alas, it is not true.
>
> > > Still I get "did you forget to inherit a module" when I do a GWT
> > > compile for every class that references gwt.Patient (the service
> > > interface, the async interface and the widget class).
>
> > > I couple of things I have done to work around this ...
>
> > > -turned on Debug level when compiling: I see GWT inheriting the
> > > module.  But I also see some indication of gwt.Patient being
> > > "excluded" in some context - what context this is isn't clear from the
> > > logging.
>
> > > -the above made me think I needed to do something with  tags
> > > in the client's xml.  I kinda understand this tag in that it includes
> > > and excludes source from GWT compile.  But I have yet to read a good
> > > explanation of what 'path' means.  At any rate when I do  > > path="???" includes="gwt.Patient"> I do get around the error
> > > but then it complains ...
>
> > > "Checking rule  > > class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
> > >             [ERROR] Unable to find type ..."
>
> > > ARGH
>
> > > Anyone understand what's going on here and what I am doing wrong?
>
> > > Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Does GWT work in Snow Leopard?

2009-08-29 Thread Brian Dorry

Thanks Dean, that got me up and running again

On Aug 29, 2:51 am, "Dean S. Jones"  wrote:
> http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard
>
> this got me back up and running
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: EclipseLink & Glassfish

2009-08-29 Thread MamboJumbo

If anyone will have a similar problem, it was the eclipse galileo
issue. I had one of the earlier releases that was not adding selected
Facets to GWT project correctly. After installing newer Galileo
release everything works fine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: java.lang.UnsupportedClassVersionError: Bad version number in .class file in eclipse-3.4 + mac osx

2009-08-29 Thread Brian Dorry

I am getting a similar problem, I was working on my project last night
with no problems. But opening it and running it today I am receiving
the following error

SEVERE: Caught exception from remote service procedure
com.google.apphosting.api.ApiProxy$UnknownException: An error occurred
for the API request urlfetch.Fetch().
at
com.google.appengine.tools.development.ApiProxyLocalImpl.makeSyncCall
(ApiProxyLocalImpl.java:108)
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:79)
at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch
(URLFetchServiceImpl.java:28)
at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.fetchResponse(URLFetchServiceStreamHandler.java:389)
at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.getInputStream(URLFetchServiceStreamHandler.java:289)
at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.getResponseCode(URLFetchServiceStreamHandler.java:131)
at com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest
(GoogleAuthTokenFactory.java:550)
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken
(GoogleAuthTokenFactory.java:477)
at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials
(GoogleAuthTokenFactory.java:336)
at com.google.gdata.client.GoogleService.setUserCredentials
(GoogleService.java:362)
at com.google.gdata.client.GoogleService.setUserCredentials
(GoogleService.java:317)
at com.google.gdata.client.GoogleService.setUserCredentials
(GoogleService.java:301)
at
com.ltech.googleapps.powerpanel.server.BaseServiceImpl.setServiceCredentials
(BaseServiceImpl.java:61)
at
com.ltech.googleapps.powerpanel.server.ProvisioningServiceImpl.getUsers
(ProvisioningServiceImpl.java:181)
at
com.ltech.googleapps.powerpanel.server.ProvisioningServiceImpl.access$0
(ProvisioningServiceImpl.java:171)
at com.ltech.googleapps.powerpanel.server.ProvisioningServiceImpl
$1.performCall(ProvisioningServiceImpl.java:61)
at com.ltech.googleapps.powerpanel.server.ProvisioningServiceImpl
$1.performCall(ProvisioningServiceImpl.java:1)
at
com.ltech.googleapps.powerpanel.server.BaseServiceImpl.performSecureCall
(BaseServiceImpl.java:72)
at
com.ltech.googleapps.powerpanel.server.ProvisioningServiceImpl.getUsers
(ProvisioningServiceImpl.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:124)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:313)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
  

Re: The dreaded "No source code is avail" error - ARGH!!!!

2009-08-29 Thread jack

I meant to say the jar i created is NOW in my project's classpath  -
and still getting the same error

On Aug 29, 12:42 pm, jack  wrote:
> Ok, so now I have some idea of how the  element works.
>
>  I've gone a little further and I have created a jar file with
> gwt.Patient (both source and class files).  gwt.Patient.gwt.xml now
> includes a .  I think I need this since I am using
> a non-standard package convention that does not include client/server
> packages and I need to tell the GWT compiler where the code for this
> inherited module exists.
>
> This jar file is not in my projects classpath but I am getting the
> same old tiresome error.
>
> Any help would be greatly appreciated.
>
> On Aug 29, 11:20 am, jack  wrote:
>
> > I understand what this issue is and basically how to solve it.
> > Namely, I need to create a module xml file for code that I want to use
> > in my client and inherit it in my client's xml module.
>
> > In my case, I have a widget that calls a service through GWT-RPC.  The
> > service returns a simple DTO (that I define it in an external project
> > and bundle into a jar file and include it in my client's Eclipse
> > project)... I call it "gwt.Patient".
>
> > -Eclipse is good with what I've done [check]
> > -I use  in client module xml. [check]
> > -I create gwt.Patient.gwt.xml (I know without this GWT compile will
> > immediately complains it can't find it) [check]
>
> > From what I have read, this is all I need.  Alas, it is not true.
>
> > Still I get "did you forget to inherit a module" when I do a GWT
> > compile for every class that references gwt.Patient (the service
> > interface, the async interface and the widget class).
>
> > I couple of things I have done to work around this ...
>
> > -turned on Debug level when compiling: I see GWT inheriting the
> > module.  But I also see some indication of gwt.Patient being
> > "excluded" in some context - what context this is isn't clear from the
> > logging.
>
> > -the above made me think I needed to do something with  tags
> > in the client's xml.  I kinda understand this tag in that it includes
> > and excludes source from GWT compile.  But I have yet to read a good
> > explanation of what 'path' means.  At any rate when I do  > path="???" includes="gwt.Patient"> I do get around the error
> > but then it complains ...
>
> > "Checking rule  > class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
> >             [ERROR] Unable to find type ..."
>
> > ARGH
>
> > Anyone understand what's going on here and what I am doing wrong?
>
> > Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: The dreaded "No source code is avail" error - ARGH!!!!

2009-08-29 Thread jack

Ok, so now I have some idea of how the  element works.

 I've gone a little further and I have created a jar file with
gwt.Patient (both source and class files).  gwt.Patient.gwt.xml now
includes a .  I think I need this since I am using
a non-standard package convention that does not include client/server
packages and I need to tell the GWT compiler where the code for this
inherited module exists.

This jar file is not in my projects classpath but I am getting the
same old tiresome error.

Any help would be greatly appreciated.

On Aug 29, 11:20 am, jack  wrote:
> I understand what this issue is and basically how to solve it.
> Namely, I need to create a module xml file for code that I want to use
> in my client and inherit it in my client's xml module.
>
> In my case, I have a widget that calls a service through GWT-RPC.  The
> service returns a simple DTO (that I define it in an external project
> and bundle into a jar file and include it in my client's Eclipse
> project)... I call it "gwt.Patient".
>
> -Eclipse is good with what I've done [check]
> -I use  in client module xml. [check]
> -I create gwt.Patient.gwt.xml (I know without this GWT compile will
> immediately complains it can't find it) [check]
>
> From what I have read, this is all I need.  Alas, it is not true.
>
> Still I get "did you forget to inherit a module" when I do a GWT
> compile for every class that references gwt.Patient (the service
> interface, the async interface and the widget class).
>
> I couple of things I have done to work around this ...
>
> -turned on Debug level when compiling: I see GWT inheriting the
> module.  But I also see some indication of gwt.Patient being
> "excluded" in some context - what context this is isn't clear from the
> logging.
>
> -the above made me think I needed to do something with  tags
> in the client's xml.  I kinda understand this tag in that it includes
> and excludes source from GWT compile.  But I have yet to read a good
> explanation of what 'path' means.  At any rate when I do  path="???" includes="gwt.Patient"> I do get around the error
> but then it complains ...
>
> "Checking rule  class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
>             [ERROR] Unable to find type ..."
>
> ARGH
>
> Anyone understand what's going on here and what I am doing wrong?
>
> Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: WYSIWYG version of Google Plugin for Eclipse coming soon?

2009-08-29 Thread Robnauticus-

Hi Keith,

I own the Designer, the only warning I would give about purchase is
this; only get it if you are not planning on using any 3rd party
widget libraries that are up to date.  SmartGWT and GXT cannot be
designed yet.  They are working on it but you should not hold a
project up for that.

Other than that limitation (I am using GXT), when designing and laying
out individual widgets (Composites mostly), it is great and fast.  The
CSS editor is really nice that integrates with it.  The more recent
version is much more flexible and solid.

I usually create a sandbox widget that I use for my designs right now
then copy/paste the layout code into my real widget.  If you are using
pure GWT this is not an issue, as long as your widgets are not
terribly complicated especially at construction time.

HTH,
Rob

On Aug 28, 11:43 am, Keith Bennett  wrote:
> Hi, we're trying to decide whether to spend the money on GWT Designer
> from Instantiations.  Does anyone in the community know (or can anyone
> from Google tell us) whether Google will be releasing a WYSIWYG
> designer for GWT in any upcoming releases of  Google Plugin for
> Eclipse?  Also, is there anyone out there with experience using the
> GWT Designer from Instantiations?  Is it worth the money?
>
> Thanks,
>
> Keith
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



how to to run gwt project in Jboss

2009-08-29 Thread pdvprasad

hi

  we developed a project  on
  Ejb3.0
 TOPLink (JPA)
 GWT1.5
 gwt-ext.2.5
MYSQL (Database)

 i am successfully running project in Glassfish (server) ,  but i want
to run the developed application with jboss 4.2.0 severi  am able
deploy the ejb3 beans and entities, getting problem while intiating
the beans through rpc , iam getting nullPointer Exception .


Thanks in Advance
PDVPRASAD

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



File Manipulation / Processing in GWT

2009-08-29 Thread alvinjayreyes

Anyone here has done some file manipulation through GWT?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Java server frameworks for GWT

2009-08-29 Thread elpix1

I didn't have any experience with Java servers also, having worked
mostly with Python,
but using servlets with the GWT RPC model is very easy.
I run my test GWT application with Tomcat and Jetty with no problems.
I think any of these servers are OK for testing and even production.

I am not currently using any framework,  but I am researching
an ORM to use with my project (currently I am using standard JDBC).
An ORM can really boost productivity but there is some issues using
ORMs with GWT, since you can't transfer through RPC entity classes
generated by the ORMs. These classes need to be converted
to/from DTOs before RPC or you need to user some class
converter (gilead, dozer).

See:
http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html

Regards,

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



TreeItem padding does not work

2009-08-29 Thread Javi

Hi all,

I'm trying to change the padding in the TreeItems I have in a tree. By
default, the TreeItem html code generated looks like this:



SOME HTML CODE OF A WIDGET



As you can see there is a 23px left padding for the indentation of the
elements, that is the one I want to modify. I have used different
approaches, firstly, I tried to create a style and add it,with the
code:

treeItem.addStyleName("divwithoutpadding");

. divwithoutpadding{
padding-bottom: 3px;
padding-left: 3px;
padding-right: 3px;
padding-top: 3px;
}

and the resulting code is:



cadena10



but this does not work, then I tried :

treeItem.getElement().getStyle().setProperty("padding", "3");

and

treeItem.getElement().getStyle().setProperty("paddingLeft", "3");

but though I can see the html code of the treeItem component in debug
mode with the padding set as I want, when I see again in the browser,
I get the same 23px left padding, I have been following the tree until
I add it to the RootPanel, and the padding continue always with the
one I set, so, seems that in the process of the final code generation
the value is changed, am I missing something or there is a bug?

thanks in advance

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Hosted mode hanging 4 out of 10times

2009-08-29 Thread gaill...@audemat.com

Hi all,

Even if this thread isn't so helpfull, I can said that I've the same
problem as rahul.
In hosted dev mode sometime I get "Connecting to site 127.0.0.1",
specialy on low end dev machine.
The same project, on the same OS and exactly the same dev environment,
works on Core2duo
but failed sometime on Atom 330. I know Atom 330 is somewhat slow and
not really adapted to code
with windows+eclipse+GWT+jetty but very usefull to test
applications on low end final env.
I think some parts on GWT hosted mode doesn't wait enough for others
parts to be ready.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



The dreaded "No source code is avail" error - ARGH!!!!

2009-08-29 Thread jack

I understand what this issue is and basically how to solve it.
Namely, I need to create a module xml file for code that I want to use
in my client and inherit it in my client's xml module.

In my case, I have a widget that calls a service through GWT-RPC.  The
service returns a simple DTO (that I define it in an external project
and bundle into a jar file and include it in my client's Eclipse
project)... I call it "gwt.Patient".

-Eclipse is good with what I've done [check]
-I use  in client module xml. [check]
-I create gwt.Patient.gwt.xml (I know without this GWT compile will
immediately complains it can't find it) [check]

>From what I have read, this is all I need.  Alas, it is not true.

Still I get "did you forget to inherit a module" when I do a GWT
compile for every class that references gwt.Patient (the service
interface, the async interface and the widget class).

I couple of things I have done to work around this ...

-turned on Debug level when compiling: I see GWT inheriting the
module.  But I also see some indication of gwt.Patient being
"excluded" in some context - what context this is isn't clear from the
logging.

-the above made me think I needed to do something with  tags
in the client's xml.  I kinda understand this tag in that it includes
and excludes source from GWT compile.  But I have yet to read a good
explanation of what 'path' means.  At any rate when I do  I do get around the error
but then it complains ...

"Checking rule 
[ERROR] Unable to find type ..."

ARGH

Anyone understand what's going on here and what I am doing wrong?

Thanks in advance.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Howto implement a RequestBuilder using gin

2009-08-29 Thread Jeff Chimene

Hi Christian:

Thanks for the meat!

I hope you have time for a few questions...

So ServiceCached is:

Public interface ServiceCached  {
public class GetProductsName implements Action;
public abstract class GotProductsName implements RequestCallback;
}

Action: from gwt-dispatch? How do you get past the "extends
serializable" part of its definition? Serializable seems to bring in
all kinds of Java RPC baggage; which definitions cause problems at
link time. I notice that here it's not bound to a generic type.

Why is GotProductsName an abstract class?

I'm assuming that the injection is something like:

@Inject
Fred (ServiceCached serviceCached) {
this.serviceCached = serviceCached;
}

So how does that get us to GetProductsName?

Looking forward to your responses!



On Sat, Aug 29, 2009 at 6:02 AM, Christian
Goudreau wrote:
> Huh, I have done this with a command pattern style...
>
> bind(ServiceCached.
>
> class).in(Singleton.class);
> As simple as that ! I use XML between client and server. Action class know
> what is the url to use and when a response is received, I have a class that
> transform my XML in object.
>
> Works fine, I have to rework the cache a little because for now I use a
> static array.
>
> Here's some meat :
>
> http://pastie.org/598748
>
> I have to change my XMLObjectBuilder for a static one, since I don't really
> need to have more than one instance of it. If I had passed more than one
> object In my xml file, I simple have to call the same class, with a diffrent
> object, to build the object.
>
> Hope you'll find that interresting
>
> Christian
>
> On Sat, Aug 29, 2009 at 4:36 AM, Jeff Chimene  wrote:
>>
>> It looks like that's the only way.
>>
>> One wrinkle that was not mentioned in the original post is that the
>> URL argument to a RequestBuilder instantiation is RESTful with
>> volatile path components. IOW, instance bindings will not solve this
>> problem.
>>
>> I'm using binding annotations:
>>
>>  bind(RequestBuilder.class).annotatedWith(XXX.class).toProvider(XXXRequesterAsync.class);
>>
>> bind(RequestBuilder.class).annotatedWith(YYY.class).toProvider(YYYRequesterAsync.class);
>>
>> I'm using the provider binding because I want only one instance of
>> each implementing class.
>>
>> The XXXRequesterClass knows what CGI method and URL to use when
>> instantiating a RequestBuilder object. The volatile URL path
>> components are concatenated at runtime.
>>
>> Each annotation class (XXX.class, YYY.class) is an interface.
>>
>> Discuss amongst yourselves.
>>
>> On Fri, Aug 28, 2009 at 6:02 PM, Jeff Chimene wrote:
>> > On 08/28/2009 05:53 PM, Jeff Chimene wrote:
>> >> Hi,
>> >>
>> >> I'm not enough of a Java pundit to understand how to implement a
>> >> RequestBuilder using Gin.
>> >>
>> >> The issue is that one cannot instantiate a RequestBuilder class w/o a
>> >> HTTP method and a URL.
>> >>
>> >> How does one pass these parameters in such a situation?
>> >
>> > I thought about using BindingAnnotations. I'm hoping there is Another
>> > Way.
>> >
>> >>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Java server frameworks for GWT

2009-08-29 Thread David Given

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sandman wrote:
[...]
> I've been thinking about using Apache Tomcat as my test server. Are any 
> of the other web servers better suited for GWT-RPC?

I use Winstone on my server --- it's very small and lightweight but runs
GWT servlets perfectly. As my server box is actually an ARM based device
with interpreted Java only (no JIT!) this is kinda necessary. Like most
servlet engines it can work either as a standalone webserver or as an
extension for an existing server. I use it in conjunction with thttpd,
so that thttpd serves all the static files and Winstone is invoked for
the RPC entrypoints only.

- --
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ "People who think they know everything really annoy those of us who
│ know we don't." --- Bjarne Stroustrup
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKmTbnf9E0noFvlzgRApPSAKCQJrRtuMkesS21NU952QuENyvbGACgiXW7
AOo4B8bj/U+Nv2lKR3wHpig=
=LFhQ
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Howto implement a RequestBuilder using gin

2009-08-29 Thread Christian Goudreau
Huh, I have done this with a command pattern style...

bind(ServiceCached.*class*).in(Singleton.*class*);
As simple as that ! I use XML between client and server. Action class know
what is the url to use and when a response is received, I have a class that
transform my XML in object.

Works fine, I have to rework the cache a little because for now I use a
static array.

Here's some meat :

http://pastie.org/598748

I have to change my XMLObjectBuilder for a static one, since I don't really
need to have more than one instance of it. If I had passed more than one
object In my xml file, I simple have to call the same class, with a diffrent
object, to build the object.

Hope you'll find that interresting

Christian


On Sat, Aug 29, 2009 at 4:36 AM, Jeff Chimene  wrote:

>
> It looks like that's the only way.
>
> One wrinkle that was not mentioned in the original post is that the
> URL argument to a RequestBuilder instantiation is RESTful with
> volatile path components. IOW, instance bindings will not solve this
> problem.
>
> I'm using binding annotations:
>
>  
> bind(RequestBuilder.class).annotatedWith(XXX.class).toProvider(XXXRequesterAsync.class);
>
> bind(RequestBuilder.class).annotatedWith(YYY.class).toProvider(YYYRequesterAsync.class);
>
> I'm using the provider binding because I want only one instance of
> each implementing class.
>
> The XXXRequesterClass knows what CGI method and URL to use when
> instantiating a RequestBuilder object. The volatile URL path
> components are concatenated at runtime.
>
> Each annotation class (XXX.class, YYY.class) is an interface.
>
> Discuss amongst yourselves.
>
> On Fri, Aug 28, 2009 at 6:02 PM, Jeff Chimene wrote:
> > On 08/28/2009 05:53 PM, Jeff Chimene wrote:
> >> Hi,
> >>
> >> I'm not enough of a Java pundit to understand how to implement a
> >> RequestBuilder using Gin.
> >>
> >> The issue is that one cannot instantiate a RequestBuilder class w/o a
> >> HTTP method and a URL.
> >>
> >> How does one pass these parameters in such a situation?
> >
> > I thought about using BindingAnnotations. I'm hoping there is Another
> Way.
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Howto implement a RequestBuilder using gin

2009-08-29 Thread Jeff Chimene

It looks like that's the only way.

One wrinkle that was not mentioned in the original post is that the
URL argument to a RequestBuilder instantiation is RESTful with
volatile path components. IOW, instance bindings will not solve this
problem.

I'm using binding annotations:

bind(RequestBuilder.class).annotatedWith(XXX.class).toProvider(XXXRequesterAsync.class);
bind(RequestBuilder.class).annotatedWith(YYY.class).toProvider(YYYRequesterAsync.class);

I'm using the provider binding because I want only one instance of
each implementing class.

The XXXRequesterClass knows what CGI method and URL to use when
instantiating a RequestBuilder object. The volatile URL path
components are concatenated at runtime.

Each annotation class (XXX.class, YYY.class) is an interface.

Discuss amongst yourselves.

On Fri, Aug 28, 2009 at 6:02 PM, Jeff Chimene wrote:
> On 08/28/2009 05:53 PM, Jeff Chimene wrote:
>> Hi,
>>
>> I'm not enough of a Java pundit to understand how to implement a
>> RequestBuilder using Gin.
>>
>> The issue is that one cannot instantiate a RequestBuilder class w/o a
>> HTTP method and a URL.
>>
>> How does one pass these parameters in such a situation?
>
> I thought about using BindingAnnotations. I'm hoping there is Another Way.
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---