-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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>
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>
Asked: 2009-06-01 19:32:48 +0800
Seen: 229 times
Last updated: Jun 01 '09