onClick() called after model is loaded

2008-03-18 Thread Zheng, Xiahong
Is onClick() called during the process of page rendering? My page has some components with visibility controlled by model attributes. If the model is loaded before the onClick() method is called, the page will not render correctly unless I force a reload again to reflect the state change made by

Re: onClick() called after model is loaded

2008-03-18 Thread Igor Vaynberg
visibility of components is checked before onclick for security reasons - eg you should not be able to click a link that is not visible. if you use your model inside isvisible() override it will potentially get loaded with stale data, you have two options: 1) instead of overriding isvisible()