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]