This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 15665
    
  15

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....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF Popup from JSP page
 
Similar Threads
selecting a table row with 3 columns and sending it to another page.
regarding refreshing the parent window
Updating the value of Text box
updating ArrayList on parent from child window
Populating values to feilds from the Table