Thursday, September 9, 2010

UIBinder and event model

Hello,

When using UIBinder to tie a piece of html to your widget or panel,
the elements you get will not be connected to the event model right?

So how could I achieve this? If i have a uibinder file looking
something like this:
----
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'>
<header>
<form>
<fieldset ui:field="fieldset">
<legend>Search</legend>
<input type="search" placeholder="Search..." />
</fieldset>
</form>
</header>
</ui:UiBinder>
---
And i want to connect a keypressevent to the <input> tag there, how
can I listen to this? Or "force" gwt compiler to add the event
handling mechanisms to the Input tag?

If not using UIBinder and extending a FocusWidget for instance it
works just like I want it to when using the binder.

Regards
/David

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment