File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android 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!!!
I agree. Here's the link:
subject: Help for editable list box
jQuery in Action, 3rd edition