Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
Howard, thanks for the advice. I have to use JDK1.4 so I cannot use annotations. My real problem is to understand how I can instanciate an object at the context load, in the ApplicationServlet via inheritance and to make this object available to my pages. As I already explained, getGlobal is Depr

Re: ASO and hivemind.xml

2006-07-20 Thread Howard Lewis Ship
On 7/20/06, Geoff Callender <[EMAIL PROTECTED]> wrote: Others might chime in because I'm no expert on this, but this what I believe to be true... - The module id and version can be arbitrary. However, to avoid name clashes you can use the id as a qualifier, eg. @InjectState("jumpstart:

RE: ASO and hivemind.xml

2006-07-20 Thread James Carman
Have you tried using a StateObjectFactory? -Original Message- From: Blackwings [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 9:07 AM To: Tapestry users Subject: Re: ASO and hivemind.xml The situation is : I create class that extends ApplicationServlet and I specify it as the

Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
Thanks both of you for this precision ;) My second question is more about how to create/instantiate a "application object" at the ApplicationServlet level and make this instance available for all. I think the hivemodule.xml create a new instance of my custom ApplicationServlet and didn't use the

Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
The situation is : I create class that extends ApplicationServlet and I specify it as the tapestry main servlet in web.xml. In this class I call a class that initialise some "application objects" such as list of element common to everybody from the database. My class also set a bean member and im

Re: ASO and hivemind.xml

2006-07-20 Thread Geoff Callender
Others might chime in because I'm no expert on this, but this what I believe to be true... - The module id and version can be arbitrary. However, to avoid name clashes you can use the id as a qualifier, eg. @InjectState("jumpstart: serviceLocator") So the id forms a namespace. Wh

RE: ASO and hivemind.xml

2006-07-20 Thread James Carman
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

Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
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 tou

Re: ASO and hivemind.xml

2006-07-20 Thread Geoff Callender
BW, No need to touch hivemind.xml. Add a file called hivemodule.xml to WEB-INF, with content similar to this:

ASO and hivemind.xml

2006-07-20 Thread Blackwings
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,