Updating Panels with Ajax (is this a proper way of doing so?)

2007-08-30 Thread Francisco Diaz Trepat - gmail
Hi, I have to update the center of the page on a simple site. An earlier version of this app use frames. I want to use panels and ajax. I did this in the prototype: I have a container, that holds the panels (A or B or C or you catch my drift _ ). private StandardPanel m_cPanelToLoad;

Re: Updating Panels with Ajax (is this a proper way of doing so?)

2007-08-30 Thread Gerolf Seitz
i usually do it like this: Panel panel = new StandardPanel(m_cPanelToLoad.getId(), ThisForm, ThisTitle); m_cPanelToLoad.replaceWith(panel); m_cPanelToLoad = panel; target.addComponent(m_cPanelToLoad); if you don't want the language panel to decide which component should be created, but rather

Re: Updating Panels with Ajax (is this a proper way of doing so?)

2007-08-30 Thread Francisco Diaz Trepat - gmail
Great Reply. thanks Gerolf. I'll check it out and let you know. f(t) On 8/30/07, Gerolf Seitz [EMAIL PROTECTED] wrote: i usually do it like this: Panel panel = new StandardPanel(m_cPanelToLoad.getId(), ThisForm, ThisTitle); m_cPanelToLoad.replaceWith(panel); m_cPanelToLoad = panel;