0

How can I get the button id in java when I click the button

asked 2012-12-03 13:14:08 +0800

aianswer gravatar image aianswer
9

Hi,

when I click the button , my java code wants to catch it's id, how can I get? who can kindly assist? thanks!

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-12-03 15:26:07 +0800

longdv1208 gravatar image longdv1208
98 4

public void onClick$btnSave(Event event) {
event.getTarget().getId() // get id button btnSave
}

link publish delete flag offensive edit

answered 2012-12-03 16:13:20 +0800

aianswer gravatar image aianswer
9

okay, thanks for your suggestion, let me have a try!

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-12-03 13:14:08 +0800

Seen: 64 times

Last updated: Dec 03 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More