Cell table problem with driver.flush() part

2012-01-20 Thread Qrunk
Hi This is inline with my previous question : We have a used *HasDataEditor* to populate out *CellTable*, *but now we are facing a* problem with driver.flush() part, we trying to to driver.flush() and click of a save button, below you can find the code snippet, it throws an exception on doing

Re: Making an RPC call from a CellTable ButtonCell in a view (MVP pattern)

2012-01-20 Thread Patrick Tucker
I think I modified my HasCell to include the setFieldUpdater(). I'm not sure why they didn't include it... On Jan 19, 6:34 am, Drew Spencer wrote: > Hey Patrick, > > The thing with setFieldUpdater is that I can't work out how to access it > from the Presenter. If I add something like HasCell get

Re: Problemas con GWTP

2012-01-20 Thread Samuel Tasna
thanks, I'll keep trying to locate the error be if 2012/1/20 Hilco Wijbenga > On 20 January 2012 11:42, Samuel Tasna wrote: > > * > > > > The problem I have is with the persistence, before developing > > a small application starts using Netbeans, GWT 2.1, 0.5 gwtp all, > hibernate, > > as t

Re: Re: Redirect to place

2012-01-20 Thread Juan Pablo Gardella
No, I didn't open an issue. El 20 de enero de 2012 11:14, Zdenek escribió: > Did you open the issue? I'm having same problem. > > Scheduling the change event works fine. > > > On Thursday, June 9, 2011 7:51:15 PM UTC+2, Juan Pablo Gardella wrote: >> >> Thanks Jens!!! It works!!! I'll open an iss

Re: Problemas con GWTP

2012-01-20 Thread Hilco Wijbenga
On 20 January 2012 11:42, Samuel Tasna wrote: > * > > The problem I have is with the persistence, before developing > a small application starts using Netbeans, GWT 2.1, 0.5 gwtp all, hibernate, > as the tool develops andofficial IDE is eclipse wanted to migrate the code > to eclipse, there is

Mac-specific CSS

2012-01-20 Thread Kyle Baley
Is there a simple way to include CSS that's specific for Macs? I.e. not just Safari as a user.agent but all browsers on Mac. The issue I'm looking to fix is that the default scrollbar in Macs appears to be 2px smaller than in Windows. We have some CSS in place to accommodate it and we have some

Re: Problemas con GWTP

2012-01-20 Thread Samuel Tasna
* The problem I have is with the persistence, before developing a small application starts using Netbeans, GWT 2.1, 0.5 gwtp all, hibernate, as the tool develops andofficial IDE is eclipse wanted to migrate the code to eclipse, there is now GWT2.4but this persistent problem, no connection to t

Re: EventBus not throwing UmbrellaExceptions

2012-01-20 Thread Aidan O'Kelly
Ok, this was actually just me not realizing eclipse will open multiple 'development' tabs for each tab/instance of the app you have running. Doh. On Fri, Jan 20, 2012 at 5:50 PM, Aidan OK wrote: > Recently, as I've started using the EventBus a lot more, I'm noticing it > seems to be not throwin

Re: Help with resizing

2012-01-20 Thread Mike Dee
FANTASTIC, that worked. Not sure if I understand all the nuances of uibinder yet. Thank you. And Thank you Patrick too. On Jan 19, 8:59 pm, Ashwin Desikan wrote: > Mike, > In your ui:binder you are using a SplitlayoutPanel. You have to use the same > for the variable definition in your view a

EventBus not throwing UmbrellaExceptions

2012-01-20 Thread Aidan OK
Recently, as I've started using the EventBus a lot more, I'm noticing it seems to be not throwing UmbrellaExceptions when for example, there is a NPE in one of the handlers. silently continuing instead. Anyone any idea on whats causing this, and how it can be avoided? I suspect it might be bec

Re: Re: Redirect to place

2012-01-20 Thread Zdenek
Did you open the issue? I'm having same problem. Scheduling the change event works fine. On Thursday, June 9, 2011 7:51:15 PM UTC+2, Juan Pablo Gardella wrote: > > Thanks Jens!!! It works!!! I'll open an issue > > Juan > > -- You received this message because you are subscribed to the Google Gr

GWT and Hibernate

2012-01-20 Thread Fernando Vieira
Hi, I started to use GWT with Google App Engine (GAE) and did all the pages and navigation between them. I also have another project when I use hibernate. So, I have the following scenario: GWT as presentation layer and this other project as business logic. I use RPC to make the calls betweend them

Re: How to Update Entity with Editors & RequestFactory

2012-01-20 Thread jmbz84
Thx for your response, I solved it using merge instead of persist : entityManager.merge(articulo); //entityManager.persist(articulo); Hope it helps On 20 ene, 00:41, -sowdri- wrote: > This usually doesn't happen, as the entities with existing id will be only > m

Re: Drag and Drop API in GWT 2.4

2012-01-20 Thread stagirus
Thank you Thomas. I will try your suggestion of AbsolutePanel within a FocusPanel. I suppose the container FocusPanel receives the drop (mouse) events that actually occur within the child AbsolutePanel. I am also intrigued by your comment on gwt-dnd. It does look promising for our requirements. Th

Re: DataGrid and EditTextCell not working properly on blur in IE

2012-01-20 Thread Vampire
Now I've just seen that the GWT ShowCase app behaves exactly the same. With CellTable it works as expected, on "blur" the editing is finished and the value committed, with DataGrid the same strange behaviour I've observed happens. I've quickly tested and replaced DataGrid by CellTable in my app

ListBox horizontal scrollbar

2012-01-20 Thread Ben
Using GWT2.0.3 and trying to find an easy way to effectively end up with a ListBox that has both vertical *and* horizontal scrollbars (vertical is no problem - the horizontal is the sticky one). Not finding conclusive answers in the forums at this point. Was hoping to find someone who'd done the e

Truncated JSON problem using RequestBuilder with WCF rest service

2012-01-20 Thread shahid
Using GWT 2.1, I have a WCF web service with a simple interface and I am trying to call it using RequestBuilder as follows: String url = "http://localhost/EmployeeService/Service1.svc/web/ GetEmployees"; RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(url)); try

Re: SplitLayoutPanel center widget min size

2012-01-20 Thread Patrick Tucker
7135 was merged into 4731: http://code.google.com/p/google-web-toolkit/issues/detail?id=4731 On Jan 20, 8:37 am, Patrick Tucker wrote: > My solution if anyone is > interested:http://code.google.com/p/google-web-toolkit/issues/detail?id=7135 > > On Jan 18, 12:07 pm, Patrick Tucker wrote: > > > >

Re: Native GWT drag and drop vs gwt-dnd vs other?

2012-01-20 Thread Thomas Broyer
While replying to another question about GWT 2.4 DnD support, I remembered about another big difference: the "native DnD" deals with data, so you cannot "drag and drop widgets" (you'll instead DnD data, and update –including disposing and creating– widgets in response). gwt-dnd however can DnD w

Re: Submitting case studies that don't have public URLs

2012-01-20 Thread Thomas Broyer
Maybe have a look here: http://code.google.com/team/index.html?product=developertools&searchquery=gwt -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-too

Re: SplitLayoutPanel center widget min size

2012-01-20 Thread Patrick Tucker
My solution if anyone is interested: http://code.google.com/p/google-web-toolkit/issues/detail?id=7135 On Jan 18, 12:07 pm, Patrick Tucker wrote: > Has anyone played with this? > > I know the current implementation does not allow a minimum size to be > set on the center widget, what I am wonderin

Editor Framework with DataGrid

2012-01-20 Thread Qrunk
Hi Thomas, I have a couple of questions on use of Editor Framework with DataGrid. Code Snippet used : Contacts.java public Contacts() { } public List getContactList() { return contactList; } public void setContactList(List contactList) { this.contactList = contactList; } //this is for updat

Re: Native GWT drag and drop vs gwt-dnd vs other?

2012-01-20 Thread Rori Stumpf
Thanks, I'll go with native. On Jan 20, 4:16 am, Thomas Broyer wrote: > GWT drag-n-drop is "only" a support for existing "native" APIs (which also > means you can control drags to and drops from outside the browser). > AFAIK, gwt-dnd however "emulates" DnD using mouse events (mousedown + > mousem

Submitting case studies that don't have public URLs

2012-01-20 Thread Junket
Hi, I have followed the GWT blog for some time now and have found the odd case studies to be extremely helpful. I have a contact who has just completed a major re-write of their product which is used in the Financial Services industry and they chose GWT as the means to deliver a rich and interact

Re: wrong image source, no error for debug?

2012-01-20 Thread Thomas Broyer
On Friday, January 20, 2012 11:41:32 AM UTC+1, tong123123 wrote: > > yes, I put the image in the wrong folder, so the image cannot be > loaded, but the question is > "is there any debug message" > If you're using launching DevMode from the Google Plugin for Eclipse, have a look at the Consol

Re: wrong image source, no error for debug?

2012-01-20 Thread tong123123
yes, I put the image in the wrong folder, so the image cannot be loaded, but the question is "is there any debug message" if the javascript (generate by GWT?) cannot find the image from the path? Also, I want to see the genereated .js file which search the image path, how could this javascript file

Re: where to find the generated javascript after compile gwt project

2012-01-20 Thread Ed Bras
I would give the button a unique text and search on the text. Refreshing in Eclipse after the above error/warning always helps in my case. On Fri, Jan 20, 2012 at 10:18 AM, tong123123 wrote: > Thanks for the reply. > I try to use "pretty" compile option but still cannot search > Add > , there i

Re: Making an RPC call from a CellTable ButtonCell in a view (MVP pattern)

2012-01-20 Thread Drew Spencer
Eric, do you have a way to sort the FlexTable by a particular column? That's gonna be an issue for me so if you have any code or tips that would be great. Maybe it's a case of writing a custom function? Thanks -- You received this message because you are subscribed to the Google Groups "Google

Re: wrong image source, no error for debug?

2012-01-20 Thread Thomas Broyer
If you correctly put the image in images/GoogleCode.png in your "war" folder, then should just work. You might have an issue with how you launched the DevMode (not selecting the appropriate "war" folder?), or with following the tutorial (not putting the image in the right place on your disk?)

Re: ui:with - calling methods with arguments

2012-01-20 Thread Thomas Broyer
No, there's no way to do what you want from within the *.ui.xml file; just do it in the Java class instead. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-w

Re: Making an RPC call from a CellTable ButtonCell in a view (MVP pattern)

2012-01-20 Thread Drew Spencer
I'm starting to think I'm using a sledgehammer to crack a nut here... gonna try using a FlexTable and attach a ClickHandler to the delete link in each row. Maybe when I'm better at GWT I can switch it to CellTable. -- You received this message because you are subscribed to the Google Groups "G

Re: Drag and Drop API in GWT 2.4

2012-01-20 Thread Thomas Broyer
Er, put an AbsolutePanel in a FocusPanel, and add a DropHandler on the FocusPanel to handle the drop (and do whatever you want with the wrapped AbsolutePanel)? Note that GWT's support for DnD is via the native browser API/events, so you transport "data", not "widgets", so what would a panel do

Re: Editing list of child objects in CellTable

2012-01-20 Thread Thomas Broyer
The Editor framework works with a "flow synchronization" pattern, so your editors (including your CellTable "rows" and "cells") shouldn't directly modify your edited objects, but rather wait for the "flush". In other words, as-is, HasData editing doesn't play well with the Editor framework (or

wrong image source, no error for debug?

2012-01-20 Thread tong123123
I am new to GWT and I follow the tutorial http://code.google.com/webtoolkit/doc/latest/tutorial/style.html and add the image by but I find the image cannot be shown on my browser, finally I find that the image is not saved in that path "images/GoogleCode.png", but due to no any error message, it

Re: Editor Frame work and MVP

2012-01-20 Thread Thomas Broyer
The EditorDriver binds your model to "editors"; it has to know those editors, all of them, at compile-time. There are different ways to use it: 1. "hide" it as an implementation detail in your view; this means the view is not as "dumb" as it could be (it would expose edit() and flush()

Re: Editor Frame work and MVP

2012-01-20 Thread Cristian Rinaldi
According to a report by Martin Fowler, MVP has been withdrawn as a pattern in July 2006, and has been divided into two variants: Passive View and Supervising Controller. *Passive View:* In this pattern, the view update is exclusively managed by the presenter to reflect the changes in the model. T

Re: GWT support for Application Servers

2012-01-20 Thread Thomas Broyer
On Thursday, January 19, 2012 9:24:11 PM UTC+1, SergeZ wrote: > > Thanks a lot, it is my mistake I miss this passage of the official > documentation, but if I got the point right, the article says that, > yes, you cat debug client-side code as ussual, but I have to find a > tool to debug the s

Re: where to find the generated javascript after compile gwt project

2012-01-20 Thread tong123123
Thanks for the reply. I try to use "pretty" compile option but still cannot search Add , there is error as follow: [code] Problems encountered during text search. File 'gwtFirstLesson/war/gwtfirstlesson/ E720E054419B741AA727C0B7947BDC5D.gwt.rpc' has been skipped, problem while reading: ('Resource i

Re: Native GWT drag and drop vs gwt-dnd vs other?

2012-01-20 Thread Thomas Broyer
GWT drag-n-drop is "only" a support for existing "native" APIs (which also means you can control drags to and drops from outside the browser). AFAIK, gwt-dnd however "emulates" DnD using mouse events (mousedown + mousemove starts a drag, and then mouseup drops), which means you can only drag thi

no selection event fired when selecting root node of a cellTree

2012-01-20 Thread Rodrigue Lagoue
Hi all does somebody know, if there is a way to react on root node selection of a CellTree (Using SingleSelectionmodel).? Thank you and Best regards Rodrigue -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send ema

Re: Collapsible Component in GWT2.4

2012-01-20 Thread Andrea Boscolo
For an example, check the third comment (from Mauro) on https://groups.google.com/forum/#!topic/google-web-toolkit/C6S4jS1UsM0/discussion and see if it fits you needs. The sample is beyond simple layouting but you can find the collapsing/resizing logic you are looking for in the AppLayoutImpl

Re: where to find the generated javascript after compile gwt project

2012-01-20 Thread Ed
The generated Js will be obfuscated so you will need to generate "pretty" Js to be able to read it and find it with any text search. See: PrettyCompile -- You received this mes

where to find the generated javascript after compile gwt project

2012-01-20 Thread tong123123
in the tutorial http://code.google.com/webtoolkit/doc/latest/tutorial/style.html it mention If, after you compile StockWatcher, you look at the generated JavaScript for the Add button, you will see that the button has a class attribute of gwt-Button: Add but i cannot find such a javascript after c