Re: The better way tp add component directly

2010-05-03 Thread Sven Meier
.n4.nabble.com/The-better-way-tp-add-component-directly-tp2122805p2123830.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e

The better way tp add component directly

2010-05-02 Thread Eyal Golan
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

Re: The better way tp add component directly

2010-05-02 Thread Uwe Schäfer
Am 02.05.2010 15:44, schrieb Eyal Golan: The Main (parent) panel can be changed via ajax. The ajax might change the enum type. if you change it at runtime, would you not want to replace, instead of add? cu uwe - To

Re: The better way tp add component directly

2010-05-02 Thread Eyal Golan
actually we do call the addOrReplace method (I copied it incorrectly). However, the question remains, is there a different way of doing it other than in the onBeforeRender ? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P

Re: The better way tp add component directly

2010-05-02 Thread Erik van Oosten
Hi Eyal, I think that the best time to execute this code is inside the Ajax callback method. Perhaps you'll need to set up some kind of notification (event) mechanism. Regards, Erik. Op 02-05-10 16:25, Eyal Golan schreef: actually we do call the addOrReplace method (I copied it