Right Click Cell Table

2011-12-09 Thread John Maitland
Is it possible that on right click, that the cell is also selected? If I sink ONCONTEXTMENU, it will provide a context menu event, which won't render the cell selected. For the cell to be selected, I need a click event from the cell itself. Many thanks, John -- You received this message

Re: Right Click Cell Table

2011-12-09 Thread John Maitland
Thanks, all works! I already have a custom DefaultSelectionEventManager for double clicking. I had to override handleMultiSelectionEvent as it only works for click and keyup explicitly. A single selection model would work as is. -- You received this message because you are subscribed to the

Re: Adding Buttons to DialogBox

2011-11-28 Thread John Maitland
Thanks Vid, I've simplified the above code for this post and have multiple buttons. But looking into what setWidget on the DecoratorPanel, I realised that I need to override the following: @Override protected void doAttachChildren() { try { super.doAttachChildren();

Adding Buttons to DialogBox

2011-11-25 Thread John Maitland
Could anyone suggest why the Click Event doesn't fire in the following example code? Many thanks John public class OKDialog extends DialogBox { public OKDialog() { Button okButton = new Button(OK); //add a button in dialogBottomCenterInner div Element bottomMiddle

Re: RequestContext Overhead

2011-08-31 Thread John Maitland
I agree that it looks like the overhead is per-requestcontext. This is also reflected in the size of the abstract request factory vs the abstract request context. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send

RequestContext Overhead

2011-08-30 Thread John Maitland
Is there a overhead to having multiple RequestContexts inside a RequestFactory? I know with RPC, there was a overhead of having multiple async services. John -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email

Re: RequestContext Overhead

2011-08-30 Thread John Maitland
Thanks Thomas. And the code sharing between request contexts is done at the RequestFactory level or between request factories. For example, if I have a entity proxy that is used on multiple request factories would that be shared? This is important if you wanted to code split an entire request

Re: Need help with parallel build (ant)

2011-08-30 Thread John Maitland
Have a look at local workers flag, it will compile the permutations in parallel: http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions John -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group.

Grid Cell Widget Possible?

2011-06-27 Thread John Maitland
Does anyone have any ideas of how to create a cell based grid, i.e. a layout similar to the Grid widget? Many Thanks, John -- 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: Drop file from the OS into a GWT application

2011-06-27 Thread John Maitland
Have a look at this session from Google I/O 2011 on HTML 5: http://www.google.com/events/io/2011/sessions/html5-showcase-for-web-developers-the-wow-and-the-how.html I'm not sure if this has native supported in GWT, but if not look at JSNI. John -- You received this message because you are

Re: SimpleBeanEditorDriver and MVP

2011-03-06 Thread John Maitland
The driver is auto generated by the GWT compiler and therefore should belong in the view. Any code that call GWT.create should really belong in the view or your presenter will have to use the slow GWTTestCase. -- You received this message because you are subscribed to the Google Groups Google

Re: SimpleBeanEditorDriver and MVP

2011-03-03 Thread John Maitland
As Jeff said, I would put it in the view. You might want to look at the following Issue in how to structure your View interface to access your editor driver in the presenter. John

Re: Split points for method having return type other than void

2011-02-22 Thread John Maitland
You could also use a 'proxy' version of the return type. -- 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

Re: GWT 2.2 / RequestFactory - Can domain objects be interfaces as opposed to concrete classes?

2011-02-20 Thread John Maitland
I would personal like to see a layer that considered base types, beyond Object of the concrete type. However it seems that Entity should really just be simple POJOs, even if the interface is just exposing getter and setters. Maybe someone from the GWT team will have some inspiration on this

Re: GWT 2.2 / RequestFactory - Can domain objects be interfaces as opposed to concrete classes?

2011-02-18 Thread John Maitland
I had the same problem and managed to implement a new ServiceLayerDecorator. See.. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/36d0ed4f87be/45af985914ac1780?lnk=gstq=maitland#45af985914ac1780 Regards, John -- You received this message because you are subscribed

Re: EntityProxy for an interface

2011-01-15 Thread John Maitland
Thanks for the advise. After using getTop().resolveClientType this open up further compilications, not least a circular dependency in the layers. However, the next problem was intergrating this with a custom Locator, which resolves the domain class with the BaseProxy and not the actual proxy for

Re: EntityProxy for an interface

2011-01-09 Thread John Maitland
Frustratingly, as I know I'm so close, all my entities (both the implementation and the interface) only contain getter and setter (simple POJO for use in Hibernate). All my data access methods currently reside in the entity service, as recommended. Now in the entity service, I could do a horrible

Re: EntityProxy for an interface

2011-01-08 Thread John Maitland
David, Thank you for the reply. I already have a Locator and a ServiceLocator, but left it out of the above example for simplicity. After reading the source, all the entity proxies map to classes and not interfaces. Hence, if your AppUser class was defined as an interface and a implementation:

EntityProxy for an interface

2011-01-07 Thread John Maitland
I’m having a problem using the new RequestFactory feature in 2.1.1 when trying to serialise an object, using the EntityProxy, with using it's interface. If I have the following entity proxy, entity interface and its implementation, a ‘UnexpectedException: The domain type com.server.MyEntity cannot

Create Namespace Aware XML Elements on client

2010-10-11 Thread John Maitland
I'm trying to create XML document on the client, which is namespace aware, but on Firefox any namespace attributes are not included in the element. I believe firefox requires the new nodes to be created by calling createElementNS, but this is not present at XMLParserImpl.java. Has anyone else seen