Hi Haulyn, if you call
currentPanel.replaceWith(targetPanel);
an got
java.lang.IllegalStateException: This method can only be called on a
component that has already been added to its parent.
the only thing that can cause that exception is: currentPanel hasn't an
parent.
Work direct with the
Hi, Pedro,
after debug, I found the problem, and I add this line before my code:
this.getParent().addOrReplace(currentPanel),
this line resolve the problem.
Thanks :)
On Mon, Sep 28, 2009 at 7:25 PM, Pedro Santos pedros...@gmail.com wrote:
Hi Haulyn, if you call
Hi, all
I design a component for display a navigation bar with panel swap tech.
I define a Panel as the name of currentPanel and use DashboardPanel to
instance it., and define a ListPanel to generate the navigation bar.
Other people will transfer the list to my component, and when the Link be