GXT3 Beta5 and uiBinder
I am trying to create a Grid using uiBinder and GXT 3 beta 5.
Does anyone have a working example of this?
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/do...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.
Thanks for your reply.
UiFactory method sounds like the right way to go.
I'll try that, thanks for the reference link.
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.
Will it be possible to use the uiBinding with GXT3 and the GWT Designer?
In the beta it is not possible.