Thanks, it works that way.
Schulte Marcus <[EMAIL PROTECTED]> wrote: Here's what I use. Both the factory
as well as the ASO itself take a
constructor parameter.
interface="org.apache.tapestry.engine.state.StateObjectFactory">
> -----Original Message-----
> From: Oscar Picasso [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 21, 2006 2:48 PM
> To: [email protected]
> Subject: State object and hivemind trouble
>
>
> Hi,
>
> I am still trying to understand how to configure an
> application state object in hivemind.
>
> I have an AccessManagerProvider class with a two parameters
> constructor. Currently it is configured as a service and
> injected into the pages that need it.
>
> It works fine.
>
> I find more appropriate to use this same class as an
> application state object but I am not able to find the right
> hivemind configuration.
> - if I use the same invoke-factory that I use with the
> service I get an Exception.
> - I have tried to implement a StateObjectFactory which create
> the object and configure it with:
>
> service-id="org.jop.web.DaoManagerProviderStateObjectFactory">
> but I get another Exception:
> ...Attribute 'service-id' is not defined in the schema.
> Attribute 'object' is required but no value was provided.
>
> I am lost here.
>
> Can someone give me a complete example of how to configure an
> application state object with a constructor that takes (a)
> parameter(s)?
>
> Thanks.
>
> Oscar
>
> Below the service hivemind fragment that works fine.
>
> ...
>
> interface="org.jop.dao.DaoManagerProvider">
>
>
>
>
>
>
> ProductionDomain
> 10
>
>
>
> ...
>
>
>
> ---------------------------------
> Yahoo! Mail
> Use Photomail to share photos without annoying attachments.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Brings words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.