Thursday, November 14, 2013

Re: Should UiBinder support @UiHandler for Elements?

Hi Justin, 
I just started working with GWT and I was wondering if you ever found a solution to this problem?
I would VERY MUCH appreciate some help because I have been trying for at least 2 weeks to find a workaround to not using widgets at all in my GWT application and I am pretty much stuck here... 



On Monday, July 16, 2012 7:06:58 PM UTC-5, Justin Santa Barbara wrote:
I'm experimenting with writing my UiBinders in relatively pure HTML (with Twitter Bootstrap), rather than using Widgets everywhere.  My motivation is more about being "designer friendly" than performance etc.

I've had some success manually overriding onBrowserEvent.  However, inspired by UiRenderer, and looking at the UiBinder generator code, it looks like it should be possible to use @UiHandler and include onBrowserEvent in the interface.  When I try it, I still get the normal error though: there's no addClickHandler method on a generic Element.

Has anyone got UiHandler to work with Elements in UiBinder?  Is the code currently in the UiBinder generator really intended for use only by UiRenderer?

Thanks,
Justin

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment