Im trying to create one instance of my ServiceManager to be initialized once and used throughout my pages. The initialization of both my FooFactory and the ServiceManager are hairy so I need to pass them through a Wrapper that initializes everything.
What Im trying to do is pass the ASO from the tapestry.state.ApplicationObjects as an object into the StateObjectFactory to be initialized. This is what I have so far but I am getting Unable to convert type 'tapestry.state.ApplicationObjects.servicemanager' to a Java class, either as is, or in package com.myco.weblogin <?xml version="1.0"?> <module id="com.myco.weblogin" version="1.0.0"> <contribution configuration-id="tapestry.state.ApplicationObjects"> <state-object name="servicemanager" scope="application"> <create-instance class="com.myco.weblogin.StaticServiceManager"/> </state-object> <state-object name="foo" scope="application"> <invoke-factory object="service:FooFactory"/> </state-object> </contribution> <service-point id="FooFactory" interface="org.apache.tapestry.engine.state.StateObjectFactory"> <invoke-factory> <construct class="com.myco.weblogin.StoreWrapper"> <set-service property="servletContext" service-id="tapestry.globals.ServletContext"/> <set-object property="serviceManager" value="instance:tapestry.state.ApplicationObjects.servicemanager"/> </construct> </invoke-factory> </service-point> </module> -- View this message in context: http://www.nabble.com/Passing-ApplicationObject-to-BuilderFactory---Tap-4.1.2-tp15450422p15450422.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]