aspose file tools
The moose likes JSF and the fly likes JSP/JSF/Javascript popup window Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "JSP/JSF/Javascript popup window" Watch "JSP/JSF/Javascript popup window" New topic
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
    
    7

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
    
    6
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP/JSF/Javascript popup window
 
Similar Threads
invoking servlet on body unLoad( )
Looking for ideas/discussion on "Best Approach"
I'm totally confused over this one....
Actions and Action Forms
Database Access Repeated Each Time