And, as usual, twitter ends up being faster.  Thanks Igor. 8)

Answer: none of the above (below?).  Call override onConfigure() and call 
setVisible() from there.

On Nov 11, 2011, at 4:14 PM, Adam Gray wrote:

> Recently some co-workers and I started questioning what is the (most) correct 
> method for determining component visibility.  In the past we've gone from 
> calling setVisible() to overriding isVisible() and now are finding some 
> people pointed to using setVisibilityAllowed() in onBeforeRender while 
> override callOnBeforeRenderIfNotVisible() to return true.  Clearly, there are 
> some pitfalls/gotchas to each method, but we're trying to develop a clean and 
> consistent codebase (or rather, trying to make a dirty and inconsistent 
> codebase less so).  What is the intended, preferred, or rules-of-thumb for 
> how to accomplish this?  Is some combination of these methods the inevitable 
> result, or is there a consistent method to this?


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to