Erik, Thanks for your help. I got it to work now via the custom Engine now. The approach wasn't working earlier because of my configuration in the .application.
I used this in the .application: <property name="org.apache.tapestry.engine-class" value="com.icg.AppEngine"/> However, this doesn't work. After I put the engine-class here: <application name="ICG_US" engine-class="com.icg.AppEngine"> Then everything is fine. Now I'm really happy and moving nicely along. Thanks again, -Patrick -----Original Message----- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 6:06 PM To: Tapestry users Subject: Re: Is it Possible To Get Propety from within the Global Object On Apr 12, 2005, at 2:52 PM, Patrick Yip wrote: > Is it possible to get property defined in the .application from within > the Global Object? Only via the method you mentioned, passing it in from a CustomEngine.createGlobal() method. > Since the instantiation of the Global object is done by the framework > with a no argument constructor, I want to find a way to create Global > with some initial properties. I tried the createGlobal() via the my > own > Engine. The problem is when the Home page has reference to a Global > object property , it is already too late. I don't understand what you mean by the Home page having a reference to Global. You get Global from calling getGlobal() and that in turn would call createGlobal() if it has not already been created. > Here is what I hope to achive: > Put global property in the .application and have the property > initialize > the Global object. I've done this very thing in several applications. What is the issue you're having with the Home page? Erik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]