• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

combo box

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..?
 
Ranch Hand
Posts: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 67
Mac Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Have you no shame? Have you no decency? Have you no tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic