Hello, I have a situation that I am adding to Panel a Component. This component can actually be of several other panels (there's a factory that returns the correct Panel according to an enum). The Main (parent) panel can be changed via ajax. The ajax might change the enum type.
In order to solve it, I am adding the specific (inner) panel in the onBeforeRender method: @Override protected void onBeforeRender() { Component component = myFactory.createSpecificCompnent("myComp", enumValue); add(component); } Is this the best and correct way doing that? Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary