Have both handlers call the same routine

On Dec 16, 2010 7:45 AM, "pieceovcake" <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected]<google-web-toolkit%[email protected]>
.
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 [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.

Reply via email to