The following statement if (!component.isAuto() && getFlag(FLAG_RENDERING))
in Component-> checkHierarchyChange() returns false when a Behavior is added to the Component.onBeforeRender() phase, but returns true if a Behavior is added by another Behavior as part of it's beforeRender() phase. So new Component () { onBeforeRender() { add(some behavior); } Works. but new Component().add(new AbstractBehavior() { beforeRender(Component c) { c.addBehavior(some behavior); } } doesn't work, as the getFlag(FLAG_RENDERING) returns false in the first case and true in the next case. So in the second case, I get an Exception. Is this an expected behavior or a possible bug ? -- View this message in context: http://www.nabble.com/Possible-BUG---discrepancy-in-component.onBeforeRender-and-IBehavior.beforeRender.-tp17407123p17407123.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]