the entire state change thing is bit out dated. Why do you need to change visibility during render? I think the problem here is possible inconsistency. If you hide component before it has been rendered it will not render. But if you hide it after nothing will change.
-Matej On Thu, Sep 24, 2009 at 11:36 PM, Juergen Donnerstag <[email protected]> wrote: > Hi, > > question to the experts: If called during the render phase > Component.setVisible() will throw an exception saying "Cannot modify > component hierarchy after render phase has started (page version cant > change then anymore)"); > > That is because Component.setVisible() -> > Page.componentStateChanging(..) -> > versionManager.componentStateChanging(change), with > SecondLevelCachePageVersionManager being the default version manager > implementation. Its implementation of componentStateChanging() however > is empty. Thus it should actually be possible to make that change > during the render phase, correct? > > Is there anything I'm missing here? > > Thanks for your help > Juergen >
