Re: Does GWT work in Snow Leopard?

2009-08-29 Thread Dean S. Jones

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 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 Chimenejchim...@gmail.com 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 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 jchim...@gmail.com 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 Chimenejchim...@gmail.com 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 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
Goudreaugoudreau.christ...@gmail.com 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 jchim...@gmail.com 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 Chimenejchim...@gmail.com 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
-~--~~~~--~~--~--~---



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 inherits name='gwt.Patient' / 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 source/ 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 source
path=??? includes=gwt.Patient/source I do get around the error
but then it complains ...

Checking rule generate-with
class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
[ERROR] Unable to find type ...my client widget class

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



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:

div style=padding: 3px 3px 3px 23px; margin-left: 0pt;
div id=gwt-uid-2 class=gwt-TreeItem style=display: inline;
role=treeitem
SOME HTML CODE OF A WIDGET
/div
/div

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:

div class=divwithoutpadding style=padding: 3px 3px 3px 23px;
margin-left: 0pt;
div id=gwt-uid-2 class=gwt-TreeItem style=display: inline;
role=treeitem
a class=gwt-Anchor tabindex=0 href=prueba.html
name=nombre1cadena10/a
/div
/div

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



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



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



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 forthw...@gmail.com 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: The dreaded No source code is avail error - ARGH!!!!

2009-08-29 Thread jack

Ok, so now I have some idea of how the source/ 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 source path=gwt/.  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 jack.terran...@gmail.com 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 inherits name='gwt.Patient' / 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 source/ 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 source
 path=??? includes=gwt.Patient/source I do get around the error
 but then it complains ...

 Checking rule generate-with
 class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
             [ERROR] Unable to find type ...my client widget class

 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

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 jack.terran...@gmail.com wrote:
 Ok, so now I have some idea of how the source/ 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 source path=gwt/.  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 jack.terran...@gmail.com 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 inherits name='gwt.Patient' / 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 source/ 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 source
  path=??? includes=gwt.Patient/source I do get around the error
  but then it complains ...

  Checking rule generate-with
  class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
              [ERROR] Unable to find type ...my client widget class

  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: 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: 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: 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 deansjo...@gmail.com 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: 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 source/ element was keeping this from compiling.

The inherited module xml file was under gwt/.  The path component of
the source/ 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 source path=gwt / entry was likely making the compiler look
for source under gwt.gwt.Patient.  LOL

I changed it to source path=/  which I doubted was legal.  But it
worked!!!

Hope this might help someone.

On Aug 29, 1:01 pm, jack jack.terran...@gmail.com 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 jack.terran...@gmail.com wrote:

  Ok, so now I have some idea of how the source/ 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 source path=gwt/.  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 jack.terran...@gmail.com 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 inherits name='gwt.Patient' / 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 source/ 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 source
   path=??? includes=gwt.Patient/source I do get around the error
   but then it complains ...

   Checking rule generate-with
   class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
               [ERROR] Unable to find type ...my client widget class

   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

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: 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 jchim...@gmail.com 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
 Goudreaugoudreau.christ...@gmail.com 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 jchim...@gmail.com
 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 Chimenejchim...@gmail.com
 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 

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=11t=2204start=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- robnauti...@gmail.com 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 forthw...@gmail.com 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 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: 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 can do the same thing to give the server some
  informations by adding content to the request, read it on server side
  and 

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 brian.do...@gmail.com wrote:


 Thanks Dean, that got me up and running again

 On Aug 29, 2:51 am, Dean S. Jones deansjo...@gmail.com 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: 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: 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: 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
-~--~~~~--~~--~--~---



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



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



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



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 jay_malu...@yahoo.com 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
-~--~~~~--~~--~--~---



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 jaap.hait...@gmail.com 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 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 darkfl...@gmail.com 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 jaap.hait...@gmail.com 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
-~--~~~~--~~--~--~---



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: 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 obvvb...@googlemail.com
 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
-~--~~~~--~~--~--~---



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 ukcue...@gmail.com 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
-~--~~~~--~~--~--~---



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



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



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 generate-with
class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
[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
-~--~~~~--~~--~--~---



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



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



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



[gwt-contrib] Re: Prettier GWT version names for upcoming 2.0 releases

2009-08-29 Thread Cameron Braid
JBoss use a naming scheme that sorts alphabetically, maybe it is worth
considering

http://www.jboss.org/jbossas/downloads/

Applied to the names in the original email

1) gwt-2.0.0-m1.zip
2) gwt-2.0.0-m2.zip
3) gwt-2.0.0-rc1.zip
4) gwt-2.0.0.zip

They could be :

1) gwt-2.0.0-Beta1.zip (or could just use B1)
2) gwt-2.0.0-Beta2.zip
3) gwt-2.0.0-CR1.zip  (candidate for release)
4) gwt-2.0.0-GA.zip

Cam




2009/8/28 Andrew Bowers abow...@google.com

 The current problem we are trying to solve is that it is hard to know which
 build is a major release for those who aren't intimate.
 For 1.6, the golden release was 1.6.4, which is thoroughly confusing to a
 general user who doesn't follow the development cycle. If you only care
 about the final release, you expect that you would migrate to 1.6.0 as the
 final release and 1.6.1 would be an update to that.

 If someone is commenting
 on a bug in a pre-release build, something labeled 1.6.0-RC1, then they will 
 know what build they are using. If they don't, then they probably shouldn't 
 be using it.

 I strongly believe this use case trumps the other issues.

 On Thu, Aug 13, 2009 at 12:01 PM, Scott Blum sco...@google.com wrote:

 On Thu, Aug 13, 2009 at 2:41 PM, Kelly Norton knor...@google.com wrote:

 fwiw, I've never found myself sorting GWT distros but I do find myself
 wanting to uniquely identify them all the time. Why do you think people will
 be so eager to ignore part of the label? I would actually be surprised if
 any form of naming fixes the few incidences of the conversation you mention.
 I tend to think those are because people really do think they are using the
 release ... only to realize later they never updated their project.


 Heh, sorry, that was probably not the best way of making this point: I
 think more obvious is usually better, because you don't have to think about
 it.  This means less wasted time, and less chance of confusion.

 Don't get me wrong, I'm not saying the current system is perfect or that
 we shouldn't change it.  I'm sure there are better things than we're doing
 right now, which might help with the problem of identifying a release vs. a
 milestone or rc.  But I do think a system where the numeric portion of the
 version is non-unique invites confusion.

 What if we were more consistent with the parentheticals, like in the GWT 
 release
 noteshttp://google-web-toolkit.googlecode.com/svn/releases/1.7/distro-source/core/src/release_notes.html
 ?



 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6023 committed - File.createTempFile() sometimes hangs on the build system while trying...

2009-08-29 Thread codesite-noreply

Revision: 6023
Author: jlaba...@google.com
Date: Thu Aug 27 11:09:46 2009
Log: File.createTempFile() sometimes hangs on the build system while trying  
to get an exclusive lock on a temp file.  This patch uses a custom method  
to create a temp file.

Patch by: jlabanca
Review by: fabbott


http://code.google.com/p/google-web-toolkit/source/detail?r=6023

Modified:
   
/trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/LatestTimeJar.java

===
---  
/trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/LatestTimeJar.java   
 
Tue Jun 16 08:28:58 2009
+++  
/trunk/build-tools/ant-gwt/src/com/google/gwt/ant/taskdefs/LatestTimeJar.java   
 
Thu Aug 27 11:09:46 2009
@@ -1,12 +1,12 @@
  /*
   * Copyright 2008 Google Inc.
- *
+ *
   * Licensed under the Apache License, Version 2.0 (the License); you may  
not
   * use this file except in compliance with the License. You may obtain a  
copy of
   * the License at
- *
+ *
   * http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT
   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -28,12 +28,13 @@
  import java.io.InputStream;
  import java.io.OutputStream;
  import java.util.Map;
+import java.util.Random;
  import java.util.TreeMap;

  /**
   * A variation on Jar which handles duplicate entries by only archiving  
the most
   * recent of any given path. This is done by keeping a map of paths (as  
shown in
- * the jar file) against {...@link #EntryInfo} objects identifying the input  
source
+ * the jar file) against {...@link EntryInfo} objects identifying the input  
source
   * and its timestamp. Most of the actual archiving is deferred until  
archive
   * finalization, when we've decided on the actual de-duplicated set of  
entries.
   */
@@ -54,7 +55,7 @@

  /**
   * Called to actually add the entry to a given zip stream.
- *
+ *
   * @param out
   * @param path
   * @throws IOException
@@ -101,7 +102,7 @@
  public FileEntryInfo(InputStream in, long lastModified, File  
fromArchive,
  int mode) throws IOException {
super(lastModified, mode);
-  tmpFile = File.createTempFile(gwtjar, );
+  tmpFile = createTempFile(gwtjar, );
tmpFile.deleteOnExit();
OutputStream fos = new FileOutputStream(tmpFile);
int readLen = in.read(buffer);
@@ -124,6 +125,54 @@
}
  }
}
+
+  /**
+   * Used to generate temporary file names.
+   */
+  private static long counter = -1;
+
+  /**
+   * Creates a temporary file.
+   *
+   * @param prefix the file prefix
+   * @param suffix the file suffix
+   * @return the new file
+   * @throws IOException if the file cannot be created
+   */
+  private static File createTempFile(String prefix, String suffix)
+  throws IOException {
+if (suffix == null) {
+  suffix = .tmp;
+}
+
+// Get the temp file directory.
+File tmpDir = new File(System.getProperty(java.io.tmpdir));
+tmpDir.mkdirs();
+
+// Generate a random name.
+if (counter == -1) {
+  counter = new Random().nextLong();
+}
+boolean created = false;
+File tmpFile;
+do {
+  counter++;
+  tmpFile = new File(tmpDir, prefix + Long.toString(counter) + suffix);
+  if (!tmpFile.exists()) {
+created = tmpFile.createNewFile();
+if (!created) {
+  // If we fail the create the temp file, it must have been  
created by
+  // another thread between lines 161 and 162.  We re-seed to avoid
+  // further race conditions.
+  counter = new Random().nextLong();
+}
+  }
+} while (!created);
+
+// Create the file.
+tmpFile.createNewFile();
+return tmpFile;
+  }

private byte buffer[] = new byte[16 * 1024];
private MapString, EntryInfo paths = new TreeMapString, EntryInfo();
@@ -188,10 +237,10 @@
/**
 * Checks whether an entry should be replaced, by touch dates and  
duplicates
 * setting.
-   *
+   *
 * @param path the path of an entry being considered
 * @param touchTime the lastModified of the candiate replacement
-   * @return
+   * @return true if the file should be replaced
 */
private boolean shouldReplace(String path, long touchTime) {
  EntryInfo oldInfo = paths.get(path);

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6030 committed - Adds more detailed assertions to RunAsyncMetricsIntegrationTest....

2009-08-29 Thread codesite-noreply

Revision: 6030
Author: sp...@google.com
Date: Fri Aug 28 14:08:33 2009
Log: Adds more detailed assertions to RunAsyncMetricsIntegrationTest.

Review by: jlabanca (desk check)

http://code.google.com/p/google-web-toolkit/source/detail?r=6030

Modified:
   
/trunk/user/test/com/google/gwt/dev/jjs/test/RunAsyncMetricsIntegrationTest.java

===
---  
/trunk/user/test/com/google/gwt/dev/jjs/test/RunAsyncMetricsIntegrationTest.java
 
Thu Aug 20 11:38:19 2009
+++  
/trunk/user/test/com/google/gwt/dev/jjs/test/RunAsyncMetricsIntegrationTest.java
 
Fri Aug 28 14:08:33 2009
@@ -164,7 +164,7 @@
private void checkMetricsWithCodeSplitting() {
  int lastMillis;
  {
-  LightweightMetricsEvent event = lwmObserver.events.remove();
+  LightweightMetricsEvent event = nextEvent(leftoversDownload-begin);
assertEquals(getJunitModuleName(), event.getModuleName());
assertEquals(leftoversDownload, event.getEvtGroup());
assertEquals(begin, event.getType());
@@ -173,7 +173,7 @@
lastMillis = event.getMillis();
  }
  {
-  LightweightMetricsEvent event = lwmObserver.events.remove();
+  LightweightMetricsEvent event = nextEvent(leftoversDownload-end);
assertEquals(getJunitModuleName(), event.getModuleName());
assertEquals(leftoversDownload, event.getEvtGroup());
assertEquals(end, event.getType());
@@ -182,7 +182,7 @@
lastMillis = event.getMillis();
  }
  {
-  LightweightMetricsEvent event = lwmObserver.events.remove();
+  LightweightMetricsEvent event = nextEvent(download1-begin);
assertEquals(getJunitModuleName(), event.getModuleName());
assertEquals(download1, event.getEvtGroup());
assertEquals(begin, event.getType());
@@ -191,7 +191,7 @@
lastMillis = event.getMillis();
  }
  {
-  LightweightMetricsEvent event = lwmObserver.events.remove();
+  LightweightMetricsEvent event = nextEvent(download1-end);
assertEquals(getJunitModuleName(), event.getModuleName());
assertEquals(download1, event.getEvtGroup());
assertEquals(end, event.getType());
@@ -200,7 +200,7 @@
lastMillis = event.getMillis();
  }
  {
-  LightweightMetricsEvent event = lwmObserver.events.remove();
+  LightweightMetricsEvent event = nextEvent(runCallbacks1-begin);
assertEquals(getJunitModuleName(), event.getModuleName());
assertEquals(runCallbacks1, event.getEvtGroup());
assertEquals(begin, event.getType());
@@ -208,7 +208,7 @@
lastMillis = event.getMillis();
  }
  {
-  LightweightMetricsEvent event = lwmObserver.events.remove();
+  LightweightMetricsEvent event = nextEvent(runCallbacks1-end);
assertEquals(getJunitModuleName(), event.getModuleName());
assertEquals(runCallbacks1, event.getEvtGroup());
assertEquals(end, event.getType());
@@ -216,6 +216,15 @@
lastMillis = event.getMillis();
  }
}
+
+  /**
+   * Remove the next event from {...@link #lwmObserver}. If there are no more
+   * events, fail with the specified message.
+   */
+  private LightweightMetricsEvent nextEvent(String description) {
+assertTrue(Missing event:  +  
description, !lwmObserver.events.isEmpty());
+return lwmObserver.events.remove();
+  }

/**
 * Check the LWM assuming no code splitting happened.
@@ -224,7 +233,7 @@
  int lastMillis;

  {
-  LightweightMetricsEvent event = lwmObserver.events.remove();
+  LightweightMetricsEvent event = nextEvent(noDownloadNeeded-begin);
assertEquals(getJunitModuleName(), event.getModuleName());
assertEquals(noDownloadNeeded, event.getEvtGroup());
assertEquals(begin, event.getType());
@@ -232,7 +241,7 @@
lastMillis = event.getMillis();
  }
  {
-  LightweightMetricsEvent event = lwmObserver.events.remove();
+  LightweightMetricsEvent event = nextEvent(noDownloadNeeded-end);
assertEquals(getJunitModuleName(), event.getModuleName());
assertEquals(noDownloadNeeded, event.getEvtGroup());
assertEquals(end, event.getType());

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6032 committed - Create a temporary change branch for OOPHM plugin work.

2009-08-29 Thread codesite-noreply

Revision: 6032
Author: j...@google.com
Date: Sat Aug 29 12:11:51 2009
Log: Create a temporary change branch for OOPHM plugin work.

http://code.google.com/p/google-web-toolkit/source/detail?r=6032

Added:
  /changes/jat/plugins


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Hello UiBinder

2009-08-29 Thread Xijiang Miao
Yes. That's what I did. Thanks!

I have to enable the animation to use two nested DisclosurePanel. Otherwise,
the parent disclosure panel does not resize properly when the child panel is
opening/closing.


On Sun, Aug 23, 2009 at 1:57 PM, Amir Kashani amirkash...@gmail.com wrote:

 Xijiang,
 Take a look at com.google.gwt.uibinder.sample.client.WidgetBasedUi 
 WidgetBasedUi.ui.xml (part of gwt-user.jar). That test template uses
 DisclosurePanel along with the other supported custom panel types.

 - Amir


 On Fri, Aug 21, 2009 at 7:13 PM, puttyshell mia...@gmail.com wrote:


 Ray,

 You mentioned that DisclosurePanel is supported by Uibinder. Do you
 know how to config the *.ui.xml?

 UiBinder greatly bridges the gap between traditional html design and
 the java coding. I am already very happy just using HTMLPanel + normal
 html + ui:field + styleName. :)

 ~Xijiang


 On Aug 6, 9:39 am, Andrés Testi andres.a.te...@gmail.com wrote:
  UiBinder is awesome!
 
  An extra degree of decoupling, could be done by adding the next stuff
  to the UiBinder interface:
 
  public interface UiBinderU, O {
 
 U createAndBindUi(O owner);
 
public static interface PairU, O{
  R getRoot();
  O getOwner();
}
 
PairU, O createAndBindUi();
 
  }
 
  where createAndBind() without parameters could instantiate an owner
  class, enabling injection by constructor for UiField for more robust
  code.
 
  - Andrés
 
  On 5 ago, 10:32, Ray Ryan rj...@google.com wrote: The GWT standard
 widgets already have custom parsers built for them.
   DockPanel, DisclosurePanel, Menubar, etc. all work just fine despite
 their
   wonky api needs. The bug here is that you can't indulge in similar
 glue for
   your custom widgets yet. No Google team has found that to be a problem
 with
   their custom widgets, which is I why I felt like I could get away with
   ducking that issue a bit longer.
 
   On Wed, Aug 5, 2009 at 1:31 AM, brett.wooldridge 
 brett.wooldri...@gmail.com
 
wrote:
 
Just a question, and a comment.  First the comment.  Thank you for
getting this up into the repo, in whatever state.  Second, it was
commented that Adwords and a few other projects have vetted this
 over
the past year.  How does this jibe with the deficiencies outlined?
For example, not being able to markup for DockPanel, etc?  Did those
projects just have to go off-roading and create custom parsers
 based
on an API they knew they would eventually have to fix/rewrite?
 
-Brett
 
On Aug 5, 5:49 am, Ray Ryan rj...@google.com wrote:
 I share your concern, Amir, but I'm even more afraid of a)
 providing an
ill
 considered API for custom parsers and b) delaying 2.0. I'm pretty
confident
 we can limp along without them for a dot release.
 
 On Tue, Aug 4, 2009 at 1:36 PM, Amir Kashani 
 amirkash...@gmail.com
wrote:
  As Ray mentioned, one has a pretty simple workaround and two is
 pretty
  uncommon. I'm a little more concerned about the third case. A
 few
examples
  of issue with internally used widgets I've created:
 
  - A StackPanel replacement that adds animation support. The only
workaround
  I can think of is having the add() method take a StackPanelItem
 or
similar
  that contains the header text or widget.
  - TitledPanel, which supports a header, content and footer area.
 In
this
  case, the widget could expect several calls to add, and
 determine the
  context based on number of previous calls. This would get a bit
 hairy
if
  headers and footers were optional, though.
 
  These scenarios are a bit inconvenient without a custom parser,
 but far
  from a deal breaker. The concern is that people develop a set of
hackish
  workarounds that aren't easily fixed when custom parsers are
 supported.
 
  - Amir
 
  On Tue, Aug 4, 2009 at 12:47 PM, Joel Webber j...@google.com
 wrote:
 
  There are three cases where custom parsers come up:1. Widgets
 without
a
  default constructor.
  2. Non-widget UIObjects that need an XML representation.
  3. Panels that need more than the default add() method to deal
properly
  with child widgets.
 
  The former is usually pretty easy to work around, and it seldom
 comes
up
  much in practice (I think it came up for MenuBar, because it
 wants its
  'direction' as an invariant -- that wasn't even a good design
 anyway).
 
  The second case doesn't come up all that often, but it's
 important for
  menus and trees.
 
  The third case is the most problematic. Take DockPanel, for
 example:
It's
  really not going to be able to do anything useful if you just
 call
add() on
  it, because it doesn't know where to put the child. These sorts
 of
panels
  need extra attributes or elements to specify where to put
 children.
 
  On Tue, Aug 4, 2009 at 3:42 PM, Amir Kashani 
 amirkash...@gmail.com
 

[gwt-contrib] [google-web-toolkit] r6034 committed - Created wiki page through web user interface.

2009-08-29 Thread codesite-noreply

Revision: 6034
Author: tamplinjohn
Date: Sat Aug 29 20:14:35 2009
Log: Created wiki page through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=6034

Added:
  /wiki/TroubleshootingOOPHM.wiki

===
--- /dev/null
+++ /wiki/TroubleshootingOOPHM.wiki Sat Aug 29 20:14:35 2009
@@ -0,0 +1,6 @@
+#summary Troubleshooting Guide for the GWT Development Mode browser plugin
+#labels Phase-Implementation
+
+= Introduction =
+
+This is just a placeholder, content to be added.

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6035 committed - Add changes to prompt the user if we don't find the current web server...

2009-08-29 Thread codesite-noreply

Revision: 6035
Author: j...@google.com
Date: Sat Aug 29 22:15:21 2009
Log: Add changes to prompt the user if we don't find the current web server  
in
the access list, cleanup old libraries, changes from review feedback.

http://code.google.com/p/google-web-toolkit/source/detail?r=6035

Added:
  /changes/jat/plugins/plugins/xpcom/UserAgents.txt
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Linux_x86_64-gcc3/components/libgwt_dmp_ff3.so
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3+/platform/Linux_x86_64-gcc3/components/libgwt_dmp_ff3+.so
Deleted:
  /changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff2/install.rdf
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff2/platform/Linux_x86-gcc3/components/liboophm_ff2.so
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff2/platform/Linux_x86_64-gcc3/components/liboophm_ff2.so
  /changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/chrome.manifest
  /changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/install.rdf
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Darwin_x86-gcc3/components/liboophm.dylib
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Linux_x86-gcc3/components/liboophm_ff3.so
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Linux_x86_64-gcc3/components/liboophm_ff3.so
  /changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3+/chrome.manifest
  /changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3+/install.rdf
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3+/platform/Linux_x86_64-gcc3/components/liboophm_ff3+.so
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff35/platform/Linux_x86_64-gcc3/components/liboophm_ff35.so
  /changes/jat/plugins/plugins/xpcom/prebuilt/oophm-xpcom-ff2.xpi
  /changes/jat/plugins/plugins/xpcom/prebuilt/oophm-xpcom-ff3+.xpi
  /changes/jat/plugins/plugins/xpcom/prebuilt/oophm-xpcom-ff3.xpi
  /changes/jat/plugins/plugins/xpcom/prebuilt/oophm-xpcom-ff35.xpi
Modified:
  /changes/jat/plugins/plugins/xpcom/ExternalWrapper.cpp
  /changes/jat/plugins/plugins/xpcom/ExternalWrapper.h
  /changes/jat/plugins/plugins/xpcom/FFSessionHandler.cpp
  /changes/jat/plugins/plugins/xpcom/FFSessionHandler.h
  /changes/jat/plugins/plugins/xpcom/Makefile
  /changes/jat/plugins/plugins/xpcom/ModuleOOPHM.cpp
  /changes/jat/plugins/plugins/xpcom/Preferences.cpp
  /changes/jat/plugins/plugins/xpcom/Preferences.h
  /changes/jat/plugins/plugins/xpcom/prebuilt/extension/content/options.xul
  /changes/jat/plugins/plugins/xpcom/prebuilt/extension/content/prefScript.js

===
--- /dev/null
+++ /changes/jat/plugins/plugins/xpcom/UserAgents.txt   Sat Aug 29 22:15:21  
2009
@@ -0,0 +1,8 @@
+User agents that work with ff3 XPI:
+===
+Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.13) Gecko/2009080315  
Ubuntu/9.04 (jaunty) Firefox/3.08
+
+User agents that work with ff3+ XPI:
+
+Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.12) Gecko/2009072110  
Fedora/3.0.12-1.fc10 Firefox/3.0.12
+
===
--- /dev/null   
+++  
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Linux_x86_64-gcc3/components/libgwt_dmp_ff3.so

Sat Aug 29 22:15:21 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3+/platform/Linux_x86_64-gcc3/components/libgwt_dmp_ff3+.so
  
Sat Aug 29 22:15:21 2009
File is too large to display a diff.
===
--- /changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff2/install.rdf   
 
Mon Aug  3 08:30:11 2009
+++ /dev/null
@@ -1,46 +0,0 @@
-?xml version=1.0?
-RDF xmlns=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
- xmlns:em=http://www.mozilla.org/2004/em-rdf#;
-
-  Description about=urn:mozilla:install-manifest
-em:idoophm-xpcom-...@gwt.google.com/em:id
-em:nameGWT Hosted Mode Plugin (XPCOM) for FF v1.5-2.x/em:name
-em:version0.0.-1M.20090803104826/em:version
-em:type2/em:type
-em:targetApplication
-  Description
-em:id{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/em:id
-em:minVersion1.5/em:minVersion
-em:maxVersion2.*/em:maxVersion
-  /Description
-/em:targetApplication
-
-!-- Front End MetaData --
-em:descriptionA plugin to support hosted-mode development of GWT  
applications/em:description
-em:creatorGoogle, Inc./em:creator
-em:homepageURLhttp://code.google.com/webtoolkit//em:homepageURL
-em:iconURLchrome://gwt-oophm/skin/icon.png/em:iconURL
-
-em:targetPlatformLinux_x86-gcc3/em:targetPlatform
-em:targetPlatformLinux_x86_64-gcc3/em:targetPlatform
-em:targetPlatformDarwin_x86-gcc3/em:targetPlatform
-
-!-- TODO
-# prefs dialog
-
-# replace default about dialog
-