permaculture playing cards
The moose likes JSF and the fly likes Refresh datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Refresh datatable" Watch "Refresh datatable" New topic

Refresh datatable

RamyaR Ramakrishna

Joined: Apr 09, 2008
Posts: 4
When a new modal window is opened for add/edit/delete from a datatable the parent window is not getting refreshed. Once in the modal window save button is clicked it should close the window, update the db and refresh the datatable in the parent window.
Trying in the javascript to refresh the parent window went in vein since it first executes the javascript then adds it in the db..
Is there any alternative solution to rerender the datatable after closing the modal window.
venkata swamymora
Ranch Hand

Joined: Aug 06, 2007
Posts: 33

you have to use javascript for that problem


take one jsp page in that page

write this code

you have to redirect your modal window page to this page

this code will refresh the parent page and closes the popup window

mention navigation in faces-config.xml file
I agree. Here's the link:
subject: Refresh datatable
It's not a secret anymore!