0

Listbox onClick and onSelect events does not work

asked 2009-06-01 19:32:48 +0800

gyowanny gravatar image gyowanny
283 1 2 6

Hi Folks

I'm trying to put some code into a listbox event in order to detect when the user clicks over the listbox. I have tried onClick and onSelect but it's not working.
Below is a peace of my code:

<listbox id="myList" mold="paging" pageSize="3" width="100%" height="100%">
  <attribute name="onClick">
      boolean desabilita = myWindow.bean == null;
  </attribute>
</listbox>

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-06-01 20:07:54 +0800

gyowanny gravatar image gyowanny
283 1 2 6

updated 2009-06-02 16:32:57 +0800

Dumb ass found the problem!
If the code inside the <attribute> element is java code so it must come into brackets, as shown below:

<listbox id="myList" mold="paging" pageSize="3" width="100%" height="100%">
  <attribute name="onClick">{
      boolean desabilita = myWindow.bean == null;
  }</attribute>
</listbox>

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-06-01 19:32:48 +0800

Seen: 229 times

Last updated: Jun 01 '09

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