View Full Version : GXT3 Beta5 and uiBinder
12 Dec 2011, 1:00 AM
I am trying to create a Grid using uiBinder and GXT 3 beta 5.
Does anyone have a working example of this?
21 Dec 2011, 11:37 AM
The Ext GWT 3 grid doesn't have any particular UiBinder-related features, so you can include it in your UiBinder template like any other widget.
Notably, because Grid needs constructor arguments, you will need to construct the Grid in code. Take a look at http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_a_widget. If you want the grid to be constructed when your UiBinder is constructed (that is, you're not reusing an older grid instance), you will probably want to write a UiFactory method. Follow the examples in that link; instead of creating a new CricketScores, you'll be creating a Grid.
21 Dec 2011, 10:03 PM
Thanks for your reply.
UiFactory method sounds like the right way to go.
I'll try that, thanks for the reference link.
7 Mar 2012, 10:35 AM
We added a @UiConstructor annotation to Grid to allow it to be created with UiBinder and also added an example. You can see it here:
You can view the source XML to see how the grid is created. Changes will go out in next release.
27 Mar 2012, 12:19 AM
Will it be possible to use the uiBinding with GXT3 and the GWT Designer?
In the beta it is not possible.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.