*
The moose likes HTML, CSS and JavaScript and the fly likes Form to search bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Form to search bean" Watch "Form to search bean" New topic
Author

Form to search bean

Danilo Dadonas
Ranch Hand

Joined: Aug 24, 2007
Posts: 59

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.


Dadonas<br /> <br />Don't gain the world and lose your soul.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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

Joined: Aug 24, 2007
Posts: 59

Ok, Bear. It helps me. I'll try.
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Form to search bean
 
Similar Threads
Map dynamically generated HTML select(s) control in form bean
sorting in bean objects
assigning a function's result to a form field
Simple struts question - Use action to retrieve data from db
Problem creating listbox from DB