| Author |
JSP/JSF/Javascript popup window
|
Jamie Williams
Ranch Hand
Joined: Mar 31, 2006
Posts: 70
|
|
Hi I have a list of categories each with 100's of associated codes. I would like to be able to click on the category as a link and have a popup window appear with all the codes for the category selected. However I have thousands of categories and one page for each isn't exactly practical! Is there some way I can call a method of a bean from the popup window with a parameter (the category name) that I can get from the request url? I was solving this problem before by calling a JSP page by a javascript 'onclick' method which passed as parameter the list of codes to window.open. That works fine for firefox when I have 500 codes, but IE seems to have a lower limit on the length of a url or javascript method parameter or something and it doesn't work when there are lots of codes. Can anyone help with this problem?
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14491
|
|
This sounds like a job for AJAX. As far as JSF components that will let you set up and go, I'm not aware of any yet, but maybe someone here knows something.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
Why don't you look into an autocomplete control? Eric
|
 |
Jamie Williams
Ranch Hand
Joined: Mar 31, 2006
Posts: 70
|
|
autocomplete control? can you tell me more? AJAX is out of the question, I need a quick solution and I don't have time to learn a new technology. All I need to do is call a bean with JSF or JSP, sending a single String parameter, but I can't see any other uses than get/set methods. This was so easy in PHP! I really like JSF but some things just seem impossible or unnecessarily complex.
|
 |
 |
|
|
subject: JSP/JSF/Javascript popup window
|
|
|