Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form to search bean

 
Danilo Dadonas
Ranch Hand
Posts: 59
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all. There is a form in my web application to submit the orders. One attribute of the bean order is customer. Today, the user select the user in a combo box:


How can I create something like a popup that the user can search the customer in a table (or something) just clicking a button in the form?

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Danilo Dadonas:
Today, the user select the user in a combo box:
A select element is not a "combo box". Please read this for more information.

How can I create something like a popup that the user can search the customer in a table (or something) just clicking a button in the form?
That's more of a JavaScript question than a JSP one. I've transferred this post accordingly.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to open the form in a new window, use window.open and load the JSP with search page. If you want to be all Web 2.0 about it, you can create a positioned div with a high z-index to float it above the page and either have it pre-loaded with the search form, or grab it from the server using Ajax.
 
Danilo Dadonas
Ranch Hand
Posts: 59
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, Bear. It helps me. I'll try.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic