• Post Reply Bookmark Topic Watch Topic
  • New Topic

popup window in JSF

 
frank sun
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a question about JSF.
the below is the operation flow description.

Page A: click "create" button, the system calls the service to create a record and then forward to the newly created record Page B, for user to add more information of this newly created record.

Page B: has a link, when being clicked, it pops up a new window, Page C, and the Page C accept the parameters from the Page B, user fills in some data and click the "save" button in Page C, the window(Page C) closes itself. meantime, the Page B should refresh itself to show the data created in Page C.

My way to solve this problem is: in Page B, when user click the Link to pop up the Page C, it will call a javascript function to open the Page C, like this:
but, when the user click "save" in Page C to save the data in Page C and close itself, the Page B should refresh itself. How to implement it?

regards!
 
Rick Beaver
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in page C


stick that in the onClick event for your save button - replacing pageb with the actual url of your page b
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an example to do it in the "Core JavaServer Faces" by Geary and Hosrstmann, pp. 587-595.
 
vikram s
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use a javascript call. Something like this in the pop-up page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!