Hmm, we're still using this code in production and it works fine... let me
have a look again.
Here's an actual code snippet from a class we use to wrap our listboxes.
/**
*
*/
public boolean selectListItem(String id) {
NodeList children = this.listBox.getChildNodes();
String curText = ";
boolean found = false;
for (int i=0; i<children.getlength(); i++)=" {<br="/>
Element curChild = (Element)children.item(i);
if (curChild.getAttribute("appdata").equals(id)) {
curText = curChild.getAttribute("label");
this.listBox.setAttribute("value",curText);
found = true;
break;
}
}
this.setDisplayText(curText);
return found;
}
Did you try yours with a very simple list first? (say, making a button
select, rather than rely on the hover at first)
keith