Re: Use of GWT (+ JTS) + JPA + Postgis

2011-01-02 Thread Y2i
Thomas, try this: Define a bean-like class for your PostGIS type, but don't annotate it with @Entity, just keep it as POJO. Let's call it MyPOJO. Use native queries to query the type: EntityManager.createNativeQuery(select ..., MyQuery) Use @SqlResultSetMapping to map MyQuery to MyPOJO. If

GWT TimeSpinner

2011-01-02 Thread Ahmed Shoeib
i tried to use incubator to use TimeSpinner: http://code.google.com/p/google-web-toolkit-incubator/wiki/Spinner but i found that TimePicker Deprecated How Can i solve this problem ?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Re: Use of GWT (+ JTS) + JPA + Postgis

2011-01-02 Thread Y2i
Actually the only thing that works with datanucleus is EntityManager.createNativeQuery(select ..., MyPOJO.class) EntityManager.createNativeQuery(select ..., MyQuery) + @SqlResultSetMapping complains that MyPOJO is not an @Entity. I'm suspecting that the working case might be a datanucleus bug,

how to keep the focus on input element

2011-01-02 Thread newbee
Hi All, I am trying to create filters to cell table and I have implemented this by using Composite Cell in my header.As part of the solution I have added ClickableText Cell for sorting and TextInput Cell for filtering to the composite cell. The problem that I am facing is whenever I enter

Re: Upgrade to GWT 2.1.1

2011-01-02 Thread Henry
Me too ... seems like gwt2.1.1 eclipse pluging didn't release some java code in the gwt-user.jar file On Dec 31 2010, 8:28 am, Aldo Neto tumo...@gmail.com wrote: Hi All, I'm using STS 2.5.1 (i.e. Eclipse 3.6) and tried to upgrade to GWT 2.1.1, but I'm not able to do so. I updated the plugin

client using older version of gwt

2011-01-02 Thread asianCoolz
anyway to find out if client is using the correct version of gwt app on browser? let say we have an app that deployed on server, and user downloaded it. then we deployed 2nd version on server, but on user machine, it still using the old version. how to overcome this problem? -- You received

Re: Transactions in Request Factory

2011-01-02 Thread Thomas Broyer
See http://code.google.com/p/google-web-toolkit/issues/detail?id=5389 See also http://code.google.com/p/google-web-toolkit/issues/detail?id=5724and http://code.google.com/p/google-web-toolkit/issues/detail?id=5776 -- You received this message because you are subscribed to the Google Groups

DecoratedTabPanel setWidth and setHeight not working as expected

2011-01-02 Thread Leung
Hi, I am trying to put a VerticalPanel inside a DecoratedTabPanel. I would like the width and height of the DecoratedTabPanel fixed, no matter the length of the strings inside the VerticalPanel. Then, I use setWidth and setHeight for both DecoratedTabPanel and VerticalPanel. However, the

Re: WebSocket support in GWT

2011-01-02 Thread Thomas Broyer
See https://wave.google.com/wave/waveref/googlewave.com/w+4mwxnYKcD and https://wave.google.com/wave/waveref/googlewave.com/w+pBzVdsE4D ...and http://gwt-code-reviews.appspot.com/699801 (among others, I believe) In brief, yes, they're thinking about it (and more than thinking actually), but

Re: Adding event handler to UiBinder

2011-01-02 Thread Thomas Broyer
How did you declare your UiBinder interface? See http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_World -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

CellList/SimplePager: get/set the page with selected item

2011-01-02 Thread Don
Hi, I'm using CellList together with a SimplePager. It works fine, but I'm looking for a possibility (without resorting to calculations with row counts, page sizes and similar) to show up the page with the selected row. Imagine a simple product list (contact list whatever): 1) Insert a new

Re: how to keep the focus on input element

2011-01-02 Thread newbee
After testing further I observed that this problem is there only on IE but not on other browsers. Could anyone help me how to make this work for IE. I appreciate your help. Thanks, Satish On Jan 2, 2:28 pm, newbee gandhamsat...@gmail.com wrote: Hi All, I am trying to create filters to cell

Re: First column in CellBrowser - width not working

2011-01-02 Thread Thomas Broyer
See http://code.google.com/p/google-web-toolkit/issues/detail?id=5797 which I believe is the same (or very similar) issue/request-for-enhancement. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Using RequestFactory and Editor: How to deal with server side merge in bidirectional association?

2011-01-02 Thread Mike.G
hi all: Suppose i have two Entity A and B, and in A i have a List of B and they are bidirectional association. At the client side, i have Aproxy and Bproxy corresponding to Entity A and B, using editor i can add and delete the Bproxy from Aproxy. Suppose we retrieve A from DB, the A

MVC using EJB and GWT

2011-01-02 Thread Kidowell
Hey Im used to program in MVC architecture. A java app, where the entities lie, and EJB module, where the EJBs lies and struts as a framwork. But now I want to use rather than struts, GWT. But preserving the same configuration. Will I be able to do that?. An enterprise App using gwt. Oh and also

Re: Force RequestFactory to use different base url

2011-01-02 Thread Thomas Broyer
When you initialize your RequestFactory, use the 2-args method, passing a DefaultRequestTransport that you'll initialize with your URL in setRequestUrl. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: client using older version of gwt

2011-01-02 Thread Matthew Hill
Do you mean how to deal with users who never refresh the page? You could just track the version number of the server, and compare it with the one on the client every x hours (depending on how often you update). If it's out of date ask the user to reload. Otherwise, it's not an issue because

Re: Activity vs Presenter division of responsibility for Data Access/Server communication ?

2011-01-02 Thread Thomas Broyer
On Saturday, January 1, 2011 5:17:52 AM UTC+1, zixzigma wrote: Lets say we have an Activity which has a number of WidgetPresenters. [*] who should be responsible for using RequestFactory for server communication ? is it the responsibility of Activity or the Presenters ? Activity {

Re: Is there a way to avoid the colon(:) sign in a Place's prefix ???

2011-01-02 Thread Thomas Broyer
The PlaceHistoryMapper implementation generated by GWT.create() enforces these prefix+token pairs (it extends AbstractPlaceHistoryMapper), but PlaceHistoryHandler does not, and you can very well implement the PlaceHistoryMapper interface by yourself, using the pattern you like. In this case

Re: session in gwt

2011-01-02 Thread junaid
Its done leonardo as an example for u just write HttpSession session = getThreadLocalRequest().getSession()in the your any method in server side then write session.setAttribute(anyname,variable whose value u want to store like username etc ) then for getting the stored value where u want

Re: Use of GWT (+ JTS) + JPA + Postgis

2011-01-02 Thread Thomas Lefort
Yuri thanks a lot for your creative suggestion. I will investigate and post back on this when I have come to a conclusion. On Jan 2, 10:11 am, Y2i yur...@gmail.com wrote: Actually the only thing that works with datanucleus is EntityManager.createNativeQuery(select ..., MyPOJO.class)

Re: Use of GWT (+ JTS) + JPA + Postgis

2011-01-02 Thread Thomas Lefort
Actually, thinking about it I might just use Strings with the WKT format to transfer geometries. On the persistence side I can use native queries with AsText and setsrid geometryfromtext on my geometries to handle the conversion. On the client side I need a WKT conversion to handle the overlays on

Re: Is there a way to avoid the colon(:) sign in a Place's prefix ???

2011-01-02 Thread karthik reddy
I do not want to re-invent the wheel here if someone has already customized the behavior of the prefix by implementing the PlaceHistoryMapper interface, as Thomas mentioned. If someone has already done it , would appreciate if you could provide the code samples. Thomas I see that you have

Re: iTunes-type display widget

2011-01-02 Thread jaybose
Thanks Matthew On Jan 1, 7:35 pm, Matthew Hill matt2...@gmail.com wrote: That's called CoverFlow. No, there isn't a built-in widget like that. You'd have either to find one on the internet or make your own. -- You received this message because you are subscribed to the Google Groups Google

Re: Is there a way to avoid the colon(:) sign in a Place's prefix ???

2011-01-02 Thread Thomas Broyer
On Sunday, January 2, 2011 7:06:45 PM UTC+1, karthik reddy wrote: Thomas I see that you have submitted related to this. http://gwt-code-reviews.appspot.com/824801/show http://gwt-code-reviews.appspot.com/824801/show*Then, the empty-prefix (@Prefix()) is special-cased to: - not

Re: session in gwt

2011-01-02 Thread Vagner Araujo
Hello friends, this example might help. But this example is old, it was posted in 2009. http://snipt.net/javagner/session-in-gwt/ Thanks, -- * Vagner Araujo O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E ALÉM... !! [image: logo.gif] * -- You received this

Tutorial 1: Getting started with guit framework. 2:30 minutes video

2011-01-02 Thread Gal Dolber
http://www.youtube.com/watch?v=S_u7CkU_NnI -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Happy New Year

2011-01-02 Thread nacho
++; On 1 ene, 16:08, gopal bhalala gopalbhal...@gmail.com wrote: Happy New Year to all Best Regards Thanking you, Gopal Dhanjibhai Bhalala On Sat, Jan 1, 2011 at 9:27 PM, Duong BaTien duong.bat...@gmail.com wrote: Happy New Year to all participants in GWT, GAE and Objectify. On Fri,

Re: Using RequestFactory and Editor: How to deal with server side merge in bidirectional association?

2011-01-02 Thread Y2i
1) retrieve A with the list of Bs use .with(listOfBs) to get Bs http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships 2) Enable A for editing 3) delete b2 from the list of Bs 4) persist A. On Jan 2, 6:10 am, Mike.G gsun...@gmail.com wrote: hi all:      

how to avoid instanceof checks in ActivityMapper ? is DoubleDispatch used in Expenses sample ?

2011-01-02 Thread zixzigma
GWT MVP ActivityMappers have lots of instanceof checks [*] for mapping a given Place to the corresponding Activity (or to a more specific AcitivtityMapper). I was wondering if there is a way to avoid using instanceof checks, and instead use an elegant Object Oriented approach. I looked into a

Re: HTML5 - GWT pre-fetching binary files.

2011-01-02 Thread ams
On Dec 30 2010, 6:23 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: *re. 1 - Best way to transfer* IMHO - Base64 encoded data in either JSON or XML, with standard gzip compression applied. Optionally (but recommended), rename the files to MD5.cache.xml or something similar, and set

Re: how to avoid instanceof checks in ActivityMapper ? is DoubleDispatch used in Expenses sample ?

2011-01-02 Thread Matthew Hill
You could use a generator, I think. -- 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

Re: how to avoid instanceof checks in ActivityMapper ? is DoubleDispatch used in Expenses sample ?

2011-01-02 Thread zixzigma
if code generator generates the same instanceof checks, the problem still remains. how can we replace the instanceof checks with a new design (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

Re: how to avoid instanceof checks in ActivityMapper ? is DoubleDispatch used in Expenses sample ?

2011-01-02 Thread Matthew Hill
Oh, I know, but at least you wouldn't have to write them. Sorry, I thought that was the issue at hand here. Ignore my answer; I misunderstood the question. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email

SplitLayoutPanel splitter

2011-01-02 Thread xdzgor
Hi I'm using a SplitLayoutPanel (and UiBinder), but when it is displayed there is no visible splitter - only a little dot. How do I get the splitter to be displayed as a line? Thanks, Peter -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group.

Re: HTMLPanel - Why doesn't it work with setTag(button)

2011-01-02 Thread Matthew Hill
I doubt it. If you set the tag to juyrjkuyjdyrk then it works, which is of course invalid. -- 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

Re: Adding event handler to UiBinder

2011-01-02 Thread Matthew Hill
Okay, I've done that now. My root element is a ButtonElement. The problem is, I want to set up an Image widget within this button element, which displays an ImageResource. I can't do this, because if I have a button node as my root, then the UiBinder can't contain any widgets. I can't use

How to get a widget from another panel

2011-01-02 Thread Néstor Boscán
Hi I have a GWT application with two panels. How to I get a Widget from one panel from the other panel?. Regards, Néstor Boscán -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Using RequestFactory and Editor: How to deal with server side merge in bidirectional association?

2011-01-02 Thread Mike.G
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

[gwt-contrib] TabLayoutPanel problem with customheader

2011-01-02 Thread yves
Hi, As I'am trying to create a TabLayoutPanel with 2 customheaders, for each header I made this kind of stuff in the ui.xml : g:customHeader g:Label addStyleNames='newuser-tab' ui:field='cpnyLoginTabLbl'/

[gwt-contrib] Re: TabLayoutPanel problem with customheader

2011-01-02 Thread yves
Sorry, I found my mistake. The customheader works very fine ! Please, discard my post. Yves On 2 jan, 11:02, yves yves.ko...@gmail.com wrote: Hi, As I'am trying to create a TabLayoutPanel with 2 customheaders, for each header I made this kind of stuff in the ui.xml :                        

[gwt-contrib] Stack overflow problem in HashMap.hashCode() and possible fix

2011-01-02 Thread sinelaw
Problem can be reproduced with four lines of code: HashMapString,Object testMap = new HashMapString, Object(); testMap.put(me, testMap); HashMapObject,Object testMap2 = new HashMapObject, Object(); testMap2.put(testMap, null); //

[gwt-contrib] Re: Stack overflow problem in HashMap.hashCode() and possible fix

2011-01-02 Thread sinelaw
BTW, here's my temporary workaround: private class FixedHashMap extends HashMap { protected boolean _inHashCode = false; @Override public int hashCode() { int result = 0; if (_inHashCode ) {

Re: [gwt-contrib] Stack overflow problem in HashMap.hashCode() and possible fix

2011-01-02 Thread Patrick Julien
This behavior happens outside of GWT too in regular Java. This has nothing to do with GWT. HashMap does not support null values or keys On Sun, Jan 2, 2011 at 1:37 PM, sinelaw jones.noa...@gmail.com wrote: Problem can be reproduced with four lines of code:                HashMapString,Object

[gwt-contrib] Re: Mark test as Failing or NotSupported (issue1245801)

2011-01-02 Thread nchalko
http://gwt-code-reviews.appspot.com/1245801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Mark test as Failing or NotSupported (issue1245801)

2011-01-02 Thread Nick Chalko
Take a look again when you are back from Vacation. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Add getLocaleQueryParam and getLocaleCookieName (issue1250801)

2011-01-02 Thread jat
Reviewers: conroy, Description: Expose the locale.queryparam and locale.cookie config params to client code. This allows things like a locale selector widget that is automatically configured based on the module configuration. Please review this at