Re: When/How to programatically modify a component before render.

2005-10-06 Thread Matthew Wheaton
Hi Ron, I've tried to do what you suggest to no avail. I have a component that takes a parameter "address", and some properties that need initial values based on some values with the object represented by parameter "address". However, when the methods specified in the initial-value parameter of

Re: When/How to programatically modify a component before render.

2005-10-06 Thread Ron Piterman
You don't need to. lets say your parent component P takes a parameter A. you want to manipulate A and pass it to one or more components inside of P (child components, C1..Cx). So, you don't use the A binding directly, instead you use a property in your component class which delivers the manip

RE: When/How to programatically modify a component before render.

2005-10-06 Thread Muralidhar Y.
hi you can do that in your AddressElements component specification itself by declaring the "default-value" to that parameter . Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, Dubai, UAE. Mobile : 00971-50-2256149. http://www.adastrumtech.com http

RE: When/How to programatically modify a component before render.

2005-10-06 Thread Muralidhar Y.
Can you mail the component specification of your custom component. Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, Dubai, UAE. Mobile : 00971-50-2256149. http://www.adastrumtech.com http://www.mercator.aero (Keep Smiling. Be happy All The Time.

Re: When/How to programatically modify a component before render.

2005-10-06 Thread Ivano
Hello once in the render method it's too late to change the properties. Your component could implement org.apache.tapestry.event.PageRenderListener with method pageBeginRender(PageEvent event) { if ( !event.getRequestCycle().isRewinding() ) { initStateCode(); } } the page should au