On 16 juil, 20:57, rvns-pats <[email protected]> wrote: > Nevermind, i figured out the issue.. > > [CODE] > public HandlerRegistration > addSelectionHandler(SelectionHandler<Integer> handler) { > return tabPanel.addSelectionHandler(handler); > } > > [/CODE]
You'd rather change your getTabSelected() method to return the tabPanel, because as you did it, the event's getSource() will be the tabPanel, not the object returned by getTabSelected(), i.e. not the object you added the handler to. It's no big deal, but it might hit you in a few months from now and you won't understand why event.getSource() != view.getTabSelected()... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
