This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

JSF Popup from JSP page

deepak prasee
Greenhorn

Joined: Mar 02, 2009
Posts: 7
Hi
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: 16091
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
deepak prasee
Greenhorn

Joined: Mar 02, 2009
Posts: 7
Thank you Tim..But shifting invoking the JSF page in pop up is challenging....
 
Don't get me started about those stupid light bulbs.
 
subject: JSF Popup from JSP page