Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

combo box

 
yarlagadda rajesh
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to get a combo box in jsp which allows editing as well as selecting with in a single box..?
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
yarlagadda rajesh
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 67
Eclipse IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Repeat after me: an HTML <select> is not a "combo box".

Please read this for more information.
 
Dhruva Mistry
Ranch Hand
Posts: 67
Eclipse IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic