my dog learned polymorphism
The moose likes JSF and the fly likes JSF Popup from JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Popup from JSP page" Watch "JSF Popup from JSP page" New topic

JSF Popup from JSP page

deepak prasee

Joined: Mar 02, 2009
Posts: 7
I need some help in implementing the following requirement.
I got one ordinary jsp page with 2 input type boxes and one link using h ref.
While clicking the link a JSF page should be loaded in popup.
That JSF page should have two text boxes and one table.
2 text boxes should be populated from the value taken from the ordinary jsp page and the table should be populated based on the 2 text boxe values by hitting the database.
Already a method would be written in backing bean of the JSF page.
Please suggest valuable ideas.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Well, as a general rule, I don't like popup windows. For one thing, my browser opens windows in panes, so they don't "pop up". Then again, one reason they don't is because I've got enough windows littering my screen as it is. For pop-up type things I use RichFaces Modal Dialogs, instead.

However, a JSP can open a JSF page. The easiest way to do that is to put the shared data in a session-scope object, have the JSP populate it, and then have the JSF page reference it as a backing bean.

An IDE is no substitute for an Intelligent Developer.
deepak prasee

Joined: Mar 02, 2009
Posts: 7
Thank you Tim..But shifting invoking the JSF page in pop up is challenging....
I agree. Here's the link:
subject: JSF Popup from JSP page
It's not a secret anymore!