0

how to detect the click event of the title of a pannel

asked 2009-05-31 09:22:52 +0800

jimmytan gravatar image jimmytan
60 2

updated 2009-05-31 09:25:40 +0800

Hi, I tried to detect the click event of the title of a pannel. My scenario is that, the pannel includes a listbox which has a list of persons. When user click a row of the list ( a specific person ), then an event will be sent out (say... person_selected_event). When the user click the title of the pannel, then an event will be sent out (say.... pannel_title_click_event ). The real situation is that, when I click a row of the list, both person_selected_event and pannel_title_click_event will be sent out....this is not what I want!!!

I think the reason is that, I implement the onClick$idOfThePannel(..) method which will be invoked once a row of the list clicked. Unfortuntlly, this is not what I need.

Is that possible to implement some thing like onClick$idTitleOfThePannel(..), so that the method only be called while the TITLE is clicked.

Thanks.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-06-01 02:12:58 +0800

hideokidd gravatar image hideokidd
750 1 2

updated 2009-06-01 02:14:45 +0800

Hi,

I have no idea to catch the event,
just a workaround below.

You can create a component (e.g., div) as parent of listbox,
and make a onClick event for the parent component.
thus the click event of panel won't be fired if you click any row of listbox.

BTW,
1.Javascript may help.
2.you could post to zk feature for the problem.
http://sourceforge.net/tracker/?group_id=152762&atid=785194

link publish delete flag offensive edit

answered 2009-06-15 01:54:17 +0800

jimmy gravatar image jimmy
45

this works, cool, thanks

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: 2009-05-31 09:22:52 +0800

Seen: 129 times

Last updated: Jun 15 '09

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