File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes combo box Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "combo box" Watch "combo box" New topic
Author

combo box

yarlagadda rajesh
Greenhorn

Joined: Feb 23, 2009
Posts: 7
how to get a combo box in jsp which allows editing as well as selecting with in a single box..?


regards,
yarlagadda rajesh
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 576

JSP can't offer you a view component that is not already part of the standard HTML.

To get a combo box you'll have to use some Java Script tricks or try getting a JSF component which supports such features.

A couple of Jquery plugins that could help you are --> Flexbox and Combo Box.


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
yarlagadda rajesh
Greenhorn

Joined: Feb 23, 2009
Posts: 7
thank you for your reply
but i want to place my result set values into combo box the link what you are providing contains static values declared in an array of java script
but my requirement is to place the result set values into combo box
Dhruva Mistry
Ranch Hand

Joined: Nov 21, 2008
Posts: 67

yarlagadda rajesh wrote:thank you for your reply
but i want to place my result set values into combo box the link what you are providing contains static values declared in an array of java script
but my requirement is to place the result set values into combo box


well, in jsp page, you can put HTML code for combo box like:



hoping to be helpful to you


Dhruva
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 576

dhruva mistry wrote:
well, in jsp page, you can put HTML code for combo box like:

<form name = "combo">
<select name = "combobox" onFocus=""> //if any javascript function you need to call


Umm ...This would give a drop down select box and not a combo box.
Yes you can combine this technique with any of the Java Script libraries that turn a simple select box to a combo box.


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

Repeat after me: an HTML <select> is not a "combo box".

Please read this for more information.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Dhruva Mistry
Ranch Hand

Joined: Nov 21, 2008
Posts: 67

Bear Bibeault wrote:Repeat after me: an HTML <select> is not a "combo box".

Please read this for more information.


oops
thanks for teaching me this thing

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: combo box
 
Similar Threads
Separator in combo box
JComobBox mouse problem
key listener for editable combo box.
combo box length
JComboBox Problem...Help