Re: Ajax in popup update to parent page?

2008-03-26 Thread Casey McGuire
Johan Compagner wrote: sharing the same model is also dangerous What you should do is in the onSubmit of the ajaxbutton in the second page get the first page (hold on to it somehow that doesn't matter) and then do page.getModel().setObject(x) johan Thanks. Will give this a go. -

Re: Ajax in popup update to parent page?

2008-03-25 Thread Maurice Marrink
On Tue, Mar 25, 2008 at 3:31 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > sharing the same model is also dangerous > Right, because of the duplicates you can get when the pages are serialized and deserialized. Thanks for pointing that out Johan. Maurice ---

Re: Ajax in popup update to parent page?

2008-03-25 Thread Johan Compagner
sharing the same model is also dangerous What you should do is in the onSubmit of the ajaxbutton in the second page get the first page (hold on to it somehow that doesn't matter) and then do page.getModel().setObject(x) johan On Tue, Mar 25, 2008 at 3:26 PM, Maurice Marrink <[EMAIL PROTECTED]

Re: Ajax in popup update to parent page?

2008-03-25 Thread Maurice Marrink
You can not share any component between 2 or more pages if you add a component to one page it is removed from the other page. What you should do instead is add a new instance of the component to each page and let the components share the same model. If you then update the model and let ajax repaint

Ajax in popup update to parent page?

2008-03-25 Thread Casey McGuire
Am I even close to doing this correctly? I have two pages and one panel. A parent page and a popup page. Both pages contain the Panel. The popup page also contains a Form with an Ajax button. When I click this button, I want it to update the TimePanel on both pages. When the parent launc