Monday, January 28, 2013

Re: How to add ChangeHandler to ValueListBox using ui:binder?

ChangeEvent → ValueChangeEvent

On Monday, January 28, 2013 3:08:20 PM UTC+1, membersound wrote:
Hi,

I'm trying to add a ChangeEvent to a ValueListBox using the ui:binder way. But it gives an exception. What do I have to change?

    @UiField(provided = true)
    ValueListBox<Foo> list = new ValueListBox<Foo>(renderer);

    @UiHandler("list")
    void onSelectionChange(ChangeEvent event) {
        //EX: ield 'list' does not have an 'addChangeHandler' method associated.
    }

--
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.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment