updating table in calling page after closing a dialog
Daniel Conner
Ranch Hand
Joined: Jan 25, 2007
Posts: 47
posted
0
I have a JSF page that has a table full of data... In the table, there is a create new record button. By clicking on the create new record button a dialog is opened. Once you add the record and close the dialog box, the new record is added to the database, but the update is not shown in the table... Any idea on how to have the update to be shown in the table after the dialog is closed?
Eugene Abarquez
Ranch Hand
Joined: May 18, 2006
Posts: 211
posted
0
By dialog box do you mean a javascript dialog box? Did you try refreshing the page if it shows the new added record? You might have to find a way to do a page refresh programmatically after you close the dialog.
There's so much to learn in this industry, and not everybody has the necessary interest.
Remko Strating
Ranch Hand
Joined: Dec 28, 2006
Posts: 893
posted
0
Just use a Ajax-request after you have done the update so the user wouldn't know that you're getting new values from the server.
IIRC, I had a similar problem, my solution: after the dialog is submitted (so the data is persisted) I send a "refresh" to the main page through javascript.