I'd like to add a ChangeHandler to a SelectElement, instead of turning
it into a ListBox. I've tried ListBox.wrap, but that gets an assertion
since it is not attached to the RootPanel. It seems you could do a
JSNI call to but I've not figured this out yet.

Here is a small sample to under stand.

Sample.ui.xml

<HTMLPanel>
<table>
<tr><td>Needs OnChange:<g:SelectElement ui:field=needsOnChange
name=a></td></tr>
<tr><td>Without OnChange:<g:SelectElement ui:field=noOnChange name=a></
td></tr>
</table>
</HTMLPanel>

Sample.java
class Sample {

@UiField SelectElement needsOnChange;
@UiFiled SelectElement noOnChange;

:
:
}

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to