View Full Version : Has* GWT interface support in gxt

4 Nov 2009, 1:42 AM

I am evaluating gxt and I am wondering, whether the Has* GWT interfaces will be supported by the gxt widgets in the future. I mean the interfaces like the HasValue<T> for TextBox or HasText for Label in the common GWT widgets.
These interfaces are quite useful, as You can reference your widgets in the presenter (controller) through these interfaces. This makes your code easy to test in common junit tests, as You can mock the view.

Please let me know, whether such support is planned to be introduced.

Thanks and have a nice day,


5 Nov 2009, 11:21 AM
I would also like to see this.


9 Nov 2009, 12:26 PM
That would be a good and natural evolution for the GXT platform; the decision to implement everything from ground up shouldn't exclude the possibility of integrating some elements that are just a good fit. In the case of interfaces, I think the decision is a no-brainer.

9 Nov 2009, 1:20 PM
We can look into all this for GXT3, also for major GWT2 support. This all is not possible in any minor release as the required changes are far too big.

26 Feb 2010, 1:39 AM
Hi Sven,

thanks for the info. Is there any rough release plan for the mentioned GXT3? When it could be available?
Thanks in advance and have a nice day!


2 Mar 2010, 4:07 AM
I am interested in gxt road map too.

10 Mar 2010, 5:12 AM
Ok, as a result of this discussion and some other threads all over the GXT forums, I created a google code project to address the problem. It is a thin layer of interfaces and simple implementations that sits on top of the GXT framework. The main purpose is to provide a simple way of creating code that is completely testable and mockable via mocking frameworks (such as Mockito).
I will try to upload the artifact on some public maven repos as well, but in the meantime, just import the code. Hope it helps. Eugen.

10 Mar 2010, 10:18 AM
Thanks for doing this!