PDA

View Full Version : GXT3 Beta5 and uiBinder



chompy18
12 Dec 2011, 1:00 AM
Hi,

I am trying to create a Grid using uiBinder and GXT 3 beta 5.
Does anyone have a working example of this?

Chompy18

WesleyMoy
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.

chompy18
21 Dec 2011, 10:03 PM
Hey Wesley,

Thanks for your reply.
UiFactory method sounds like the right way to go.
I'll try that, thanks for the reference link.

Sefi

darrellmeyer
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:

http://staging.sencha.com:8080/examples-dev/#ExamplePlace:paginguibindergrid

You can view the source XML to see how the grid is created. Changes will go out in next release.

ghal_maraz
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.