• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

refresh parent page from child page in ModalDialog

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 329
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic