Re: How do i implement in a ListBox a select options trick I do in HTML

2010-05-29 Thread Stefan Bachert
Hi Rob, just use css. There is a selector for the first item (class:first- child). When css3 is acceptable to you, more selectors are available. An other way may be to give the first option a dedicated class. However, GWT does not make it easy to do so. Stefan Bachert http://gwtworld.de On 28

Re: How do i implement in a ListBox a select options trick I do in HTML

2010-05-29 Thread Thomas Broyer
On 28 mai, 20:24, Rob Tanner caspersg...@gmail.com wrote: I'm rewriting some existing apps using GWT and I've come across a GUI issue.  In many cases where I have used a select element as a pull down menu (only 1 item visible at a time), I leave the first item empty and disabled.  The user

How do i implement in a ListBox a select options trick I do in HTML

2010-05-28 Thread Rob Tanner
I'm rewriting some existing apps using GWT and I've come across a GUI issue. In many cases where I have used a select element as a pull down menu (only 1 item visible at a time), I leave the first item empty and disabled. The user has to choose a different option and he/ she cannot go back to

Re: How do i implement in a ListBox a select options trick I do in HTML

2010-05-28 Thread leslie
I don't know if it is possible to disable the selection of an index value other than programmatically. You could write a small ChangeHandler for the ListBox and in the onChange method, check the selected index of the ListBox. If it's 0, then set it to some other value like 1. Just a thought.