aspose file tools*
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Help for editable list box" Watch "Help for editable list box" New topic
Author

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!!!
 
Consider Paul's rocket mass heater.
 
subject: Help for editable list box