Howard, thanks for ur reply..but still my doubt is.. I can understand if the Component was to be Rendered, the pagebeingrender method being fired. But why the method is fired, if the component is NOT going to be rendered ? HTML just has a reference to that Component inside a IF block, so is that line enough to trigger the pageBeginRender of the component ?
Thanks, Sunil Howard Lewis Ship wrote: > > This is normal. There are most specific methods that get called in the > lifecycle of the individual component. > > pageBeginRender() means the Page is beginning to render, long before any > of > the components render. > > On 10/1/07, sunilmanu <[EMAIL PROTECTED]> wrote: >> >> >> Hello Everyone, >> >> We are using Tapestry 4.0.2 . Recently we noticed a following issue : >> >> We have a HTML page that has multiple COMPONENTS but are in IF >> conditional >> block. No matter how the condition is evaluated to TRUE /FALSE, the >> Components are getting called i.e. the PAGEBEGINRENDER method is being >> called eventhough they are NOT rendered !! >> >> HTML >> ===== >> >> >> >> >> >> >> >> >> >> >> >> In the above piece, it renders properly in the browser but the >> PAGEBEGINRENDER method is fired 3 times even if the Condition is FALSE. >> >> We can definitely pass one more parameter to the component telling it >> whether to process the iteration or not but is there a better way to >> handle >> this unwanted Component initialization ?? >> >> Thanks, >> Sunil >> >> -- >> View this message in context: >> http://www.nabble.com/T4%3A-Components-in-Page-get-Initialized-even-if-its-in-IF-condition-block---tf4550131.html#a12984881 >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Howard M. Lewis Ship > Partner and Senior Architect at Feature50 > > Creator Apache Tapestry and Apache HiveMind > > -- View this message in context: http://www.nabble.com/T4%3A-Components-in-Page-get-Initialized-even-if-its-in-IF-condition-block---tf4550131.html#a12985833 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]