[ https://issues.apache.org/jira/browse/WICKET-627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502851 ]
Alastair Maw edited comment on WICKET-627 at 6/14/07 12:17 PM: --------------------------------------------------------------- We tried making onBeforeRenderChildren protected, but that doesn't help, as I'm still wanting to add a behaviour somewhere, and by the time I run the visitor from onBRC(), they all have their RENDER flag set to TRUE, so I can't add a behaviour to them. was: <AlMaw> So, making onBeforeRenderChildren protected doesn't help. :-( <AlMaw> As I'm wanting to add a behaviour to them somewhere. <AlMaw> And if I do that in the onBeforeRenderChildren() of my containing Form, with an IVisitor, that won't work. <AlMaw> As onBeforeRender() for all the children has to be called first. <AlMaw> And that sets the RENDER flag to true. <AlMaw> So you can't add a behaviour any more. > Can't visit components in a ListView before they're rendered. > ------------------------------------------------------------- > > Key: WICKET-627 > URL: https://issues.apache.org/jira/browse/WICKET-627 > Project: Wicket > Issue Type: Bug > Affects Versions: 1.3.0-beta1 > Reporter: Alastair Maw > Fix For: 1.3.0-beta3 > > > I'm trying to create a Form subclass which automatically adds a Behaviour to > all of its FormComponents using a visitor. The only place to do this is in > the Form's onBeforeRender() method. This works fine, until you put your > FormComponents into a ListView, at which point it doesn't work, because the > ListView children are yet to be created. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.