Ajax Dialog + Persistence

Ajax Dialog + Persistence


Hello,
I have the following problem:
I have a main page (lets call it page1) in which I call via ajax
another page (lets call it page2), this page2 renders ok when the
dialog widget is open.
In the page2 I have some fields that the user must to fill; all this
is ok, when the user close this dialog I can get rightly the values of
the fields.
My problem is that when the user opens the dialog again (for making
some changes in the fields for instance) , no data is there, so the
user must to fill all the data again (which is no desirable).
Is there a way to make the dialog to remember the data?
Is there a way to just hidden the dialog without loading again the
page?
How can I mantain this data in a cache..
Slts