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;
//Construct the language panel
add(new AjaxLink("link1") {
public void onClick(AjaxRequestTarget target) {
container.remove(m_cPanelToLoad);
m_cPanelToLoad = new StandardPanel("panelContent", "ThisForm",
"ThisTitle");
container.add(m_cPanelToLoad);
target.addComponent(container);
}
});
It doesn't seem so right. but works fine...
Any sugestions? avoid, "If it works don't fix it", please, I hate it... :-)
f(t)