wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes combo box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 605

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: 605

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: 61095
    
  66

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

Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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://aspose.com/file-tools
 
subject: combo box