wood burning stoves*
The moose likes JSP and the fly likes Help for editable list box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Help for editable list box" Watch "Help for editable list box" New topic

Help for editable list box

Sree Mami
Ranch Hand

Joined: Jul 13, 2006
Posts: 75
Hi all

I am designing a web application in java using JSP's/Servlets, where I need to have some list elements to be set to editable. How can I make list boxes editable(Similar to the Address bar of our browser's)? What are the standards in designing web applications? How can I achieve that functionality.

Initially I thought of using text fields below List boxes but as my form is too long I don't want to use these text fields.

Please clarify me about using Editable List box..
Scheepers de Bruin
Ranch Hand

Joined: Jul 19, 2005
Posts: 99
There is no such element in HTML.

If you need the functionality, you _have_ to fake it.

You might make a hidden text field that lies on top of a normal select, and when the select is clicked twice (NOT double clicked - clicked, and then after a pause is clicked again), show the textbox populated with the select's value.

When the textbox loses focus, hide it again.

Hope it helps...
[ October 17, 2006: Message edited by: Scheepers de Bruin ]

We're doomed!!<br />Yay!!!<br />No that's bad Girr!!<br />Yay!!!
wood burning stoves
subject: Help for editable list box
Similar Threads
How to add new text boxes and check boxes dynamically when clicking on button in JSF
question about down arrow key in swing
Help needed in javascript coding
List box problem
Auto tabbing among text fields created with logic:iterate