You can use whatever you want for the module id (usually your application
name, though) and the version has to have the format 1.0.0 (three
dot-separated version numbers) .

-----Original Message-----
From: Blackwings [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 20, 2006 7:34 AM
To: Tapestry users
Subject: Re: ASO and hivemind.xml

Thanks a lot, but I have a question again: To what, the id in the module
tag, refer? Is it the name of my context? is it app? is it the package where
something (what?) is store? Same question for the version.

Thanks anyway

BW

2006/7/20, Geoff Callender <[EMAIL PROTECTED]>:
>
> BW,
>
> No need to touch hivemind.xml.  Add a file called hivemodule.xml to
> WEB-INF, with content similar to this:
>
> <?xml version="1.0"?>
>
> <module id="jumpstart" version="1.0.0" package="jumpstart.web">
>
>         <!--  ServiceLocator and Visit -->
>
>         <contribution configuration-id="tapestry.state.ApplicationObjects
> ">
>                 <state-object name="serviceLocator" scope="application">
>                         <create-instance class="
> jumpstart.web.base.ServiceLocator"/>
>                 </state-object>
>         </contribution>
>
>         <contribution configuration-id="tapestry.state.ApplicationObjects
> ">
>                 <state-object name="visit" scope="session">
>                         <create-instance class="jumpstart.web.base.Visit
> "/>
>                 </state-object>
>         </contribution>
>
> </module>
>
> In that example, ServiceLocator performs a similar function to the
> typical Global.  Visit is just like the old Visit.  Note that the
> scope of ServiceLocator is "application" and the scope of Visit is
> "session".
>
> Here's an example of them being referenced in a page:
>
>         @InjectState("serviceLocator")
>         public abstract ServiceLocator getServiceLocator();
>
>         @InjectState("visit")
>         // Can't call it getVisit() because it conflicts with a deprecated
> IPage method
>         public abstract Visit getMyVisit();
>
> Hope this helps.
>
> Geoff
> http://tapestry.apache.org/tapestry4.1/QuickStart/contributed.html
>
>
> On 20/07/2006, at 7:58 PM, Blackwings wrote:
>
> > Hi,
> >
> > I found in the document what is the line to add into hivemind.xml
> > file to
> > create an ASO since getGlobal is deprecated. But I didn't find a
> > standard"
> > hivemind.xml file and I have no idea what is mandatory to put in. I
> > just
> > want to declare my ASO object to be able to inject it in my page.
> >
> > So, where can I find a standard hivemind.xml or what do I have to
> > put in to
> > still have my application working normally?
> >
> > Thanks
> >
> > BW
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to