Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF Popup from JSP page

 
deepak prasee
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18160
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
deepak prasee
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Tim..But shifting invoking the JSF page in pop up is challenging....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic