Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

refresh parent page from child page in ModalDialog

 
Niraj Jamun
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have three jsps

parent.jsp
child.jsp
subchild.jsp



In parent.jsp i have button, on click of this button i open child.jsp in modaldialog popup

In Child.jsp i have 3 text fields, table which is collection(arraylist) and Edit button
i select one of record from collection and click on edit button,then i open subchild.jsp again in modaldialog popup

In subchild.jsp i have 4 text fields, ok and cancel button
data in subchild.jsp is from collection of child.jsp

here now in subchild.jsp on click of ok i have to submit this textfield values and child.jsp should get refresh
and the collection data should get updated
how to achieve this?
 
Shankar Tanikella
Ranch Hand
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Niraj,

1. try window.opener.reload() from javascript on submit from the child page - but for this a browser specific alert message for refreshing the content is displayed

2. try to submit the action of the parent page from the child window on submit [the parent refreshes] and then close the child window. Something like this


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic