• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refresh datatable

 
RamyaR Ramakrishna
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

you have to use javascript for that problem

Like

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic