Friday, May 25, 2012

UIB click handlers, GWTQuery, and TD's ;)

I'm building an app that has a really good use case for me to have my own/raw HTML Tables   (I thought of flextable.. but the api pains me).

Anyway.. i'm trying to figure out something and am a bit stuck, thought "the crowd" might have some ideas.

piece of code:

GQuery td = $("<td colspan='x'/>");
ThingyBarUIB thingyBar = new ThingyBarUIB();
thingyBar.loadData(someObject);
td.append(thingyBar.getElement());                       
addClickHandlerToBar(someObject, thingyBar);

Now.. I easily add click handlers via the method/gwtquery all is well.

I'd really like, just to be.. I dunno.. "closer to GWT".. to be able to use @UiHandler on the UIBinder backed via class ThingyBarUIB.

I realize this 'fails' the second I do thingyBar.getElement().

Any known techniques to get around this i.e. use UiHandler?  reAttach()? 

Thanks!
Roger

No comments:

Post a Comment