> I am trying to replace a panel with another panel. The replacement > works the first time. The next time I click on the replacement link, I > get an exception. > > "java.lang.IllegalStateException: This method can only be called on a > component that has already been added to its parent."
My guess is that you are referencing the the first panel again. When you replace panel A with panel B, panel A loses it's reference to the parent (which goes to B obviously), so if you were to replace on A again, you get an exception like that. The solution is to reference B rather than A. Eelco --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org