The value of UIHandler<http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/uibinder/client/UiHandler.html> is of type String[]. Just pass your arguments as an array. It's as "peace of cake" as reading the docs ;-)
@UiHandler({"streetName", "streetNumber"}) Regards, Andreas 2010/12/16 Jeff Schwartz <jefftschwa...@gmail.com> > Have both handlers call the same routine > > On Dec 16, 2010 7:45 AM, "pieceovcake" <bira...@gmail.com> wrote: > > this works great > > @UiHandler("streetName") > void handleStreetNameKeyPress(KeyPressEvent e) { > // code > } > > but i want to execute the same handleStreetNameKeyPress triggered from > another field on the page > something like this > > @UiHandler("streetNumber") > @UiHandler("streetName") > void handleStreetNameKeyPress(KeyPressEvent e) { > // code > } > > how do i write this? > > > > > > -- > 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<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > 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<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- 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.