Jennifer,

ListBox is just a <select> element so you're right, you can't set the
selected value to a value that isn't an <option>.

You might be interested in the SuggestBox from the core library or the
DropDownListBox from the GWT Incubator. I also experimented with a
ComboBox implementation in my SimpleGWT project.

Relevant links:

http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/SuggestBox.html
http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=DropDownListBox
http://code.google.com/p/simple-gwt/wiki/ComboBoxModule

- Isaac


On Fri, Jul 10, 2009 at 3:21 PM, JAppetta<[email protected]> wrote:
>
> From what I can tell, there doesn't seem to be a way to set initial
> text in the ListBox that isn't part of the items that were added to
> the list (I was looking for the functionality of an  editable
> JComboBox). Any thoughts as to other open-source libraries that might
> have such a component? I would like the initial display to say
> something like "select an item" where "select an item" is not actually
> part of the list.
>
>
> Thanks,
> Jennifer
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to