Re: Help with Generic DAO
Have a look at this dao and the rest of the project: http://code.google.com/p/listwidget/source/browse/trunk/src/main/java/com/listwidget/server/service/ObjectifyDao.java -- 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 & JPA: Does the table has to has a field called Version?
Hi David, When I´m trying to use your objectifyDao from the list widget project, Eclipse warns me already for an unsafe type cast in this code: clazz = (Class) ((ParameterizedType) getClass() .getGenericSuperclass()).getActualTypeArguments()[0]; When trying to run my application I get the following error: [ERROR] Unexpected error java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType at apps.youngster.mole.server.service.ObjectifyDao.(ObjectifyDao.java:49) Do you have any idea what can cause this? I can´t find any obvious difference with your code... 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: RequestFactory & JPA: Does the table has to has a field called Version?
Hi David, When I´m trying the objectifyDao from you list widget project, Eclipse warns me already for an unsafe type cast in this code: clazz = (Class) ((ParameterizedType) getClass() .getGenericSuperclass()).getActualTypeArguments()[0]; When trying to run my application I get the following error: [ERROR] Unexpected error java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType at apps.youngster.mole.server.service.ObjectifyDao.(ObjectifyDao.java:49) Do you have any idea what can cause this? I can´t find any obvious difference with your code... 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: DialogBox looking very weird
Thanks, that worked! -- 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-tool...@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.
DialogBox looking very weird
Hi, I would like to use a DialogBox in my application but somehow it looks very very weird. See screenshot: http://ScrnSht.com/dykpnl The code is fairly straightforward: public void onModuleLoad() { DialogBox x = new DialogBox(); Button k = new Button("bla"); x.add(k); x.setWidth("200px"); x.setHeight("200px"); RootLayoutPanel.get().add(x); x.center(); I checked that standard.css is loaded and the images are available in gwt/standard/images. Anyone an idea what's wrong? 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-tool...@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: Authenticate before loading the application
Did you have a look at this page: http://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication ? -- 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-tool...@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: Different solution for deprecated event.getTarget()?
Thanks!! That was all what I needed.. On Jan 14, 12:18 am, Thomas Broyer wrote: > On 13 jan, 21:42, Youngster wrote: > > > I can't find out how to replace the deprecated event.getTarget(). > > I have the following code: > > > @Override > > public void onBrowserEvent(Event event) { > > Element target = event.getTarget(); > > if (DOM.eventGetType(event) == Event.ONCLICK) { > > for (Widget widget : widgets) { > > if (widget.getElement() == target) { > > > > > Now event.getTarget says: Deprecated. use NativeEvent.getEventTarget() > > instead. > > Element target = event.getEventTarget().cast(); > > (if you shift+click or ctrl+click in Eclipse, you'll see that it's > exactly what Event.getTarget() > does:http://code.google.com/p/google-web-toolkit/source/browse/releases/2 > ) > > > Can anyone tell me how test on which widget was clicked, using > > NativeEvent.getEventTarget() ?? > > Your code above will fail if any widget contains a child element (in > case this child element is clicked, widget.getElement() will be false > for all widgets). > Try using Node.isOrHasChild() instead of comparison for equality > (though there might be another, better/faster, algorithm) > > > And another question: why should I use onBrowserEvent for a Composite? > > Is it not better/easier to implement HasClickHandlers? Which one > > should be used when? > > ClickHandler (assuming you meant ClickHandler rather than > HasClickHandlers) will add a class (unless the composite implements it > directly, which isn't a good idea in most, if not all, cases). > onBrowserEvent is lighter-weight, but also a bit "lower level". None > is "better" than the other, so I'd suggest you to use the one you find > "easier" (you're the most comfortable with) -- 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-tool...@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.
Different solution for deprecated event.getTarget()?
I can't find out how to replace the deprecated event.getTarget(). I have the following code: @Override public void onBrowserEvent(Event event) { Element target = event.getTarget(); if (DOM.eventGetType(event) == Event.ONCLICK) { for (Widget widget : widgets) { if (widget.getElement() == target) { Now event.getTarget says: Deprecated. use NativeEvent.getEventTarget() instead. Can anyone tell me how test on which widget was clicked, using NativeEvent.getEventTarget() ?? And another question: why should I use onBrowserEvent for a Composite? Is it not better/easier to implement HasClickHandlers? Which one should be used when? 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-tool...@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: CommandPattern vs Server side Event Bus?
Wouldn't it become much slower if you handle all event via the server? On Nov 25, 7:47 pm, hbraun wrote: > right, errai-bus might be what you are looking for. Is does server > push and has an easy to use programming model. > > On Nov 17, 10:03 am, pedjak wrote: > > > > Sure by nature http does not support events instantiated on by the server. > > > But there are some workarounds. Try to google for http server push, or > > > comet. > > > Have you heard for Errai (http://jboss.org/errai) ? It seems that it > > does exactly what you need. > > > Best, > > > Predrag -- 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-tool...@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: Debugging in Eclipse doesn't work
I had the same problem. Install the newst JDK from http://www.java.com/en/download/manual.jsp and it will be solved. On Oct 28, 4:42 am, Brian Park wrote: > Hi, > > I'm new to GWT and following the StockWatcher tutorial from GWT > website. I'm on the debugging section, so as the tutorial told me to > do, I launched the application in debug mode in Eclipse. However, the > perspective didn't change to Debug mode. Also, it didn't stop at the > breakpoints that I set. > > Did anyone have the same problem? If you did, how did you solve it? > Is there something minor that I overlooked? > > By the way, when I created the project, I checked both 'Use Google Web > Toolkit' and 'Use Google App Engine' check boxes. Would that be a > problem? I'm using GWT 1.7.1 and App Engine 1.2.6. > > Thanks! > > -Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
How to use RestyGWT or external module in general in new (eclipse) project?
Hi, I found a module that sounds exactly what i'm looking for but i am kind of a novice and don't know how to set it up to can use it. I'm using Eclipse with the GWT plugin. I'm talking about RestyGWT, a module that should make it possible to use REST services with the power of RPC in GWT. See: http://github.com/chirino/resty-gwt and http://github.com/chirino/resty-gwt. I really searched the net but can't find anything that helps me. I tried adding libraries, paths external sources etc. etc. etc. but nothing works. I pasted all files in my own project but then it tells me that javax.ws.* cannot be resolved. Can someone please help me with a clear description of how to get this to work in a new project (preferably in Eclipse)? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---