Re: RequestFactory not working when upgrade from 2.2 to 2.3

2011-05-18 Thread Daniel Dietrich
Including gwt-servlet-deps.jar has no effect (for me) other than still
receiving the mentioned exception java.lang.NoClassDefFoundError:
org/json/JSONException). However, including the latest json classes, like
Joshua does, works fine.


2011/5/16 Thomas Broyer t.bro...@gmail.com

 No, with Maven you have to add the javax.validation:validation-api and
 org.json:json dependencies. gwt-servlet-deps.jar is for people not using
 Maven: they just have to add this JAR to their classpath (i.e. distribute it
 in their WAR) without worrying about third party dependencies.
 com.google.gwt:gwt-user and com.google.gwt:gwt-servlet Maven artifacts
 should have had dependencies on javax.validation:validation-api and
 org.json:json but they were forgotten before the push to Maven Central; but
 (apart from validation-api) you'd still have to include the dependencies
 explicitly as they're optional, only needed if you use RequestFactory, so
 it's not much of an issue that they were forgotten (validation-api should
 have been set as scopeprovided/scope for gwt-user though, as it's now
 required to compile any GWT project using the Editor framework –other GWT
 projects should compile but with loads of warnings–).

 Note that it's been like this since GWT 2.1 (except validation-api being
 now required in 2.3 for the Editor framework, on client-side code)

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


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



Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Nitish Upreti
The docs Describle what to do when you have a *custom* widget that requires
a constructor argument. However what to do when your using an existing GWT
widget with constructor argument. For example --

Tree(Tree.Resources resources)
  Constructs a tree that uses the specified ClientBundle for image

I am not writing Tree.java myself here so using  @UiFactory  or
 @UiField(provided=true) or @UiConstructor  make no sense.

When I say g:Tree ..  in my template how do I pass the argument here?

-- 
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: common entry method before any RPCServiceImpl method is called

2011-05-18 Thread Jiunarayan
But the data I got from the request is gwt MIME type. And my
requirement is whenever there are some particular parameter  key-value
in request, do some logic and store it in session. So to handle this?

On May 17, 9:46 pm, mdwarne mike.wa...@gmail.com wrote:
 Oh.. And don't forget to call:
    super(req,resp);  inside your over-ridden service(req,resp) method.
 otherwise your RPC's will not execute and will time out.

 Mike.

 On May 17, 6:43 am, mdwarne mike.wa...@gmail.com wrote:

  You can override this method in your RPC servlet.

  @Override
          public void service(HttpServletRequest req, HttpServletResponse 
  resp)
  throws ServletException,IOException {

  }

  This method executes for each RPC call.

  Aloha,
  Mike.

  On May 17, 12:47 am, Jiunarayan jiunara...@gmail.com wrote:

   I want to have some kind of common method or like entry method for
   putting some common things in session attribute,based on some
   parameter, before any RPCSeviceImpl method is called.

-- 
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: JSNI - calling a method on an instance field

2011-05-18 Thread ghost23
Hi,

nothing yet. I have only yet instantiated the class and directly get the 
error at startup time (means, startup of the website, not startup of the 
class).

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Thomas Broyer
Some widgets have custom parsers, they're then documented in the widget's 
javadoc.

In the case of Tree, it has a no-arg constructor, so UiBinder will use it. 
If you want to use another constructor, you'll have to use a @UiFactory to 
construct the instance (rather than letting UiBinder construct it), or a 
@UiField(provided=true) to provide the instance to UiBinder (rather than 
letting it inject it into your @UiField).

-- 
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: JSNI - calling a method on an instance field

2011-05-18 Thread Alain Ekambi
Try this

return this@com.sample.SampleClass::dateObject.format(Ljava/lang/String;)
(stringFormat);

Best,

Alain

2011/5/18 ghost23 sven.bu...@googlemail.com

 Hi,

 nothing yet. I have only yet instantiated the class and directly get the
 error at startup time (means, startup of the website, not startup of the
 class).

 --
 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 API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

-- 
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: JSNI - calling a method on an instance field

2011-05-18 Thread Thomas Broyer


On Tuesday, May 17, 2011 7:42:07 PM UTC+2, ghost23 wrote:

 Unfortunately it doesn't work, at runtime i get the error, that this:

 return this@com.sample.SampleClass::dateObject.format(stringFormat);

 is not allowed. At the dateObject position it says, *missing ; before 
 statement*. But i don't quite understand that.
 How would i have to write it instead?


I'd try either:
   var dateObject = this@com.sample.SampleClass::dateObject;
   return dateObject.format(stringFormat);
or
   return (this@com.sample.SampleClass:dateObject).format(stringFormat);

But well, actually, I'd rather split the method:
   public String format(String str) {
   return format(this.dateObject, str);
   }
   private static native String format(JavaScriptObject dateObject, String 
stringFormat) /*-{
  return dateObject.format(stringFormat);
   }-*/;

As a side note, you can use JsDate.create() instead of your 
createNewJSDateObject method.

...and finally, I wonder how that'd work in the end, given that there's no 
format() method on a JS Date object. If you're using a third-party library 
that modifies the Date.prototype, you'll have to use new $wnd.Date() to 
use the modified prototype (but well, I'd rather change third-party lib in 
this case, as augmenting prototypes is a really bad JS pattern).

-- 
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 community in Sydney?

2011-05-18 Thread matttai
Hi Dave,

I'm a GWT developer in Sydney, no community as far as I know, though I
wouldn't mind keeping in touch to knock heads on problems every so
often. I am still strictly online for the most part though (I do have
alot of other things to do outside of work usually) but its a start :)

My email is also my MSN.

On May 18, 1:19 pm, David Pinn dp...@byandlarge.net wrote:
 I rub shoulders with a bunch of Ruby folk, amongst whom there is a
 real sense of camaraderie and community. They get together to code,
 drink beer, go on Rails camps, etc. For them it's a face-to-face
 social experience, not just an on-line one. As a GWT developer I feel
 left out.

 Is there a GWT community in Sydney, Australia that I have somehow
 failed to encounter? If so, please post details so that I can
 participate. Are you a GWT developer in Sydney?

-- 
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 community in Sydney?

2011-05-18 Thread Thomas Broyer
Well, there's Google in Sydney, so there are ex Google Wave developers 
there. You might want to ask on the wave-dev mailing list: 
http://incubator.apache.org/wave/mailing-lists.html

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Myth17
But my question remains same! I can do that when I have a custom widget but 
this time I am not writing Tree.java myself so how do I do 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: GWT community in Sydney?

2011-05-18 Thread Brett Freer
Hi David,

You will find fellow GWT developers including myself at the Sydney GTUG - 
http://www.sydney-gtug.org/.

-Brett

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Thomas Broyer
Sorry, I don't understand.

You are *using* the Tree widget right? so you can use @UiFactory in your 
owner class.
   @UiField Tree tree; // UiBinder will create the Tree using the @UiFactory 
and then inject it here

   @UiFactory
   Tree createTree() { return new Tree(myResources); }
If you want to pass the Resources from the UiBinder template, then:
   @UiFactory
   Tree createTree(Tree.Resource resources) { return new Tree(resources); }
and:
   g:Tree resources={myResources} /
The arguments are matched by name, just like with a @UiConstructor.

You want to use Tree in a UiBinder template, right? so you already have a 
@UiField in your owner class, right? so why couldn't you turn it into 
@UiField(provided=true) and initialize its value yourself?
  @UiField(provided=true) Tree tree = new Tree(myResources);

Really, the doc is quite clear, with examples of each different option 
(simply replace CricketScore with Tree and ignore the @UiConstructor 
option): 
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_a_widget

It's just missing an example of @UiFactory with arguments, maybe that was 
what you were looking for?

-- 
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: JSNI - calling a method on an instance field

2011-05-18 Thread ghost23
Hi,

thanks for the suggestions, i tried them all (except the splitting up, 
because in fact, i will already have quite a bit of methods and doubling 
them would make the whole thing huge).

Problem is, the issue remains. Even if i have something as simple (and 
useless) as this:

public native String format(String stringFormat) /*-{
 var dateObject = this@com.sample.SampleClass::dateObject;
return ;
}-*/;

It still says after dateObject, that there would be a ; missing before the 
statement. I dont' get 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: JSNI - calling a method on an instance field

2011-05-18 Thread Thomas Broyer


On Wednesday, May 18, 2011 11:21:05 AM UTC+2, ghost23 wrote:

 Hi,

 thanks for the suggestions, i tried them all (except the splitting up, 
 because in fact, i will already have quite a bit of methods and doubling 
 them would make the whole thing huge).

 Problem is, the issue remains. Even if i have something as simple (and 
 useless) as this:

 public native String format(String stringFormat) /*-{
  var dateObject = this@com.sample.SampleClass::dateObject;


Sorry, should have seen it before: there should be a . before the @: 
this.@com.sample.SampleClass::dateObject.

-- 
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: JSNI - calling a method on an instance field

2011-05-18 Thread ghost23
oh my, :)

oh my, ohhh .

need a coffee.

Thank you!

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



RequestFactory Problem: HTTP ERROR 500 /gwtRequest

2011-05-18 Thread Alexander Orlov
I know, a pretty obscure RequestFactory related error message

Does anybody know a *small* RequestFactory example which I could use
as a template? The samples/mobilewebapp RequestFactory example I've
found in the trunk cannot be compiled and the explanation provided on
the docs site is not complete.

###
ERROR: Uncaught exception escaped.
com.google.web.bindery.event.shared.UmbrellaException: One or more
exceptions caught, see full set in UmbrellaException#getCauses
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fail(AbstractRequestContext.java:
588)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$4.onTransportFailure(AbstractRequestContext.java:947)
at
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
$1.onResponseReceived(DefaultRequestTransport.java:141)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
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:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
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:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.RuntimeException: Server Error 500 html
head
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1/
titleError 500 INTERNAL_SERVER_ERROR/title
/head
bodyh2HTTP ERROR: 500/h2preINTERNAL_SERVER_ERROR/pre
pRequestURI=/gwtRequest/ppismalla href=http://
jetty.mortbay.org/Powered by Jetty:///a/small/i/pbr/
br/

at
com.google.web.bindery.requestfactory.shared.Receiver.onFailure(Receiver.java:
36)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.onFail(AbstractRequest.java:
113)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fail(AbstractRequestContext.java:
568)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$4.onTransportFailure(AbstractRequestContext.java:947)
at
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
$1.onResponseReceived(DefaultRequestTransport.java:141)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
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:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at

RequestFactory Problem: HTTP ERROR 500 /gwtRequest

2011-05-18 Thread Alexander Orlov
I know, a pretty obscure RequestFactory related error message

Does anybody know a *small* RequestFactory example which I could use
as a template? The samples/mobilewebapp RequestFactory example I've
found in the trunk cannot be compiled and the explanation provided on
the docs site is not complete.

###
ERROR: Uncaught exception escaped.
com.google.web.bindery.event.shared.UmbrellaException: One or more
exceptions caught, see full set in UmbrellaException#getCauses
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fail(AbstractRequestContext.java:
588)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$4.onTransportFailure(AbstractRequestContext.java:947)
at
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
$1.onResponseReceived(DefaultRequestTransport.java:141)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
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:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
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:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.RuntimeException: Server Error 500 html
head
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1/
titleError 500 INTERNAL_SERVER_ERROR/title
/head
bodyh2HTTP ERROR: 500/h2preINTERNAL_SERVER_ERROR/pre
pRequestURI=/gwtRequest/ppismalla href=http://
jetty.mortbay.org/Powered by Jetty:///a/small/i/pbr/
br/

at
com.google.web.bindery.requestfactory.shared.Receiver.onFailure(Receiver.java:
36)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.onFail(AbstractRequest.java:
113)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fail(AbstractRequestContext.java:
568)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$4.onTransportFailure(AbstractRequestContext.java:947)
at
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
$1.onResponseReceived(DefaultRequestTransport.java:141)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
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:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at

Re: GWT Designer also compiles test and shared classes

2011-05-18 Thread Baloe
Hi all,

Thanks for the suggestions so far.

In our project.gwt.xml the sources look like this:
source path='client' /
source path='shared' /
Although our deploy does not contain our compiled test classes, gwt
designer also interprets test classes as part of the project and tries
to compile them (they have the same classpath). I renamed the test
package to another package and this worked. Note however that this is
just a workaround, because we would like the test package to have the
same package (to be able to use protected fields and methods).

Alan: this is exactly what we mean. We cannot startup the GWT designer
because it raises up all sorts of errors not finding any classes which
are never used client-side.

Eric: I found the check for client classpath but it is not on, so I
cannot turn it off ;)

Eric: you say the the GWT designer does not compile anything. Well, I
get loads of compile errors (because it tries to compile the client
and shared packages), so how can you explain that?

Thanks,
Baloe


On 18 mei, 01:44, Eric Clayberg clayb...@google.com wrote:
 All you need is the full version of GWT Designer (not WB)...

    http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html

 On May 17, 2:57 pm, Alan Chaney a...@mechnicality.com wrote:







  On 5/17/2011 11:41 AM, Eric Clayberg wrote: I woud suggest opening a bug 
  and including a complete test case that
   illustrates the exact problem you are having.

  OK Eric I'll do that.

   You might also turning off the WindowBuilder  GWT  Builder  Check
   for 'client' classpath preference...

  http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/gwt/p...

  Sadly, I'm seeing this problem with Designer, and there doesn't seem to
  be such an option. The implication here is that I need to install the
  full Window Builder to be able to get around this problem?

  Alan

   On May 17, 2:25 pm, Alan Chaneya...@mechnicality.com  wrote:
   On 5/17/2011 11:01 AM, David Chandler wrote:  How is the GWT compiler 
   able to compile your server-side classes? GWT
   Designer is correct to include any source dirs you've specified in
   your gwt.xml.
   I raised a related issue the other day concerning this - GWT Designer
   does not seem to correctly recognize the 'excludes' attributes.

   In the case below, the OP could exclude. for example, **/*Test*.java in
   the module file. Although this works fine for the actual GWT compiler,
   GWT Designer chucks out (in my case) thousands of errors, all of them
   related to it incorrectly finding references to things like
   org.junit.Assert etc. I asked if this was a known bug, and it seems that
   its not, so maybe I should report it?

   Alan

   /dmc
   On Tue, May 17, 2011 at 1:34 PM, Baloenielsba...@gmail.com
   mailto:nielsba...@gmail.com  wrote:
        Hi all,
        Is there any way to restrict GWT Designer to only certain packages?
        We have a serieus problem with this right now. We have some entity
        classes (in the shared package) with annotations. These annotations
        are implemented server-side, and we cannot move the classes to the
        serverside because we also read/write the entity classes in the 
   client
        package. But, GWT Designer also wants to compile these classes.
        Another thing that is happening right now is that GWT Designer 
   starts
        also to compile our test package, which doesn't succeed because 
   these
        classes can never be compiled at client-side.
        So, how do we restrict GWT Designer? Later on it will randomly 
   chose
        to compile our server package as well, which means that we should 
   put
        our /server package in another eclipse project ;)
        Thanks for any hints,
        Baloe
        --
        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
        mailto:google-web-toolkit@googlegroups.com.
        To unsubscribe from this group, send email to
        google-web-toolkit+unsubscr...@googlegroups.com
        mailto:google-web-toolkit%2bunsubscr...@googlegroups.com.
        For more options, visit this group at
      http://groups.google.com/group/google-web-toolkit?hl=en.
   --
   David Chandler
   Developer Programs Engineer, Google Web Toolkit
   w:http://code.google.com/
   b:http://googlewebtoolkit.blogspot.com/
   t: @googledevtools
   --
   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.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web 

RequestFactory: ListListEntityProxyType not possible? - Caused by: java.lang.AssertionError: serverId

2011-05-18 Thread opn
I wonder if it is not supported to receive a list of lists via
RequestFactory? I always get the exception below.
Where can I see which types are supported to transport and which are
not?
I already did things like receiveing a List of  ValueProxy that had a
List of another ValueProxy which again had a List of another
ValueProxy so i thought doing this directly with two lists would work
too.

Caused by: java.lang.AssertionError: serverId
at
com.google.gwt.requestfactory.shared.impl.IdFactory.getId(IdFactory.java:
188)
at
com.google.gwt.requestfactory.shared.impl.AbstractRequestContext.getId(AbstractRequestContext.java:
659)
at
com.google.gwt.requestfactory.shared.impl.AbstractRequestContext.getBeanForPayload(AbstractRequestContext.java:
505)
at
com.google.gwt.requestfactory.shared.impl.EntityCodex.decode(EntityCodex.java:
114)
at
com.google.gwt.requestfactory.shared.impl.EntityCodex.decode(EntityCodex.java:
104)
at
com.google.gwt.requestfactory.shared.impl.AbstractRequest.onSuccess(AbstractRequest.java:
126)
at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext
$StandardPayloadDialect.processPayload(AbstractRequestContext.java:
283)
at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext
$4.onTransportSuccess(AbstractRequestContext.java:959)
at com.google.gwt.requestfactory.client.DefaultRequestTransport
$1.onResponseReceived(DefaultRequestTransport.java:141)
at org.kurfuersten.zeiterfassung.ptm.client.util.PTMRequestTransport
$1.onResponseReceived(PTMRequestTransport.java:31)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
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:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)

-- 
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: RequestFactory Problem: HTTP ERROR 500 /gwtRequest

2011-05-18 Thread opn
From the error message you should have a look into the server log, I
think. This message for example appears when there is a problem with
validating your RequestContext, but could have another cause, too.

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



Απ: Massive increase in compile time with GWT 2.3

2011-05-18 Thread George Moschovitis
45 minutes ?!?! what kind of app is that?

-g.

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Myth17
Actually I am trying this but cannot get it working.

*Here is the code*

!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
 ui:with field='res' type='myth.social.zomato.client.Mainlist.Images' /
 ui:style src=resources/GlobalStyles.css
/ui:style 
 g:Tree ui:field='tree' resources='res' 
g:TreeItem text='Delhi/NCR' /
g:TreeItem text='Banglore'/
g:TreeItem text='Mumbai'/
/g:Tree 
/ui:UiBinder 


*And the Java File*

package myth.social.zomato.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiFactory;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Tree;
import com.google.gwt.user.client.ui.Tree.Resources;
import com.google.gwt.user.client.ui.Widget;

public class Mainlist extends Composite {

interface MainlistUiBinder extends UiBinderWidget, Mainlist {
}
 private static MainlistUiBinder uiBinder = GWT
.create(MainlistUiBinder.class);
  public interface Images extends Tree.Resources , ClientBundle
  {

   @Source(resources/home.png)
   ImageResource homeLogo();
  }
 //We are using an overloaded version of Tree constructor
 @UiField(provided=true) 
 Tree tree;
 
@UiFactory
Tree createTree(Resources resources)
{ 
return new Tree(resources); 
}
 
public Mainlist() 
{
initWidget(uiBinder.createAndBindUi(this));
 }

}



Can you point out where am i going 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: Workaround for Embedded objects

2011-05-18 Thread Jerome Thoma
Cheers, but that didn't help. Maybe David can elaborate on what he said 
above about the enum being declared in the proxy? The strange thing is that 
persisting works for a newly created object, but not for an existing one 
that I edit. The same mechanism is used for other proxy types which work 
fine, so it must have something to do with the fact that it contains an enum 
type. I am stuck here, so any help is appreciated...

Greetings
Jerome

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Brian Reilly
I think that @UiField(provided=true) and @UiFactory are two different
ways to get the same effect in this case. The smallest change to get
your code to work would be to remove provided=true from your @UiField
annotation. As it is, you're effectively telling UI Binder to not try
to create a Tree for you using any means; you're going to provide it
instead. Removing provided=true should allow UI Binder to use your
@UiFactory method.

The other option is to keep provided=true and not use a @UiFactory;
just create it in the constructor:

@UiField(provided=true) Tree tree;
@UiField Images res;

public Mainlist() {
tree = new Tree(res);
initWidget(uiBinder.createAndBindUi(this));
}

I haven't tested the code above, but I'm pretty sure it would work. If
you only have one Tree, the two methods are pretty similar. If you had
multiple Trees that you wanted to construct the same way (or even with
different resources), @UiFactory might be a little more convenient.

-- Brian


On Wed, May 18, 2011 at 7:16 AM, Myth17 nitishupr...@gmail.com wrote:
 Actually I am trying this but cannot get it working.
 Here is the code
 !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
 ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
 xmlns:g=urn:import:com.google.gwt.user.client.ui
 ui:with field='res' type='myth.social.zomato.client.Mainlist.Images' /
 ui:style src=resources/GlobalStyles.css
 /ui:style
 g:Tree ui:field='tree' resources='res' 
 g:TreeItem text='Delhi/NCR' /
 g:TreeItem text='Banglore'/
 g:TreeItem text='Mumbai'/
 /g:Tree
 /ui:UiBinder

 And the Java File
 package myth.social.zomato.client;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.resources.client.ClientBundle;
 import com.google.gwt.resources.client.ImageResource;
 import com.google.gwt.uibinder.client.UiBinder;
 import com.google.gwt.uibinder.client.UiFactory;
 import com.google.gwt.uibinder.client.UiField;
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.Tree;
 import com.google.gwt.user.client.ui.Tree.Resources;
 import com.google.gwt.user.client.ui.Widget;
 public class Mainlist extends Composite {
 interface MainlistUiBinder extends UiBinderWidget, Mainlist {
 }
 private static MainlistUiBinder uiBinder = GWT
 .create(MainlistUiBinder.class);
  public interface Images extends Tree.Resources , ClientBundle
  {

   @Source(resources/home.png)
   ImageResource homeLogo();
       }
 //We are using an overloaded version of Tree constructor
 @UiField(provided=true)
 Tree tree;

 @UiFactory
 Tree createTree(Resources resources)
 {
 return new Tree(resources);
 }

 public Mainlist()
 {
 initWidget(uiBinder.createAndBindUi(this));
 }
 }


 Can you point out where am i going 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.


-- 
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: Απ: Massive increase in compile time with GWT 2.3

2011-05-18 Thread googelybear
technically the project consists of 4 separate apps, so 4 modules that
are compiled individually and it supports 4 locales. Is it unusual to
have such a large compile time?

On May 18, 1:14 pm, George  Moschovitis george.moschovi...@gmail.com
wrote:
 45 minutes ?!?! what kind of app is that?

 -g.

-- 
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: Workaround for Embedded objects

2011-05-18 Thread Jerome Thoma
Never mind, I've finally found my mistake. I forgot to make my find method 
accessible in the locator object. Someone else just posted the same problem 
a short while ago.
Sorry to bother anyone...

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Myth17
It seems to help but I still get an Cannot parse attribute resources 
Element g:Tree resources='res' ui:field='tree' (:10) error. :|

-- 
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: SimpleAppCacheLinker missing?

2011-05-18 Thread dudi
Thank you all!
Great tip from Stefan

I couldn't manage to compile the MobileWebApp project on Eclipse, so
the UiBinder problem is probably a result of that.
GWT designer doesn't give me a stack trace,
just that:

GWT Designer can't load a module because of error in gwt.xml module
description, incorrect resource which requires processing with GWT
generator or by some other configuration error.

Please check your $project_dir/.gwt/.gwt-log for GWT-specific errors.

This log has the following error messages:

{0}

After several hours on that I've pretty much gave up.
If anyone has managed to successfully import the current MobileWebApp
example to Eclipse - It'll be great to share a link  :)

Thanks!
D.

On May 18, 12:55 am, Eric Clayberg clayb...@google.com wrote:
 We need to see the complete stack trace and ideally the
 Eclipse .metadata .log file showing that exception.

 On May 16, 2:49 am,dudidudi.mam...@gmail.com wrote:









  3) I didn't manage to view the ui.xml inGWTDesigner, I get an error
  screen: ...error loading module: error ingwt.xml module description,
  incorrect resource which requires processing withGWTgenerator or by
  some other configuration erro

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Brian Reilly
Hmm... maybe @UiFactory won't work in this case. I looked at the docs
again and it looks like passing constructor parameters is possible
when using @UiConstructor, but I don't see anything about passing
parameters to @UiFactory methods. Try the @UiField(provided=true)
approach instead. Just be careful with the order of the statements;
I'm pretty sure you have to initialize provided UiFields before
calling createAndBindUi().

-- Brian


On Wed, May 18, 2011 at 7:51 AM, Myth17 nitishupr...@gmail.com wrote:
 It seems to help but I still get an Cannot parse attribute resources
 Element g:Tree resources='res' ui:field='tree' (:10) error. :|

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


-- 
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 Designer also compiles test and shared classes

2011-05-18 Thread Baloe
Hi,

After renaming the server package, GWT designer now even hangs on
compiling the gwt-user.jar.


For example:

Validating newly compiled units
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/EventBus.java'
  [ERROR] Line 24: No source code is available for type
com.google.web.bindery.event.shared.EventBus; did you forget to
inherit a required module?
  [ERROR] Line 28: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
  [ERROR] Line 28: No source code is available for type
com.google.web.bindery.event.shared.EventH.TypeH; did you forget
to inherit a required module?
  [ERROR] Line 48: No source code is available for type
com.google.web.bindery.event.shared.EventH; did you forget to
inherit a required module?
  [ERROR] Line 68: Cannot cast from GwtEventcapture#1-of ? to
Event?
  [ERROR] Line 69: No source code is available for type
com.google.web.bindery.event.shared.UmbrellaException; did you forget
to inherit a required module?
  [ERROR] Line 76: Cannot cast from GwtEventcapture#3-of ? to
Event?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
LegacyHandlerWrapper.java'
  [ERROR] Line 19: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
ResettableEventBus.java'
  [ERROR] Line 27: No source code is available for type
com.google.web.bindery.event.shared.ResettableEventBus; did you forget
to inherit a required module?
  [ERROR] Line 49: Cannot cast from GwtEvent.TypeH to
Event.TypeH
  [ERROR] Line 49: No source code is available for type
com.google.web.bindery.event.shared.EventH.TypeH; did you forget
to inherit a required module?
  [ERROR] Line 53: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
  [ERROR] Line 59: Cannot cast from GwtEvent.TypeH to
Event.TypeH
  [ERROR] Line 68: No source code is available for type
com.google.web.bindery.event.shared.EventH; did you forget to
inherit a required module?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
SimpleEventBus.java'
  [ERROR] Line 27: No source code is available for type
com.google.web.bindery.event.shared.SimpleEventBus; did you forget to
inherit a required module?
  [ERROR] Line 32: Cannot cast from GwtEvent.TypeH to
Event.TypeH
  [ERROR] Line 32: No source code is available for type
com.google.web.bindery.event.shared.EventH.TypeH; did you forget
to inherit a required module?
  [ERROR] Line 36: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
  [ERROR] Line 42: Cannot cast from GwtEvent.TypeH to
Event.TypeH
  [ERROR] Line 51: No source code is available for type
com.google.web.bindery.event.shared.EventH; did you forget to
inherit a required module?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
UmbrellaException.java'
  [ERROR] Line 24: No source code is available for type
com.google.web.bindery.event.shared.UmbrellaException; did you forget
to inherit a required module?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/testing/
CountingEventBus.java'
  [ERROR] Line 29: No source code is available for type
com.google.web.bindery.event.shared.testing.CountingEventBus; did you
forget to inherit a required module?
  [ERROR] Line 41: Cannot cast from GwtEvent.TypeH to
Event.TypeH
  [ERROR] Line 41: No source code is available for type
com.google.web.bindery.event.shared.EventH.TypeH; did you forget
to inherit a required module?
  [ERROR] Line 45: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
  [ERROR] Line 51: Cannot cast from GwtEvent.TypeH to
Event.TypeH
  [ERROR] Line 60: No source code is available for type
com.google.web.bindery.event.shared.EventH; did you forget to
inherit a required module?
  [ERROR] Line 80: The method getCount(Event.Type?) in the type
CountingEventBus is not applicable for the arguments
(GwtEvent.Typecapture#5-of ?)
   [ERROR] Errors in 'file:/C:/Niels/eclipseWorkspace2/Goofur/src/nl/
presenter/weapp/client/boilerplate/placeExample/PlaceBaseMapper.java'
  [ERROR] Line 16: The method
getAnnotation(ClassPlaceBaseAnnounce) is undefined for the type
Classcapture#1-of ? extends 

Re: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Myth17
No luck. :(
I get [ERROR] [zomato] - Failed to create an instance of 
'myth.social.zomato.client.Mainlist' via deferred binding  :(

-- 
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 community in Sydney?

2011-05-18 Thread David Pinn
This is a great start. I've booked myself into the May 31 meeting of
Sydney GTUG. Brett and mattai, will either of you guys be attending?

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

2011-05-18 Thread Carlos
thanks for you advice,
i have another issue now
i have a property file which i want it to be outside the war so that
the i can't modify it without being obliged to recreate the war file
any suggestions please

On 17 mai, 14:22, nacho vela.igna...@gmail.com wrote:
 You can create an ant task to compile your gwt app and create a war.

 Try with something like this:

 ?xml version=1.0 encoding=utf-8 ?
 project name=MyProject default=war basedir=.
   !-- Configure path to GWT SDK --
   property name=gwt.sdk location=/path/to/gwt-sdk /

   !-- SWT on Mac requires the -XstartOFirstThreadFlag. --
   condition property=
 XstartOnFirstThreadFlag value=-XstartOnFirstThread
     else=-Dgwt.dummy.arg1=
     os family=mac/
   /condition

   !-- SWT on Mac requires the -d32 flag if the VM is 64-bit. --
   condition property=d32Flag value=-d32 else=-Dgwt.dummy.arg2=
     and
       os family=mac/
       equals arg1=${sun.arch.data.model} arg2=64/
     /and
   /condition    

   path id=project.class.path
     pathelement location=war/WEB-INF/classes/
     pathelement location=${gwt.sdk}/gwt-user.jar/
     fileset dir=${gwt.sdk} includes=gwt-dev*.jar/
     !-- Add any additional non-server libs (such as JUnit) --
     fileset dir=war/WEB-INF/lib includes=**/*.jar/
   /path

   target name=libs description=Copy libs to WEB-INF/lib
     mkdir dir=war/WEB-INF/lib /
     copy todir=war/WEB-INF/lib file=${gwt.sdk}/gwt-servlet.jar /
     !-- Add any additional server libs that need to be copied --
   /target

   target name=javac depends=libs description=Compile java source
     mkdir dir=war/WEB-INF/classes/
     javac srcdir=src includes=** encoding=utf-8
         destdir=war/WEB-INF/classes
         source=1.5 target=1.5 nowarn=true
         debug=true debuglevel=lines,vars,source
       classpath refid=project.class.path/
     /javac
     copy todir=war/WEB-INF/classes
       fileset dir=src excludes=**/*.java/
     /copy
   /target

   target name=gwtc depends=javac description=GWT compile to
 JavaScript
     java failonerror=true fork=true
 classname=com.google.gwt.dev.Compiler
       classpath
         pathelement location=src/
         path refid=project.class.path/    
       /classpath
       !-- add jvmarg -Xss16M or similar if you see a StackOverflowError --
       jvmarg value=-Xmx256M/
       jvmarg value=${XstartOnFirstThreadFlag}/
       jvmarg value=${d32Flag}/
       !-- Additional arguments like -styzle PRETTY or -logLevel DEBUG --
       arg line=-style PRETTY/
       arg value=com.mypackage.myproject.MyEntryPoint/
     /java    
   /target

   target name=hosted depends=javac description=Run hosted mode
     java failonerror=true fork=true
 classname=com.google.gwt.dev.HostedMode
       classpath
         pathelement location=src/
         path refid=project.class.path/
       /classpath
       jvmarg value=-Xmx256M/
       jvmarg value=${XstartOnFirstThreadFlag}/
       jvmarg value=${d32Flag}/
       arg value=-startupUrl/
       arg value=MyEntryPoint.html/
       !-- Additional arguments like -style PRETTY or -logLevel DEBUG --
       arg value=com.mypackage.myproject.MyEntryPoint/
     /java
   /target

   target name=build depends=gwtc description=Build this project /

   target name=war depends=build description=Create a war file
     zip destfile=/path/to/place/the/war/Project.war basedir=war/
   /target

   target name=clean description=Cleans this project
     delete dir=war/WEB-INF/classes failonerror=false /
     delete dir=war/mymodule failonerror=false /
   /target

 /project

-- 
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 Designer also compiles test and shared classes

2011-05-18 Thread Juan Pablo Gardella
You must declare in your *.gwt.xml the correct path for the modules. See:

 [ERROR] Line 24: No source code is available for type
com.google.web.bindery.event.shared.EventBus; did you forget to
inherit a required module?


In GWT 2.3, EventBus were moved so, you must inherit from this package.


2011/5/18 Baloe nielsba...@gmail.com

 Hi,

 After renaming the server package, GWT designer now even hangs on
 compiling the gwt-user.jar.


 For example:

 Validating newly compiled units
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/EventBus.java'
  [ERROR] Line 24: No source code is available for type
 com.google.web.bindery.event.shared.EventBus; did you forget to
 inherit a required module?
  [ERROR] Line 28: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
  [ERROR] Line 28: No source code is available for type
 com.google.web.bindery.event.shared.EventH.TypeH; did you forget
 to inherit a required module?
  [ERROR] Line 48: No source code is available for type
 com.google.web.bindery.event.shared.EventH; did you forget to
 inherit a required module?
  [ERROR] Line 68: Cannot cast from GwtEventcapture#1-of ? to
 Event?
  [ERROR] Line 69: No source code is available for type
 com.google.web.bindery.event.shared.UmbrellaException; did you forget
 to inherit a required module?
  [ERROR] Line 76: Cannot cast from GwtEventcapture#3-of ? to
 Event?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
 LegacyHandlerWrapper.java'
  [ERROR] Line 19: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
 ResettableEventBus.java'
  [ERROR] Line 27: No source code is available for type
 com.google.web.bindery.event.shared.ResettableEventBus; did you forget
 to inherit a required module?
  [ERROR] Line 49: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
  [ERROR] Line 49: No source code is available for type
 com.google.web.bindery.event.shared.EventH.TypeH; did you forget
 to inherit a required module?
  [ERROR] Line 53: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
  [ERROR] Line 59: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
  [ERROR] Line 68: No source code is available for type
 com.google.web.bindery.event.shared.EventH; did you forget to
 inherit a required module?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
 SimpleEventBus.java'
  [ERROR] Line 27: No source code is available for type
 com.google.web.bindery.event.shared.SimpleEventBus; did you forget to
 inherit a required module?
  [ERROR] Line 32: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
  [ERROR] Line 32: No source code is available for type
 com.google.web.bindery.event.shared.EventH.TypeH; did you forget
 to inherit a required module?
  [ERROR] Line 36: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
  [ERROR] Line 42: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
  [ERROR] Line 51: No source code is available for type
 com.google.web.bindery.event.shared.EventH; did you forget to
 inherit a required module?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
 UmbrellaException.java'
  [ERROR] Line 24: No source code is available for type
 com.google.web.bindery.event.shared.UmbrellaException; did you forget
 to inherit a required module?
   [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/testing/
 CountingEventBus.java'
  [ERROR] Line 29: No source code is available for type
 com.google.web.bindery.event.shared.testing.CountingEventBus; did you
 forget to inherit a required module?
  [ERROR] Line 41: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
  [ERROR] Line 41: No source code is available for type
 com.google.web.bindery.event.shared.EventH.TypeH; did you forget
 to inherit a required module?
  [ERROR] Line 45: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
  [ERROR] Line 51: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
  [ERROR] Line 60: No source code is available for type
 com.google.web.bindery.event.shared.EventH; did you forget to
 inherit a required module?
  [ERROR] 

Click Event out of the widget.

2011-05-18 Thread Manvel Saroyan
Hi,
I have a CellTable with SingleSelectionModel - I want to set the
current selection to false when I click out of the CellTable. Please
tell me is there a simple way..
I was thinking to catch mouse out and in events and check is the mouse
out or in on DomHandler's CLick event, but I think maybe there is a
more simple way by using only one event ?
Please tell me the sollution if someone already were faced with such
problem.
As I noticed I can't add clickHandler to Composite or Panel so I can't
fire event when Table's parents click event are fired .
Please give me a suggestion.

Best Regards,
Manvel Saroyan

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Myth17
I got the @UiFactory based code working but the purpose isnt solved yet. :)

How do I make a structure as 

City(a image next to)
-Delhi
mumbai
foo

Right now all I have is 

Delhi
mumbai
---foo

How do I put in the City text with image? 

I am really sad about Google not providing any sample examples for Tree. It 
might be obvious to a lot of people but not everyone. I hope this GWT post 
keeps on guiding people further.

-- 
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: Απ: Massive increase in compile time with GWT 2.3

2011-05-18 Thread Eric Andresen
I've noticed a pretty significant jump as well.  My app used to be around 65 
seconds, and it's up to around 135 seconds now, sometimes spiking up to 3-4 
minutes.  I had just chalked it up to installing the full WindowBuilder and 
GAE plugins that I had skipped in the past, but maybe it is the SDK.

One thing I noticed was the upgrade clobbered my -draftCompile and 
-localWorkers settings in Eclipse, you might want to check those on your 
compile settings if you're on a multi-core processor.

-- 
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 community in Sydney?

2011-05-18 Thread matttai
Actually slipped my mind that I have attended a GTUG meeting before,
and they did go through some GWT stuff (ages ago). This was when Wave
was still active and they did have some fun stuff that night like
Google shirt giveaways amongst other things during question time.
Unfortunately I haven't been able to attend since nor will I be able
to attend this one :(

On May 18, 10:28 pm, David Pinn dp...@byandlarge.net wrote:
 This is a great start. I've booked myself into the May 31 meeting 
 ofSydneyGTUG. Brett and mattai, will either of you guys be attending?

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread icamts
May be you are missing a couple of braces around res, like this:

g:Tree resources='{res}' ui:field='tree'

look a Thomas' example:

g:Tree resources={myResources} /

Cheers,
Luca

On 18 Mag, 14:27, Myth17 nitishupr...@gmail.com wrote:
 No luck. :(
 I get [ERROR] [zomato] - Failed to create an instance of
 'myth.social.zomato.client.Mainlist' via deferred binding  :(

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Myth17
yup i was missing the braces and it worked out. :)

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Myth17
I am particularly wondering looking at Google Mail sample

  TreeItem root = new TreeItem(
imageItemHTML(images.home(), f...@example.com));
tree.addItem(root); 

How do i say this in Uibinder? :|

-- 
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: Απ: Massive increase in compile time with GWT 2.3

2011-05-18 Thread Thomas Broyer


On Wednesday, May 18, 2011 1:39:00 PM UTC+2, googelybear wrote:

 technically the project consists of 4 separate apps, so 4 modules that 
 are compiled individually and it supports 4 locales. Is it unusual to 
 have such a large compile time?


We have something like 65000 LOCs (ncloc metric from Sonar) spread across 
2000 classes, with many generators involved (UiBinder, RequestFactory, 
Editor framework), and it compiles in 212,486s (output from the compiler; 
that's approx. 3½ minutes).

FYI, a compileReport from a month and a half back (before I added the Apache 
Wave editor to our app, which brings a whole lot of new files) says:
Source files: 3122
Initial Type Oracle Types: 4409
Final Type Oracle Types: 6187
GeneratedTypes: 1778
AST Referenced Types: 6187
Unreferenced Types: 3409

So yes, I'd say 45 minutes is unusual. You might want to tweak the number of 
workers, or the memory you allocate the java process (I'm using Maven, so it 
automatically uses as many workers as there are cores/processors on the 
machine –but it's a VM, so I don't even know how many of them we have/it 
thinks we have–, and I otherwise simply bumped the Xmx to 512m –yes, only 
512m–).
Also, try using the server JVM (when using an Oracle/Sun JDK, pass the 
-server argument). I didn't made any measure, but Ray Cromwell found it 
made a difference (a few years back).

FYI, I'm using a custom GWT build out of trunk @ r9848 (w/ half a dozen 
patches applied), which is long after 2.2, but before 2.3 (and before the 
com.google.web.bindery fwiw), so I can't tell if I already made the jump 
in compile time or not (I don't remember noticing any jump in our metrics 
when I upgraded from our custom-built 2.2)

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Thomas Broyer
You have to use resources='{res}' to reference your res variable.

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread Myth17
But I dont see any constructor of TreeItem taking ImageResource or a 
setImage type function. :|

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

2011-05-18 Thread Ed
Hi Carlos,

I deploy the war to jetty then in a separate directory on the server
and use an ant task to replace my configs and web.xml file depending
on the server.

However i do read the files from the war.

E

On Wed, May 18, 2011 at 8:35 AM, Carlos hbazz...@gmail.com wrote:
 thanks for you advice,
 i have another issue now
 i have a property file which i want it to be outside the war so that
 the i can't modify it without being obliged to recreate the war file
 any suggestions please

 On 17 mai, 14:22, nacho vela.igna...@gmail.com wrote:
 You can create an ant task to compile your gwt app and create a war.

 Try with something like this:

 ?xml version=1.0 encoding=utf-8 ?
 project name=MyProject default=war basedir=.
   !-- Configure path to GWT SDK --
   property name=gwt.sdk location=/path/to/gwt-sdk /

   !-- SWT on Mac requires the -XstartOFirstThreadFlag. --
   condition property=
 XstartOnFirstThreadFlag value=-XstartOnFirstThread
     else=-Dgwt.dummy.arg1=
     os family=mac/
   /condition

   !-- SWT on Mac requires the -d32 flag if the VM is 64-bit. --
   condition property=d32Flag value=-d32 else=-Dgwt.dummy.arg2=
     and
       os family=mac/
       equals arg1=${sun.arch.data.model} arg2=64/
     /and
   /condition

   path id=project.class.path
     pathelement location=war/WEB-INF/classes/
     pathelement location=${gwt.sdk}/gwt-user.jar/
     fileset dir=${gwt.sdk} includes=gwt-dev*.jar/
     !-- Add any additional non-server libs (such as JUnit) --
     fileset dir=war/WEB-INF/lib includes=**/*.jar/
   /path

   target name=libs description=Copy libs to WEB-INF/lib
     mkdir dir=war/WEB-INF/lib /
     copy todir=war/WEB-INF/lib file=${gwt.sdk}/gwt-servlet.jar /
     !-- Add any additional server libs that need to be copied --
   /target

   target name=javac depends=libs description=Compile java source
     mkdir dir=war/WEB-INF/classes/
     javac srcdir=src includes=** encoding=utf-8
         destdir=war/WEB-INF/classes
         source=1.5 target=1.5 nowarn=true
         debug=true debuglevel=lines,vars,source
       classpath refid=project.class.path/
     /javac
     copy todir=war/WEB-INF/classes
       fileset dir=src excludes=**/*.java/
     /copy
   /target

   target name=gwtc depends=javac description=GWT compile to
 JavaScript
     java failonerror=true fork=true
 classname=com.google.gwt.dev.Compiler
       classpath
         pathelement location=src/
         path refid=project.class.path/
       /classpath
       !-- add jvmarg -Xss16M or similar if you see a StackOverflowError --
       jvmarg value=-Xmx256M/
       jvmarg value=${XstartOnFirstThreadFlag}/
       jvmarg value=${d32Flag}/
       !-- Additional arguments like -styzle PRETTY or -logLevel DEBUG --
       arg line=-style PRETTY/
       arg value=com.mypackage.myproject.MyEntryPoint/
     /java
   /target

   target name=hosted depends=javac description=Run hosted mode
     java failonerror=true fork=true
 classname=com.google.gwt.dev.HostedMode
       classpath
         pathelement location=src/
         path refid=project.class.path/
       /classpath
       jvmarg value=-Xmx256M/
       jvmarg value=${XstartOnFirstThreadFlag}/
       jvmarg value=${d32Flag}/
       arg value=-startupUrl/
       arg value=MyEntryPoint.html/
       !-- Additional arguments like -style PRETTY or -logLevel DEBUG --
       arg value=com.mypackage.myproject.MyEntryPoint/
     /java
   /target

   target name=build depends=gwtc description=Build this project /

   target name=war depends=build description=Create a war file
     zip destfile=/path/to/place/the/war/Project.war basedir=war/
   /target

   target name=clean description=Cleans this project
     delete dir=war/WEB-INF/classes failonerror=false /
     delete dir=war/mymodule failonerror=false /
   /target

 /project

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



-- 
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: Massive increase in compile time with GWT 2.3

2011-05-18 Thread Raphael André Bauer
On Tue, May 17, 2011 at 11:55 PM, googelybear googelyb...@gmail.com wrote:
 Hi,

 I have recently updated from GWT 2.2.0 to 2.3 and noticed a
 significant increas in compile time: Compile time with 2.2.0 was
 45minutes and now with 2.3 it increased to 1h 12m - that's almost a
 40% increase. I didn't change any settings at all.

 Are others experiencing this as well?
 Do you have any suggestions how to get the compile time down again?

GWT 2.3 introduces a new permutation for IE9. This can explain your
compile time. If you want to support IE9 natively you have to accept
that I guess...


Best,

Raphael

-- 
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: Problems with GWT 2.3 and gwt-oauth2-0.1-alpha

2011-05-18 Thread crisi
ok it worked, i had to whitelist the following url

http://127.0.0.1:/googletasks/oauthWindow.html

oauthWindow.html is hardcoded in the authimpl.class

// Default to use the bundled oauthWindow.html
GWT.getModuleBaseURL() + oauthWindow.html);


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



Using a Single Servlet

2011-05-18 Thread Adriano Lustoza
Hi everybody!
FirstSorry, but my english is poor.

Well, I need to build a Single Servlet that receive call from
client(GWT views) and using the design pattern Command And Factory, is
possible to identify what is the EJB service to execute the remaining
operations. But, the Servlet should return any type and in the client
I'll do the type casting for my desired class.

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



Problems with GWT 2.3 and gwt-oauth2-0.1-alpha

2011-05-18 Thread crisi
Hi guys

I created a new GWT project, added the oauth library and wrote the code to 
get a token

String AUTH_URL = https://accounts.google.com/o/oauth2/auth;;
String CLIENT_ID = asdasd; // available from the APIs console
String TASKS_WRITE_SCOPE = https://www.googleapis.com/auth/tasks;;

AuthRequest req = new AuthRequest(AUTH_URL, CLIENT_ID)
.withScopes(TASKS_WRITE_SCOPE);

Auth.get().login(req, new CallbackString, Throwable() {
  @Override
  public void onSuccess(String token) {
// You now have the OAuth2 token needed to sign 
authenticated requests.
  RootPanel.get().add(new Label(success));
  }
  @Override
  public void onFailure(Throwable caught) {
// The authentication process failed for some reason, see 
caught.getMessage()
  RootPanel.get().add(new Label(fail));
  }
});

The first problem i encountered was, that the Callback.class was missing. 
Meaning there was no such class in import com.google.gwt.core.client
So i downloaded the class from 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/core/client/Callback.java?spec=svn9872r=9872and
 made the appropriate package.
After this step the errors in eclipse disappeared.

The next problem now is, that when i run my project as web application the 
authorization seems to fail. I get a redirect_uri_mismatch.
Now I know that the uri in the google api console has to match but I don't 
know how to set the correct url.
If I run my project it runs under 
http://127.0.0.1:/GoogleTasks.html?gwt.codesvr=127.0.0.1:9997.

I tried to make it run with these uris so far:

   - http://127.0.0.1: and http://127.0.0.1:/oauth2callback
   - http://localhost and http://localhost/oauth2callback
   - http://127.0.0.1 and http://127.0.0.1/oauth2callback

All these with no success so far.

Has anyone a tip for me? It's also strange that the Callback.class was not 
in the core library of gwt? Or is this all because the oauth library is 
still alpha? Should I better do it on my own? Meaning generating the auth 
uri by myself?

Thanks in advance, Chris.
redirect_uri_mismatch Error 400

-- 
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 Designer/Ext-GWT/UiBinder

2011-05-18 Thread Aza
Is code generated by Ext-GWT (integrated into GWT Designer) compatible
with UiBinder?
If yes, is it bi-directional as per GPE embedded GWT Designer?

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: Is there a way to install Google Plugins for Eclipse for GWT 2.2???

2011-05-18 Thread Hojoon
Hi Maximus,

So what I'm trying to do is to get GWT2.2 plugin to work on my
eclipse. the dl link only shows the recent version GWT 2.3 (and its
corresponding packages).

the error/exception messages that I'm getting is that I am missing the
javax.validation.Validation.jar file. Which I believe it went
missing after I let my eclipse update the GWT 2.2 to 2.3

Thank you,

On May 17, 11:21 pm, maximus mohitchilk...@gmail.com wrote:
 Hi Hojoon,

 Now what you want to do...get your GWT2.2 working or revert back to
 some older version ??
 What are the error/exception messages you are getting ??

 In eclipse you can install plugins by selecting :
  Help -- Software Updates -- Find and Install.

 On May 17, 11:22 pm, Hojoon h52...@gmail.com wrote:







  Hi,

  So I accidentally updated the GWT (as well as the App Engine, and
  Plugin) for the Eclipse 3.6 and now my program isn't functioning
  properly.
  I went and tried reverting to the previous version and that didn't
  work.

  and since the http://dl.google.com/eclipse/plugin/3.6; only shows the
  updated versions (wth, it should give an option to download the
  previous version) so I can't run my software properlyit keeps
  saying its missing some jar files.

  So is there a download link for the google plugin for GWT 2.2? Or a
  manual way to install the Google Plugin for Eclipse 3.6 (for GWT 2.2),
  Google App Engine Java SDK 1.4 (I believe that one is for GWT 2.2),
  and Google Web Toolkit SDK 2.2.0 on the Eclipse?

  Thanks.

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



Re: GWT Designer also compiles test and shared classes

2011-05-18 Thread Eric Clayberg
If you are seeing compile errors, those are not coming from GWT
Designer. Any compilation is done by GWT itself.

In fact, any error you see that is prefixed with [ERROR] is coming
from GWT itself, not GWT Designer. If there are errors at the GWT
level, GWT Designer can't edit the UI code. It will show you an error
page instead and show you the errors being reported by GWT. These are
simply being passed through and are not generated by GWT Designer
itself.

If the check for client classpath pref is turned off, GWT Designer
does not do any additional validations (all validations are being done
by GWT/GPE in that case).

On May 18, 7:01 am, Baloe nielsba...@gmail.com wrote:
 Hi all,

 Thanks for the suggestions so far.

 In our project.gwt.xml the sources look like this:
         source path='client' /
         source path='shared' /
 Although our deploy does not contain our compiled test classes, gwt
 designer also interprets test classes as part of the project and tries
 to compile them (they have the same classpath). I renamed the test
 package to another package and this worked. Note however that this is
 just a workaround, because we would like the test package to have the
 same package (to be able to use protected fields and methods).

 Alan: this is exactly what we mean. We cannot startup the GWT designer
 because it raises up all sorts of errors not finding any classes which
 are never used client-side.

 Eric: I found the check for client classpath but it is not on, so I
 cannot turn it off ;)

 Eric: you say the the GWT designer does not compile anything. Well, I
 get loads of compile errors (because it tries to compile the client
 and shared packages), so how can you explain that?

 Thanks,
 Baloe

 On 18 mei, 01:44, Eric Clayberg clayb...@google.com wrote:







  All you need is the full version of GWT Designer (not WB)...

     http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html

  On May 17, 2:57 pm, Alan Chaney a...@mechnicality.com wrote:

   On 5/17/2011 11:41 AM, Eric Clayberg wrote: I woud suggest opening a bug 
   and including a complete test case that
illustrates the exact problem you are having.

   OK Eric I'll do that.

You might also turning off the WindowBuilder  GWT  Builder  Check
for 'client' classpath preference...

   http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/gwt/p...

   Sadly, I'm seeing this problem with Designer, and there doesn't seem to
   be such an option. The implication here is that I need to install the
   full Window Builder to be able to get around this problem?

   Alan

On May 17, 2:25 pm, Alan Chaneya...@mechnicality.com  wrote:
On 5/17/2011 11:01 AM, David Chandler wrote:  How is the GWT compiler 
able to compile your server-side classes? GWT
Designer is correct to include any source dirs you've specified in
your gwt.xml.
I raised a related issue the other day concerning this - GWT Designer
does not seem to correctly recognize the 'excludes' attributes.

In the case below, the OP could exclude. for example, **/*Test*.java in
the module file. Although this works fine for the actual GWT compiler,
GWT Designer chucks out (in my case) thousands of errors, all of them
related to it incorrectly finding references to things like
org.junit.Assert etc. I asked if this was a known bug, and it seems 
that
its not, so maybe I should report it?

Alan

/dmc
On Tue, May 17, 2011 at 1:34 PM, Baloenielsba...@gmail.com
mailto:nielsba...@gmail.com  wrote:
     Hi all,
     Is there any way to restrict GWT Designer to only certain 
packages?
     We have a serieus problem with this right now. We have some 
entity
     classes (in the shared package) with annotations. These 
annotations
     are implemented server-side, and we cannot move the classes to 
the
     serverside because we also read/write the entity classes in the 
client
     package. But, GWT Designer also wants to compile these classes.
     Another thing that is happening right now is that GWT Designer 
starts
     also to compile our test package, which doesn't succeed because 
these
     classes can never be compiled at client-side.
     So, how do we restrict GWT Designer? Later on it will randomly 
chose
     to compile our server package as well, which means that we 
should put
     our /server package in another eclipse project ;)
     Thanks for any hints,
     Baloe
     --
     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
     mailto:google-web-toolkit@googlegroups.com.
     To unsubscribe from this group, send email to
     google-web-toolkit+unsubscr...@googlegroups.com
     

Re: Using a Single Servlet

2011-05-18 Thread Juan Pablo Gardella
See gwt-dispatch approach

2011/5/18 Adriano Lustoza aclust...@gmail.com

 Hi everybody!
 FirstSorry, but my english is poor.

 Well, I need to build a Single Servlet that receive call from
 client(GWT views) and using the design pattern Command And Factory, is
 possible to identify what is the EJB service to execute the remaining
 operations. But, the Servlet should return any type and in the client
 I'll do the type casting for my desired class.

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



-- 
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 Designer also compiles test and shared classes

2011-05-18 Thread Eric Clayberg
1) GWT Designer does not compile anything. Those [ERROR] lines you are
seeing are coming from GWT itself and imply some sort of problem with
your GWT project configuration.

2) $hide$ comments are used to hide code from the GWT Designer parser
(for GUI editing purposes). They have no impact on the GWT compilation
process. $hide$ tags are described here...


http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/preferences_code_parsing.html

On May 18, 8:20 am, Baloe nielsba...@gmail.com wrote:
 Hi,

 After renaming the server package, GWT designer now even hangs on
 compiling the gwt-user.jar.

 For example:

 Validating newly compiled units
    [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/EventBus.java'
       [ERROR] Line 24: No source code is available for type
 com.google.web.bindery.event.shared.EventBus; did you forget to
 inherit a required module?
       [ERROR] Line 28: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
       [ERROR] Line 28: No source code is available for type
 com.google.web.bindery.event.shared.EventH.TypeH; did you forget
 to inherit a required module?
       [ERROR] Line 48: No source code is available for type
 com.google.web.bindery.event.shared.EventH; did you forget to
 inherit a required module?
       [ERROR] Line 68: Cannot cast from GwtEventcapture#1-of ? to
 Event?
       [ERROR] Line 69: No source code is available for type
 com.google.web.bindery.event.shared.UmbrellaException; did you forget
 to inherit a required module?
       [ERROR] Line 76: Cannot cast from GwtEventcapture#3-of ? to
 Event?
    [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
 LegacyHandlerWrapper.java'
       [ERROR] Line 19: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
    [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
 ResettableEventBus.java'
       [ERROR] Line 27: No source code is available for type
 com.google.web.bindery.event.shared.ResettableEventBus; did you forget
 to inherit a required module?
       [ERROR] Line 49: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
       [ERROR] Line 49: No source code is available for type
 com.google.web.bindery.event.shared.EventH.TypeH; did you forget
 to inherit a required module?
       [ERROR] Line 53: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
       [ERROR] Line 59: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
       [ERROR] Line 68: No source code is available for type
 com.google.web.bindery.event.shared.EventH; did you forget to
 inherit a required module?
    [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
 SimpleEventBus.java'
       [ERROR] Line 27: No source code is available for type
 com.google.web.bindery.event.shared.SimpleEventBus; did you forget to
 inherit a required module?
       [ERROR] Line 32: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
       [ERROR] Line 32: No source code is available for type
 com.google.web.bindery.event.shared.EventH.TypeH; did you forget
 to inherit a required module?
       [ERROR] Line 36: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
       [ERROR] Line 42: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
       [ERROR] Line 51: No source code is available for type
 com.google.web.bindery.event.shared.EventH; did you forget to
 inherit a required module?
    [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
 UmbrellaException.java'
       [ERROR] Line 24: No source code is available for type
 com.google.web.bindery.event.shared.UmbrellaException; did you forget
 to inherit a required module?
    [ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
 gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/testing/
 CountingEventBus.java'
       [ERROR] Line 29: No source code is available for type
 com.google.web.bindery.event.shared.testing.CountingEventBus; did you
 forget to inherit a required module?
       [ERROR] Line 41: Cannot cast from GwtEvent.TypeH to
 Event.TypeH
       [ERROR] Line 41: No source code is available for type
 com.google.web.bindery.event.shared.EventH.TypeH; did you forget
 to inherit a required module?
       [ERROR] Line 45: No source code is available for type
 com.google.web.bindery.event.shared.HandlerRegistration; did you
 forget to inherit a required module?
       [ERROR] Line 51: Cannot 

Re: Is there a way to install Google Plugins for Eclipse for GWT 2.2???

2011-05-18 Thread Jeff Larsen
the javax.validation wasn't included in 2.2 either, it is now required for 
the editor framework which is why you're probably running into the problem. 

If you dl the SDK and add the validation*.jar and validation*sources.jar to 
your classpath, everything should work in 2.3. 

While it is an added hassle having those jars on your classpath, it gets you 
is client side validation.

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



Re: Fail upgrade to GWT 2.3

2011-05-18 Thread Sanjiv Jivan
Hi,
You can work around this by placing the GWT 2.3 jars before the Smart GWT
jars in your classpath. This has been resolved in SVN and will be reflected
in the next nightly build and the upcoming Smart GWT 2.5 release.

Let me know if you still have any problems.

Thanks,
Sanjiv

On Mon, May 9, 2011 at 8:30 AM, Ron blod.og@googlemail.com wrote:

 Just add inherits name=com.google.web.bindery.event.Event/ to your main
 project.gwt.xml - but you will still get Cannot cast from GwtEvent.TypeH
 to Event.TypeH from SmartGWT. Seems like its not compatible with GWT 2.3
 yet - I also tested SmartGWT 2.5 latest nightly - still get the cast error.

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


-- 
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 library Wizard

2011-05-18 Thread fedy2
Hi,
I'm using the GWT library Wizard (as explained here:
http://code.google.com/webtoolkit/tools/gwtdesigner/wizards/gwt/library.html)
to create a new project for a GWT library.
I've created an empty GWT project and then using the wizard the
library part with the html file (option: Create HTML file to allow
visual design).
Finally I've created a test Panel and now I want to test it.
If I run it as Web Application I get a blank page.

How can I test my library component with the created project?

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



JsonP response code

2011-05-18 Thread julio
Hi,

I have json-p requests in my code similar to this:

JsonpRequestBuilder jsonp = new JsonpRequestBuilder();
jsonp.requestObject(jsonUrl, new AsyncCallbackT() {

public void onFailure(Throwable throwable) { // error }

public void onSuccess(T t) { //do something }
});

some GET-requests return 200, others 302 and so on, and I should be
able to return a different answer respect to this value. How can I
know what's the response value returned?

Thanks
Julio

-- 
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 library Wizard

2011-05-18 Thread Juan Pablo Gardella
It run in dev mode?

2011/5/18 fedy2 defav...@gmail.com

 Hi,
 I'm using the GWT library Wizard (as explained here:

 http://code.google.com/webtoolkit/tools/gwtdesigner/wizards/gwt/library.html
 )
 to create a new project for a GWT library.
 I've created an empty GWT project and then using the wizard the
 library part with the html file (option: Create HTML file to allow
 visual design).
 Finally I've created a test Panel and now I want to test it.
 If I run it as Web Application I get a blank page.

 How can I test my library component with the created project?

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



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



CellTable specify no records message

2011-05-18 Thread Patrick Tucker
Is there a way to tell CellTable that it should display a particular
message when it has no rows to display?

Similar to how it draws the loading indicator, but I need to display
something like No records available. after the request comes back
from the server.

Thanks,
Pat

-- 
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: CellTable specify no records message

2011-05-18 Thread Isaac Truett
I've been calling setEmptyTableWidget(new Label()) before requesting data to
show a loading... message, in the callback's onFailure to show an error
message, and in onSuccess to show the no records found message.


On Wed, May 18, 2011 at 11:17 AM, Patrick Tucker 
patrick.tuc...@macefusion.com wrote:

 Is there a way to tell CellTable that it should display a particular
 message when it has no rows to display?

 Similar to how it draws the loading indicator, but I need to display
 something like No records available. after the request comes back
 from the server.

 Thanks,
 Pat

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



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



Calling same Activity.start() with different id while currently in activity

2011-05-18 Thread Ashton Thomas
Banging my head on this one...

If I am currently in ShowThisActivity corresponding to id=1 but then a
new placeChangeEvent with ShowThisPlace with id=2, The entire process
of creating a new place insert place into activity and return activity
to ActivityManager is called but the activit.start() is not called
again and I cannot update the new information for id=2

Is this my misunderstanding? is there a way of accomplishing this?

More details below

I have a place show-this-id=# with corresponding activity.

When I call the first placeController.goTo(new ShowThisPlace(show-
this-id=+1))
- the activity.start() is executed

However when I call next and subsequent placeController.goTo(new
ShowThisPlace(show-this-id=+2))
- the activity.start() is never called
HOWEVER:
- The PlaceChange event is fired
- A new place with the correct id is created
- The history token in the url IS updated to the correct id
- The activityMapper.getActivity(token) is called (the mapper sets the
new Place)
- If I go back to the previous place and then go to the desired (show-
this-id=2) it all works

So everything is functioning correct until the activityMapper returns
the activity with the correct place, except start is never called..


THANKS!
-Ashton

-- 
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: Calling same Activity.start() with different id while currently in activity

2011-05-18 Thread Thomas Broyer
If your ActivityMapper returns the exact same instance as the current 
activity, the activity won't be stopped/restarted, and won't be notified 
either (it'd have to listen to PlaceChangeEvent, or your ActivityMapper 
would have to notify it; in the Expenses sample for instance, it sets the 
place on the activity as mean to notify it).

I for one highly prefer the disposable activity approach, where the 
ActivityMapper creates a new activity instance each time it's called (unless 
it would be the same as the previous one, but that's better handled with a 
CachingActivityMapper).

-- 
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: Massive increase in compile time with GWT 2.3

2011-05-18 Thread googelybear
In the project I'm working on we have about 300k LOC and ~7000
classes. The GWT Compiler is invoked with the following arguments on
the build machine (this machine has 8 cores and 64gb of ram): -
Dgwt.localWorkers=8 -Xmx2048M -Xss1024M and there are 48 permutations
to compute. Do you guys have any idea what else we could tweak here?

On May 18, 4:02 pm, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
 On Tue, May 17, 2011 at 11:55 PM, googelybear googelyb...@gmail.com wrote:
  Hi,

  I have recently updated from GWT 2.2.0 to 2.3 and noticed a
  significant increas in compile time: Compile time with 2.2.0 was
  45minutes and now with 2.3 it increased to 1h 12m - that's almost a
  40% increase. I didn't change any settings at all.

  Are others experiencing this as well?
  Do you have any suggestions how to get the compile time down again?

 GWT 2.3 introduces a new permutation for IE9. This can explain your
 compile time. If you want to support IE9 natively you have to accept
 that I guess...

 Best,

 Raphael

-- 
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: Massive increase in compile time with GWT 2.3

2011-05-18 Thread Thomas Broyer


On Wednesday, May 18, 2011 5:37:36 PM UTC+2, googelybear wrote:

 In the project I'm working on we have about 300k LOC and ~7000 
 classes. The GWT Compiler is invoked with the following arguments on 
 the build machine (this machine has 8 cores and 64gb of ram): - 
 Dgwt.localWorkers=8 -Xmx2048M -Xss1024M and there are 48 permutations 
 to compute. Do you guys have any idea what else we could tweak here?


Huh, OK, with such metrics, maybe 45 minutes is normal then...
(and I forgot that we actually only compile 2 permutations!)

Maybe try tweaking the -optimize level. I've read when it was being added 
that -optimize 9 (the default) is not always worth it, and something like 
-optimize 5 could give similar results (output size) for a, obviously, 
shorter compile 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.



Re: Problems with GWT 2.3 and gwt-oauth2-0.1-alpha

2011-05-18 Thread Jason Hall
Hey crisi,

First of all, thanks for trying out the library!

(Incidentally, sorry there wasn't a mailing list for the library itself for 
you to ask this question, I will create one now)

As you found, you will need to whitelist the callback URL for both your 
server's URL and your localhost for testing. I'll update the docs to make 
this clearer.

Also, for Callback, I thought this was in GWT 2.3... -- if that's not the 
case, I'll probably update the library to either not rely on it, or update 
the documentation to make it clear that you must use GWT trunk for the time 
being.

As the library is in alpha, there are some rough edges (as you've found), 
and I hope to make it much smoother in the near future. Thanks again for 
pointing these out :)

- Jason

-- 
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: Calling same Activity.start() with different id while currently in activity

2011-05-18 Thread Ashton Thomas
Hm, Thanks for the quick reply. I think I will just have to check and
reload the activity when I setPlace from PlaceHistoryMapper.

Which means, when the activity is not currently showing, it will go
ahead and start process the new place before the start() is ever
called. I don't think this will be an issue

Thanks very much!


On May 18, 11:39 am, Thomas Broyer t.bro...@gmail.com wrote:
 If your ActivityMapper returns the exact same instance as the current
 activity, the activity won't be stopped/restarted, and won't be notified
 either (it'd have to listen to PlaceChangeEvent, or your ActivityMapper
 would have to notify it; in the Expenses sample for instance, it sets the
 place on the activity as mean to notify it).

 I for one highly prefer the disposable activity approach, where the
 ActivityMapper creates a new activity instance each time it's called (unless
 it would be the same as the previous one, but that's better handled with a
 CachingActivityMapper).

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



DatePicker bug - cannot pick May 30th or 31st 2011

2011-05-18 Thread Stevko
DatePicker does not allow picking of the last dates in months which
span 6 calendar weeks.

Using the default locale in which the week starts on Monday.

This month's date picker (May 2011) does not show the last two days of
the month - May 30th and 31st.
«
2011 May
»
M   T   W   T   F   S   S
25  26  27  28  29  30  1
2   3   4   5   6   7   8
9   10  11  12  13  14  15
16  17  18  19  20  21  22
23  24  25  26  27  28  29

The next month's date picker (June 2011) does show the last two days
of May (as grey) but selecting them only repositions the picker to
May.
«
2011 Jun
»
M   T   W   T   F   S   S
30  31  1   2   3   4   5
6   7   8   9   10  11  12
13  14  15  16  17  18  19
20  21  22  23  24  25  26
27  28  29  30  1   2   3

As a workaround - Is there a way to disable the repositioning of the
month when picking grey'd dates but instead just select the date?

-- 
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: DatePicker bug - cannot pick May 30th or 31st 2011

2011-05-18 Thread Stevko
I've tried switching to using DateBox and the popup DatePicker has 6
rows for May 2011 rather than the 5 that the stand alone picker shows.
FWIW, Here is the UiBinder code that declares the date picker as part
of an Editor context.
g:HTMLPanel
div
span 
class={style.formPrompt}Start Date:/span
g2:DatePicker 
styleName={style.formPromptDatePicker}
ui:field=startDate/
/div
/g:HTMLPanel


On May 18, 10:00 am, Stevko andy.ste...@gmail.com wrote:
 DatePickerdoes not allow picking of the last dates in months which
 span 6 calendar weeks.

 Using the default locale in which the week starts on Monday.

 This month's date picker (May2011) does not show the last two days of
 the month -May30th and 31st.
 «
         2011May
 »
 M       T       W       T       F       S       S
 25      26      27      28      29      30      1
 2       3       4       5       6       7       8
 9       10      11      12      13      14      15
 16      17      18      19      20      21      22
 23      24      25      26      27      28      29

 The next month's date picker (June 2011) does show the last two days
 ofMay(as grey) but selecting them only repositions the picker toMay.
 «
         2011 Jun
 »
 M       T       W       T       F       S       S
 30      31      1       2       3       4       5
 6       7       8       9       10      11      12
 13      14      15      16      17      18      19
 20      21      22      23      24      25      26
 27      28      29      30      1       2       3

 As a workaround - Is there a way to disable the repositioning of the
 month when picking grey'd dates but instead just select the date?

-- 
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: DatePicker bug - cannot pick May 30th or 31st 2011

2011-05-18 Thread Thomas Broyer
Strange, I don't reproduce on 
http://gwt.google.com/samples/Showcase/Showcase.html?locale=fr#!CwDatePicker

-- 
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: Massive increase in compile time with GWT 2.3

2011-05-18 Thread Jeff Larsen
What is the purpose of the build? 

Is it to deploy the actual code to a production/test server or is it to 
enable some sort of selenium/webdriver test framework.

If it is the latter, you could add -draftCompile which will not be highly 
obfuscated code, but it should be a quicker compile, especially with 48 
perms. 

You could also link up multiple computers to do distrubted permutation 
computations. Ray Cromwell had a talk about this at last year's IO. 

Depending on your budget, a SSD drive could potentially help you out a lot 
here too. 

-- 
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: DatePicker bug - cannot pick May 30th or 31st 2011

2011-05-18 Thread Stevko
I suspect it has something to do with my widget only showing 5 rows
instead of 6.
The main differences between the Showcase and mine is that UiBinder is
creating it and Editor is initializing it with a null value.

I'm trying to get 2.3 Showcase to load in my 3.6.2 eclipse helios but
the 3.4/3.5 sample import instructions fail me...
Will try to create a reproduce case later.

Thanks for the quick reply Thomas. Can always count on you :)


On May 18, 10:30 am, Thomas Broyer t.bro...@gmail.com wrote:
 Strange, I don't reproduce 
 onhttp://gwt.google.com/samples/Showcase/Showcase.html?locale=fr#!CwDat...

-- 
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: Massive increase in compile time with GWT 2.3

2011-05-18 Thread Sanjiv Jivan
Have you tried compilation using SSD? I'm my experience from last year,
SSD's were great for reads but terrible for writes and compilation of medium
to large projects actually took a fair bit longer on SSD's.

It's possible the newer SSD's have gotten better but I would recommend doing
some more research before making this expensive purchase with expectations
of significant compile time speed improvements.

On Wed, May 18, 2011 at 2:22 PM, Jeff Larsen larse...@gmail.com wrote:

 What is the purpose of the build?

 Is it to deploy the actual code to a production/test server or is it to
 enable some sort of selenium/webdriver test framework.

 If it is the latter, you could add -draftCompile which will not be highly
 obfuscated code, but it should be a quicker compile, especially with 48
 perms.

 You could also link up multiple computers to do distrubted permutation
 computations. Ray Cromwell had a talk about this at last year's IO.

 Depending on your budget, a SSD drive could potentially help you out a lot
 here too.

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


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



RequestFactory = UnexpectedException: The persisted entity with id 0 has a null version

2011-05-18 Thread Alexander Orlov
Dev Mode initialized. Startup URL:
http://127.0.0.1:/?gwt.codesvr=127.0.0.1:9997
May 18, 2011 5:41:12 PM
com.google.web.bindery.requestfactory.server.RequestFactoryServlet
doPost
SEVERE: Unexpected error
com.google.web.bindery.requestfactory.server.UnexpectedException: The
persisted entity with id 0 has a null version
[...]
[ERROR] 500 - POST /gwtRequest (127.0.0.1) 1420 bytes
#

...is what I get.

my web.xml:

servlet
servlet-namerequestFactoryServlet/servlet-name
servlet-
classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/
servlet-class
/servlet

servlet-mapping
servlet-namerequestFactoryServlet/servlet-name
url-pattern/gwtRequest/url-pattern
/servlet-mapping

my server/AvailabilityLocator.java:

import com.google.web.bindery.requestfactory.shared.Locator;
import dp.verp.model.Availability;

public class AvailabilityLocator extends LocatorAvailability, Long {
@Override
public Availability create(Class? extends Availability aClass) {
return new Availability();
}

@Override
public Availability find(Class? extends Availability aClass,
Long aLong) {
return new Availability();
}

@Override
public ClassAvailability getDomainType() {
return null;
}

@Override
public Long getId(Availability availability) {
return Long.parseLong(String.valueOf(availability.getId()));
}

@Override
public ClassLong getIdType() {
return null;
}

@Override
public Object getVersion(Availability availability) {
return null;
}
}

my server/MyServiceLocator:

import com.google.web.bindery.requestfactory.shared.ServiceLocator;

public class MyServiceLocator implements ServiceLocator {
/**
 * Returns an instance of the service object.
 *
 * @param clazz the requested type of service object
 * @return an instance of the service object
 */
@Override
public Object getInstance(Class? clazz) {
try {
return clazz.newInstance();
} catch (InstantiationException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}
}

my shared/AvailabilityProxy.java:

import com.google.web.bindery.requestfactory.shared.EntityProxy;
import com.google.web.bindery.requestfactory.shared.ProxyFor;
import dp.verp.model.Availability;
import dp.verp.view.availability.server.AvailabilityLocator;

@ProxyFor(value = Availability.class, locator =
AvailabilityLocator.class)
public interface AvailabilityProxy extends EntityProxy {
int getId();

void setSchedule(String schedule);

String getSchedule();
}

my shard/AvailabilityRequest:

import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import dp.verp.model.Availability;
import dp.verp.view.availability.server.MyServiceLocator;

@Service(value = Availability.class, locator = MyServiceLocator.class)
public interface AvailabilityRequest extends RequestContext {
InstanceRequestAvailabilityProxy, Void persist();
}

my shared/AvailabilityRequestFactory.java:

import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.RequestFactory;
import com.google.web.bindery.requestfactory.shared.Service;
import dp.verp.model.Availability;

public interface AvailabilityRequestFactory extends RequestFactory {
/**
 * Source of request objects for the Person class.
 */
@Service(Availability.class)
interface PersonRequest extends RequestContext {
InstanceRequestAvailabilityProxy, Void persist();
}

AvailabilityRequest availabilityRequest();
}

my model/Availability.java:

@Entity
public class Availability {
@Id
private int id;
private String schedule;

  public void persist() {
EntityManager em = Database.getEntityManager();
try {
em.persist(this);
} finally {
  em.close();
}
  }
public int getId() {
return id;
}

public String getSchedule() {
return schedule;
}

public void setSchedule(String schedule) {
this.schedule = schedule;
}
}



And here is my call from the presenter class:

EventBus eventBus = new SimpleEventBus();
AvailabilityRequestFactory requestFactory =
GWT.create(AvailabilityRequestFactory.class);
requestFactory.initialize(eventBus);

AvailabilityRequest request =
requestFactory.availabilityRequest();
AvailabilityProxy availabilityProxy =
request.create(AvailabilityProxy.class);
RequestVoid createReq =

Cannot read property 'com_google_gwt_i18n_client_DateTimeFormat_patternParts' of undefined

2011-05-18 Thread Isaac Truett
I'm at a lost to explain this JavaScriptException that occurs when trying to
parse a date. It works perfectly in DevMode, but once compiled I get this
error:

(-:-) 2011-05-18 14:57:35,044 [FATAL] Uncaught Exception:
com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read
property 'com_google_gwt_i18n_client_DateTimeFormat_patternParts' of
undefined stack: TypeError: Cannot read property
'com_google_gwt_i18n_client_DateTimeFormat_patternParts' of undefined at
com_google_gwt_i18n_client_DateTimeFormat_$parse__Lcom_google_gwt_i18n_client_DateTimeFormat_2Ljava_lang_String_2ILjava_util_Date_2ZI
(
http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html:9178:81http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html)
at
com_google_gwt_i18n_client_DateTimeFormat_$parse__Lcom_google_gwt_i18n_client_DateTimeFormat_2Ljava_lang_String_2ZLjava_util_Date_2
(
http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html:9164:19http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html)
at
com_google_gwt_i18n_client_DateTimeFormat_$parse__Lcom_google_gwt_i18n_client_DateTimeFormat_2Ljava_lang_String_2Ljava_util_Date_2
(
http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html:9157:10http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html
)


The offending JS is the for loop in the following snippet.

function
com_google_gwt_i18n_client_DateTimeFormat_$parse__Lcom_google_gwt_i18n_client_DateTimeFormat_2Ljava_lang_String_2ILjava_util_Date_2ZI(this$static,
text, start, date, strict){
  var abutPass, abutPat, abutStart, cal, count, i, parsePos, part, s;
  cal = new com_google_gwt_i18n_client_impl_DateRecord_DateRecord__V;
  parsePos =
com_google_gwt_lang_Array_initValues__Ljava_lang_Class_2Lcom_google_gwt_core_client_JavaScriptObject_2ILcom_google_gwt_lang_Array_2Lcom_google_gwt_lang_Array_2(com_google_gwt_lang_ClassLiteralHolder__13I_1classLit,
{41:1, 45:1}, -1, [start]);
  abutPat = -1;
  abutStart = 0;
  abutPass = 0;
  for (i = 0; i 
java_util_ArrayList_$size__Ljava_util_ArrayList_2I(this$static.com_google_gwt_i18n_client_DateTimeFormat_patternParts);
++i) {
part =
com_google_gwt_lang_Cast_dynamicCast__Ljava_lang_Object_2ILjava_lang_Object_2(java_util_ArrayList_$get__Ljava_util_ArrayList_2ILjava_lang_Object_2(this$static.com_google_gwt_i18n_client_DateTimeFormat_patternParts,
i), 85);
if (part.com_google_gwt_i18n_client_DateTimeFormat$PatternPart_count 
0) {
  if (abutPat  0 
part.com_google_gwt_i18n_client_DateTimeFormat$PatternPart_abutStart) {
abutPat = i;
abutStart = start;
abutPass = 0;
  }


The stupid part is that if I try to reduce this to a minimal case, the error
disappears. I've compared the JS produced by the failing project and the
minimal attempt to reproduce and found that this snippet above is identical.

While I'm digging deeper, I thought I'd throw this out to you all. Does
anyone have any idea what could cause this$static to be undefined in web
mode but work properly in DevMode?

Thanks.
Isaac

-- 
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: Cannot read property 'com_google_gwt_i18n_client_DateTimeFormat_patternParts' of undefined

2011-05-18 Thread Isaac Truett
Undo send! Undo! Sigh...

It's GWT version 2.3.0.


On Wed, May 18, 2011 at 3:08 PM, Isaac Truett itru...@gmail.com wrote:

 I'm at a lost to explain this JavaScriptException that occurs when trying
 to parse a date. It works perfectly in DevMode, but once compiled I get this
 error:

 (-:-) 2011-05-18 14:57:35,044 [FATAL] Uncaught Exception:
 com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read
 property 'com_google_gwt_i18n_client_DateTimeFormat_patternParts' of
 undefined stack: TypeError: Cannot read property
 'com_google_gwt_i18n_client_DateTimeFormat_patternParts' of undefined at
 com_google_gwt_i18n_client_DateTimeFormat_$parse__Lcom_google_gwt_i18n_client_DateTimeFormat_2Ljava_lang_String_2ILjava_util_Date_2ZI
 (
 http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html:9178:81http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html)
 at
 com_google_gwt_i18n_client_DateTimeFormat_$parse__Lcom_google_gwt_i18n_client_DateTimeFormat_2Ljava_lang_String_2ZLjava_util_Date_2
 (
 http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html:9164:19http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html)
 at
 com_google_gwt_i18n_client_DateTimeFormat_$parse__Lcom_google_gwt_i18n_client_DateTimeFormat_2Ljava_lang_String_2Ljava_util_Date_2
 (
 http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html:9157:10http://127.0.0.1:/client/272AD16AB821250FE07C8B73F61BB364.cache.html
 )


 The offending JS is the for loop in the following snippet.

 function
 com_google_gwt_i18n_client_DateTimeFormat_$parse__Lcom_google_gwt_i18n_client_DateTimeFormat_2Ljava_lang_String_2ILjava_util_Date_2ZI(this$static,
 text, start, date, strict){
   var abutPass, abutPat, abutStart, cal, count, i, parsePos, part, s;
   cal = new com_google_gwt_i18n_client_impl_DateRecord_DateRecord__V;
   parsePos =
 com_google_gwt_lang_Array_initValues__Ljava_lang_Class_2Lcom_google_gwt_core_client_JavaScriptObject_2ILcom_google_gwt_lang_Array_2Lcom_google_gwt_lang_Array_2(com_google_gwt_lang_ClassLiteralHolder__13I_1classLit,
 {41:1, 45:1}, -1, [start]);
   abutPat = -1;
   abutStart = 0;
   abutPass = 0;
   for (i = 0; i 
 java_util_ArrayList_$size__Ljava_util_ArrayList_2I(this$static.com_google_gwt_i18n_client_DateTimeFormat_patternParts);
 ++i) {
 part =
 com_google_gwt_lang_Cast_dynamicCast__Ljava_lang_Object_2ILjava_lang_Object_2(java_util_ArrayList_$get__Ljava_util_ArrayList_2ILjava_lang_Object_2(this$static.com_google_gwt_i18n_client_DateTimeFormat_patternParts,
 i), 85);
 if (part.com_google_gwt_i18n_client_DateTimeFormat$PatternPart_count 
 0) {
   if (abutPat  0 
 part.com_google_gwt_i18n_client_DateTimeFormat$PatternPart_abutStart) {
 abutPat = i;
 abutStart = start;
 abutPass = 0;
   }


 The stupid part is that if I try to reduce this to a minimal case, the
 error disappears. I've compared the JS produced by the failing project and
 the minimal attempt to reproduce and found that this snippet above is
 identical.

 While I'm digging deeper, I thought I'd throw this out to you all. Does
 anyone have any idea what could cause this$static to be undefined in web
 mode but work properly in DevMode?

 Thanks.
 Isaac


-- 
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 Designer/Ext-GWT/UiBinder

2011-05-18 Thread Aza Tek
Any comments on this...
Or is this just a bad question?

On Tue, May 17, 2011 at 11:06 PM, Aza azat...@gmail.com wrote:

 Is code generated by Ext-GWT (integrated into GWT Designer) compatible
 with UiBinder?
 If yes, is it bi-directional as per GPE embedded GWT Designer?

 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: GWT Designer/Ext-GWT/UiBinder

2011-05-18 Thread Juan Pablo Gardella
try in Ext-GWT forum too

2011/5/18 Aza Tek azat...@gmail.com

 Any comments on this...
 Or is this just a bad question?

 On Tue, May 17, 2011 at 11:06 PM, Aza azat...@gmail.com wrote:

 Is code generated by Ext-GWT (integrated into GWT Designer) compatible
 with UiBinder?
 If yes, is it bi-directional as per GPE embedded GWT Designer?

 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.


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



SuggestBox cannot handle mouse clicks

2011-05-18 Thread Carrie
I have a SuggestBox which has a textfield. There is also a
SuggestOracle class like this:


package com.restclearcaseinterface.client.oracles;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.ui.SuggestOracle;
import
com.google.gwt.user.client.ui.MultiWordSuggestOracle.MultiWordSuggestion;


public class OracleBranchRevision extends SuggestOracle {
private final String[] keywords = { NULL, NONE, LATEST, HEAD,
baseline-name };

private MultiWordSuggestion getSugg(String arg) {
return new MultiWordSuggestion(arg, arg);
}

@Override
public void requestSuggestions(Request request, Callback callback) {
String query = request.getQuery();
ListMultiWordSuggestion suggs = new
ArrayListMultiWordSuggestion();

if (query.equals()) {
suggs.add(getSugg(ibranch.revision));
} else {
//suggs.add(getSugg(request.getQuery()));
if (query.contains(.)) {
String[] parts = query.split(\\.);
for (String s : keywords) {
if (parts.length == 1 || 
s.startsWith(parts[1]))
suggs.add(getSugg(parts[0] + 
. + s));
}
}
}

callback.onSuggestionsReady(request, new Response(suggs));
}
}
-

So I can handle e.g. test123.NULL, test123.NONE etc

If I select the suggestions via keyboard I receive the event string
correct, but if I handle the suggestions via mouse clicks i just get
test123. and the suggestion is gone.

the suggestbox has a handler like this:

suggestBoxActual
.addValueChangeHandler(new 
ValueChangeHandlerString() {
@Override
public void 
onValueChange(ValueChangeEventString event) {

// 
RevisionEditBox.this.addStyleName(modified-revision);
log.info(HERE THE NEW VALUE: 
+event.getValue());

ValueChangeEvent.fire(RevisionEditBox.this, event
.getValue());
}
});

-- 
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 2.1 - Plugin for Eclipse

2011-05-18 Thread Ramzi Oueslati
Hi everyone,

I was just wondering if there was any update site URL that would allow
me to install eclipse plugins for GWT 2.1. I'm using Eclipse 3.5.

I know the URL is http://dl.google.com/eclipse/plugin/3.5 for the
stable version (2.3) and http://dl.google.com/eclipse/plugin/beta/3.5
for the beta version (2.4). However I want to use GWTAI for applet
interactions and it is not compatible with GWT 2.2+ versions.

I hope you can help me.

Best regards,
Ramzi

-- 
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 2.1 - Plugin for Eclipse

2011-05-18 Thread Ramzi Oueslati
Hi,
A zip file I can deploy under eclipse directory would be good too.
Best regards,
Ramzi
Le 18 mai 2011 18:07, Ramzi Oueslati oueslat...@gmail.com a écrit :
 Hi everyone,

 I was just wondering if there was any update site URL that would allow
 me to install eclipse plugins for GWT 2.1. I'm using Eclipse 3.5.

 I know the URL is http://dl.google.com/eclipse/plugin/3.5 for the
 stable version (2.3) and http://dl.google.com/eclipse/plugin/beta/3.5
 for the beta version (2.4). However I want to use GWTAI for applet
 interactions and it is not compatible with GWT 2.2+ versions.

 I hope you can help me.

 Best regards,
 Ramzi

-- 
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 Designer supported configuration?? Using GPE 2.3 with GWT 2.2 gwt-maven-plugin projects

2011-05-18 Thread cri
I'm having trouble getting GWT Designer to come up, and I'm wondering
if its because I'm trying something that isn't supported. I'm using
the latest version (2.3) of GPE and I'm trying to use it with gwt-
maven-plugin based projects that are use GWT 2.2. In my eclipse java
build path I've made certain that I'm pointing to the GWT 2.2 sdk.
When I try to bring up the GWT Designer gui editor on one of my gui
classes, I get the error referenced below. I've made sure that I have
a clean environment by installing a fresh version of eclispse and
plugins into a new workspace. So, my question is - is this a supported
configuration, i.e. using GPE 2.3 with GWT 2.2 projects? Any help
really appreciated. Thanks, Chuck


Error when bringing up the GWT GUI editor:

[ERROR] Element 'property-provider' beginning on line 75 contains
unexpected attribute 'generator'
  [ERROR] Failure while parsing XML
  [ERROR] Unexpected error while processing XML
   [ERROR] Line 38: Unexpected exception while processing element
'inherits'
   [ERROR] Failure while parsing XML
   [ERROR] Unexpected error while processing XML
[ERROR] Line 3: Unexpected exception while processing element
'inherits'

-- 
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 library Wizard

2011-05-18 Thread Konstantin Scheglov


How can I test my library component with the created project?


  GWT module created by this wizard is library, so it has no entry point by 
definition.

  You need to create second GWT module with entry point (same project is 
OK), import library module, open EntryPoint and add your widget.

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



What is the secret sauce to getting the eclipse 2.4 beta plugin to generate RequestFactoryServices?

2011-05-18 Thread Jeff Larsen
I've installed 2.4 beta and am trying to figure out how to get the 2.4 
plugin to find my already created DTO objects and all I get is 

when I click on browse it gives me a greyed out screen and says no entries 
available. When I manually enter in the directory, it says no entries 
available. 

Do these objects have to be JPA objects, or do I have to setup some kind of 
special configuration to my old projects? 

What magic am I missing? 

-- 
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 Designer/Ext-GWT/UiBinder

2011-05-18 Thread Jeff Larsen
The 2.2.x versions no. Not compatible. 

I talked with the sencha guy at IO, and he said that 3.0 will be UI binder 
compatible. Assuming he is correct (and I have no reason to doubt this) it 
will be bi-directional. That is the way GWT designer works. It writes and 
processes the code you use. 

-- 
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 Designer/Ext-GWT/UiBinder

2011-05-18 Thread Aza Tek
Thanks Jeff, really looking forward to that.


On Wed, May 18, 2011 at 10:17 PM, Jeff Larsen larse...@gmail.com wrote:

 The 2.2.x versions no. Not compatible.

 I talked with the sencha guy at IO, and he said that 3.0 will be UI binder
 compatible. Assuming he is correct (and I have no reason to doubt this) it
 will be bi-directional. That is the way GWT designer works. It writes and
 processes the code you use.


-- 
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: RequestFactory = UnexpectedException: The persisted entity with id 0 has a null version

2011-05-18 Thread Brian Reilly
You need to work on your AvailabilityLocator implementation. Your
implementation of getVersion() is returning null, which is exactly
what the error message is telling you. Also, your implementation of
find() isn't doing what it should, getIdType() is returning null
(should return Long.class in this case), and getId() is converting an
int to a String to a Long which is a pretty roundabout way of getting
that result.

I haven't looked for simple examples, but I found that I was able to
figure everything out by experimenting in a sample project of my own.
I first started with EntityProxy as it was originally created (no
locators), then I added locators, service locators, and finally
introduced ValueProxy. When it comes to learning something like this,
picking it up and playing with it is often a good way to go.

-- Brian


On Wed, May 18, 2011 at 3:07 PM, Alexander Orlov
alexander.or...@loxal.net wrote:
 Dev Mode initialized. Startup URL:
 http://127.0.0.1:/?gwt.codesvr=127.0.0.1:9997
 May 18, 2011 5:41:12 PM
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet
 doPost
 SEVERE: Unexpected error
 com.google.web.bindery.requestfactory.server.UnexpectedException: The
 persisted entity with id 0 has a null version
 [...]
 [ERROR] 500 - POST /gwtRequest (127.0.0.1) 1420 bytes
 #

 ...is what I get.

 my web.xml:

    servlet
        servlet-namerequestFactoryServlet/servlet-name
        servlet-
 classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/
 servlet-class
    /servlet

    servlet-mapping
        servlet-namerequestFactoryServlet/servlet-name
        url-pattern/gwtRequest/url-pattern
    /servlet-mapping

 my server/AvailabilityLocator.java:

 import com.google.web.bindery.requestfactory.shared.Locator;
 import dp.verp.model.Availability;

 public class AvailabilityLocator extends LocatorAvailability, Long {
    @Override
    public Availability create(Class? extends Availability aClass) {
        return new Availability();
    }

    @Override
    public Availability find(Class? extends Availability aClass,
 Long aLong) {
        return new Availability();
    }

    @Override
    public ClassAvailability getDomainType() {
        return null;
    }

    @Override
    public Long getId(Availability availability) {
        return Long.parseLong(String.valueOf(availability.getId()));
    }

    @Override
    public ClassLong getIdType() {
        return null;
    }

    @Override
    public Object getVersion(Availability availability) {
        return null;
    }
 }

 my server/MyServiceLocator:

 import com.google.web.bindery.requestfactory.shared.ServiceLocator;

 public class MyServiceLocator implements ServiceLocator {
    /**
     * Returns an instance of the service object.
     *
     * @param clazz the requested type of service object
     * @return an instance of the service object
     */
    @Override
    public Object getInstance(Class? clazz) {
        try {
            return clazz.newInstance();
        } catch (InstantiationException e) {
            throw new RuntimeException(e);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        }
    }
 }

 my shared/AvailabilityProxy.java:

 import com.google.web.bindery.requestfactory.shared.EntityProxy;
 import com.google.web.bindery.requestfactory.shared.ProxyFor;
 import dp.verp.model.Availability;
 import dp.verp.view.availability.server.AvailabilityLocator;

 @ProxyFor(value = Availability.class, locator =
 AvailabilityLocator.class)
 public interface AvailabilityProxy extends EntityProxy {
    int getId();

    void setSchedule(String schedule);

    String getSchedule();
 }

 my shard/AvailabilityRequest:

 import com.google.web.bindery.requestfactory.shared.InstanceRequest;
 import com.google.web.bindery.requestfactory.shared.Request;
 import com.google.web.bindery.requestfactory.shared.RequestContext;
 import com.google.web.bindery.requestfactory.shared.Service;
 import dp.verp.model.Availability;
 import dp.verp.view.availability.server.MyServiceLocator;

 @Service(value = Availability.class, locator = MyServiceLocator.class)
 public interface AvailabilityRequest extends RequestContext {
    InstanceRequestAvailabilityProxy, Void persist();
 }

 my shared/AvailabilityRequestFactory.java:

 import com.google.web.bindery.requestfactory.shared.InstanceRequest;
 import com.google.web.bindery.requestfactory.shared.RequestContext;
 import com.google.web.bindery.requestfactory.shared.RequestFactory;
 import com.google.web.bindery.requestfactory.shared.Service;
 import dp.verp.model.Availability;

 public interface AvailabilityRequestFactory extends RequestFactory {
    /**
     * Source of request objects for the Person class.
     */
    @Service(Availability.class)
    interface PersonRequest extends RequestContext {
        InstanceRequestAvailabilityProxy, Void persist();
    }

    AvailabilityRequest availabilityRequest();
 }

 my 

Re: GWT Designer supported configuration?? Using GPE 2.3 with GWT 2.2 gwt-maven-plugin projects

2011-05-18 Thread David Chandler
Yes, it's a supported configuration.

Check your target/[proj]/WEB-INF/lib folder. Which GWT jar(s) does it
contain?

/dmc

On Wed, May 18, 2011 at 2:28 PM, cri chuck.irvine...@gmail.com wrote:

 I'm having trouble getting GWT Designer to come up, and I'm wondering
 if its because I'm trying something that isn't supported. I'm using
 the latest version (2.3) of GPE and I'm trying to use it with gwt-
 maven-plugin based projects that are use GWT 2.2. In my eclipse java
 build path I've made certain that I'm pointing to the GWT 2.2 sdk.
 When I try to bring up the GWT Designer gui editor on one of my gui
 classes, I get the error referenced below. I've made sure that I have
 a clean environment by installing a fresh version of eclispse and
 plugins into a new workspace. So, my question is - is this a supported
 configuration, i.e. using GPE 2.3 with GWT 2.2 projects? Any help
 really appreciated. Thanks, Chuck


 Error when bringing up the GWT GUI editor:

 [ERROR] Element 'property-provider' beginning on line 75 contains
 unexpected attribute 'generator'
  [ERROR] Failure while parsing XML
  [ERROR] Unexpected error while processing XML
   [ERROR] Line 38: Unexpected exception while processing element
 'inherits'
   [ERROR] Failure while parsing XML
   [ERROR] Unexpected error while processing XML
 [ERROR] Line 3: Unexpected exception while processing element
 'inherits'

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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 community in Sydney?

2011-05-18 Thread Brett Freer
Hi David,

Yes I will be there. I will keep a eye out for you.

-- 
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 Designer supported configuration?? Using GPE 2.3 with GWT 2.2 gwt-maven-plugin projects

2011-05-18 Thread cri
Well, I'm not sure that it matters now, since I reverted to GPE 2.2 to
work around the problem. I may try it again. Is there something that I
should look out for? Thanks, Chuck

On May 18, 4:18 pm, David Chandler drfibona...@google.com wrote:
 Yes, it's a supported configuration.

 Check your target/[proj]/WEB-INF/lib folder. Which GWT jar(s) does it
 contain?

 /dmc









 On Wed, May 18, 2011 at 2:28 PM, cri chuck.irvine...@gmail.com wrote:
  I'm having trouble getting GWT Designer to come up, and I'm wondering
  if its because I'm trying something that isn't supported. I'm using
  the latest version (2.3) of GPE and I'm trying to use it with gwt-
  maven-plugin based projects that are use GWT 2.2. In my eclipse java
  build path I've made certain that I'm pointing to the GWT 2.2 sdk.
  When I try to bring up the GWT Designer gui editor on one of my gui
  classes, I get the error referenced below. I've made sure that I have
  a clean environment by installing a fresh version of eclispse and
  plugins into a new workspace. So, my question is - is this a supported
  configuration, i.e. using GPE 2.3 with GWT 2.2 projects? Any help
  really appreciated. Thanks, Chuck

  Error when bringing up the GWT GUI editor:

  [ERROR] Element 'property-provider' beginning on line 75 contains
  unexpected attribute 'generator'
       [ERROR] Failure while parsing XML
       [ERROR] Unexpected error while processing XML
    [ERROR] Line 38: Unexpected exception while processing element
  'inherits'
    [ERROR] Failure while parsing XML
    [ERROR] Unexpected error while processing XML
  [ERROR] Line 3: Unexpected exception while processing element
  'inherits'

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

 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 w:http://code.google.com/
 b:http://googlewebtoolkit.blogspot.com/
 t: @googledevtools

-- 
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 community in Sydney?

2011-05-18 Thread Slava Lovkiy
Hi guys, I also live in Sydney and also use GWT at my current project
at work.

GTUG sounds pretty interesting, is this event open to everyone to
attend and is it free ?

Regards,
Slava
On May 19, 7:48 am, Brett Freer rhapsodysoluti...@gmail.com wrote:
 Hi David,

 Yes I will be there. I will keep a eye out for you.

-- 
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 meets Adobe Flex: gwt4air 2.1 is here !

2011-05-18 Thread gwt.user
Thanks Alain,

I m playing around with the API right now and everything works  great so 
far. I still cant beliebe i m writing a Flex application :)
I hope your project will get more attention

Good luck !

Denis

P.S

You also said something about PDF and Excel. Can i see a  an example 
somewhere ? 

-- 
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 community in Sydney?

2011-05-18 Thread Brett Freer
Yes. GTUGs are free and open to everyone. Come along and get involved!

-- 
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: RequestFactory = UnexpectedException: The persisted entity with id 0 has a null version

2011-05-18 Thread Alexander Orlov
On Wed, May 18, 2011 at 10:43 PM, Brian Reilly brian.irei...@gmail.comwrote:

 You need to work on your AvailabilityLocator implementation. Your
 implementation of getVersion() is returning null, which is exactly
 what the error message is telling you. Also, your implementation of
 find() isn't doing what it should, getIdType() is returning null
 (should return Long.class in this case), and getId() is converting an
 int to a String to a Long which is a pretty roundabout way of getting
 that result.


Thx, a lot!

But after changing server/AvailabilityLocator.java to:

import com.google.web.bindery.requestfactory.shared.Locator;
import dp.verp.model.Availability;

public class AvailabilityLocator extends LocatorAvailability, Integer {
@Override
public Availability create(Class? extends Availability aClass) {
return new Availability();
}

@Override
public Availability find(Class? extends Availability aClass, Integer
id) {
return new Availability();
}

@Override
public ClassAvailability getDomainType() {
return Availability.class;
}

@Override
public Integer getId(Availability availability) {
return availability.getId();
}

@Override
public ClassInteger getIdType() {
return Integer.class;
}

@Override
public Object getVersion(Availability availability) {
return availability;
}
}

##

I permanently get

[ERROR] Error for /gwtRequest
java.lang.StackOverflowError
at sun.misc.FloatingDecimal.init(FloatingDecimal.java:26)
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1220)
at java.lang.Double.parseDouble(Double.java:510)
at
com.google.web.bindery.autobean.vm.impl.JsonSplittable.create(JsonSplittable.java:72)
at
com.google.web.bindery.autobean.shared.impl.StringQuoter.create(StringQuoter.java:46)
at
com.google.web.bindery.autobean.shared.ValueCodex$Type$10.encode(ValueCodex.java:155)
[...]
[ERROR] Stack overflow; to increase the stack size, use the -Xss flag at
startup (java -Xss1M ...)

...and setting  -Xmx from 64 MB to -Xmx512m or -Xss1M doesn't solve the
problem:

-- 
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: Current state of crawlability in GWT

2011-05-18 Thread Isaac Truett
Christian,

Thanks for taking the time to reply. I don't use Gwt-Platform, but I
may look into that if no other options present themselves.


On Mon, May 16, 2011 at 11:05 AM, Christian Goudreau
goudreau.christ...@gmail.com wrote:
 We introduced a service to do that in Gwt-Platform that you can use for
 that. If you're not using Gwt-Platform, you will still be able to use it,
 but that will require a little bit more work.
 We will continue to work on that feature and feedback is realy appreciated.
 Cheers,

 On Mon, May 16, 2011 at 10:56 AM, Isaac Truett itru...@gmail.com wrote:

 What's the current state of crawlability in GWT? Is it all still done by
 hand? I recall there was some work on a CrawlableHyperlink that was
 abandoned, and I thought there was a Servlet written at some point that
 could automatically serve up HmlUnit snapshots, but I can't find that now.
 Are there plans to make crawling just work with Places and such?

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



 --
 Christian Goudreau
 www.arcbees.com

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


-- 
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 community in Sydney?

2011-05-18 Thread David Pinn
Yes, do come, Slava.

On May 19, 9:08 am, Brett Freer rhapsodysoluti...@gmail.com wrote:
 Yes. GTUGs are free and open to everyone. Come along and get involved!

-- 
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 Designer/Ext-GWT/UiBinder

2011-05-18 Thread Eric Clayberg
No. GXT is only supported for GWT Java UIs.

On May 17, 5:06 pm, Aza azat...@gmail.com wrote:
 Is code generated by Ext-GWT (integrated into GWT Designer) compatible
 with UiBinder?
 If yes, is it bi-directional as per GPE embedded GWT Designer?

 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: running GWT compiler low priority

2011-05-18 Thread Erel Segal
I use Linux Ubuntu.

On May 16, 2:20 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Do you use windows?

 2011/5/16 Erel Segal erel...@gmail.com







  The GWT compiler takes a lot of time, and slows the computer
  meanwhile.

  Is it possible to tell it to automatically run in a lower priority
  (something like renice in Linux), so that I can do other things on
  my computer while it runs?

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

-- 
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: running GWT compiler low priority

2011-05-18 Thread Erel Segal
I use Linux Ubuntu, so when the compiler runs I can just renice it,
but after the compiler runs, my computer becomes so slow, I cannot
even get to a console window to execute the renice command. So, I
would like to make it start with a lower priority automatically,

On May 16, 2:20 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Do you use windows?

 2011/5/16 Erel Segal erel...@gmail.com







  The GWT compiler takes a lot of time, and slows the computer
  meanwhile.

  Is it possible to tell it to automatically run in a lower priority
  (something like renice in Linux), so that I can do other things on
  my computer while it runs?

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

-- 
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 community in Sydney?

2011-05-18 Thread Andrew J
Firstly, good work on raising the call for a GWT community! Quite
agree it's sorely needed. Trying to emulate what the rails community
have achieved may be a bit ambitious, but at the very least it would
be great to have GWT people connected.

GTUG is a great start and has some smart folks in attendance (even
Googlers, on occasion). I actually gave a talk a while back on a
project of mine that used GWT  AppEngine fairly heavily - see
http://www.dontstopthesignal.com/2010/08/my-presentation-at-sydney-gtug-august.html
for slides and video. In a previous role I ran a project where we used
GWT.

Garry Miller, who runs GTUG, is an awesome resource on all things GWT.
If you're not familiar with Garry he's founder of sumwise.com, and
they are doing some some very interesting stuff as they attempt to
build a next generation spreadsheet product. They were at Google I/O
this year showing off what they've been doing. Garry's spoken at GTUG
in the past about some of the things they've done (like using GWT to
get the ANTLR java library to run natively in the browser, for
example). He's also a great guy and very accessible, and usually
pretty keen to talk shop.

For what it's worth, apart from side projects, I've run commercial
projects where we used GWT to build rich, interactive javascript
'widgets' that could be embedded on third party sites and could be
embedded and instantiated using a Google Maps-esque API. Happy to grab
a coffee in the city to chat about that if you're interested. Hit me
up on e-mail or @startthesignal.

On May 18, 1:19 pm, David Pinn dp...@byandlarge.net wrote:
 I rub shoulders with a bunch of Ruby folk, amongst whom there is a
 real sense of camaraderie and community. They get together to code,
 drink beer, go on Rails camps, etc. For them it's a face-to-face
 social experience, not just an on-line one. As a GWT developer I feel
 left out.

 Is there a GWT community in Sydney, Australia that I have somehow
 failed to encounter? If so, please post details so that I can
 participate. Are you a GWT developer in Sydney?

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



  1   2   >