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 optio

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 google-web-tool...@goog

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 node as my root, then the UiBinder can't contain any widgets. I can't use because it

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 thi

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

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

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

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 google-web-toolkit+unsubscr...@goo

Re: HTML5 - GWT pre-fetching binary files.

2011-01-02 Thread ams
On Dec 30 2010, 6:23 pm, Sripathi Krishnan 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 > .cache.xml or something similar, and set strong http cache headers.

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

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" wrote: > hi all: >      Suppose i ha

Re: Happy New Year

2011-01-02 Thread nacho
++; On 1 ene, 16:08, gopal bhalala wrote: > Happy New Year to all > > Best Regards & Thanking you, > Gopal Dhanjibhai Bhalala > > On Sat, Jan 1, 2011 at 9:27 PM, Duong BaTien wrote: > > Happy New Year to all participants in GWT, GAE and Objectify. > > > On Fri, Dec 31, 2010 at 12:33 PM, Jeff Sch

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

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 > > *"Then, the empty-prefix > (@Prefix("")) is special-cased to: >

Re: iTunes-type display widget

2011-01-02 Thread jaybose
Thanks Matthew On Jan 1, 7:35 pm, Matthew Hill 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 Web Toolkit"

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 sub

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: 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 wrote: > Actually the only thing that works with datanucleus is > EntityManager.createNativeQuery("select ...", MyPOJO.class) > > EntityManager.creat

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 w

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 t

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

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 eac

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

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 de

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 h

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 google

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 wrote: > Hi All, > > I am trying to create filters to cell table and I have imp

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 contac

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 google-web-tool...@google

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 the

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 dimens

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

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 this

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 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 and the SDK, up

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 someth

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 b

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 pos

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.