Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-12 Thread James Carman
you can't use annotations and (understandably) don't want to > > >> have to inject the same service on to every single page. On the > > >> other hand there are some alternatives to getting Tapestry > > >> services other than using the Registry directly: > > >> &g

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-11 Thread Jesse Kuhnert
; > } > >> > } > >> > > >> > Set it up in web.xml: > >> > > >> > app > >> > path.to.MyApplicationServlet > >> > 1 > >> > > >> > > >> > Then pull ou

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-11 Thread James Carman
istry directly: >> >> http://article.gmane.org/gmane.comp.java.tapestry.user/21861/ >> >> HTH >> >> Ben >> >> -----Original Message- >> From: Numa Schmeder [mailto:[EMAIL PROTECTED] >> Sent: Friday, February 09, 2007 1:54 PM >> To:

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-11 Thread Numa Schmeder
.comp.java.tapestry.user/21861/ HTH Ben -Original Message- From: Numa Schmeder [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 1:54 PM To: Tapestry users Subject: Re: Migration to Tap4, accessing the hivemind registry without injection Thanks Ben, I am going to try, I fin

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-11 Thread Numa Schmeder
Registry directly: >> > >> > http://article.gmane.org/gmane.comp.java.tapestry.user/21861/ >> > >> > HTH >> > >> > Ben >> > >> > -Original Message- >> > From: Numa Schmeder [mailto:[EMAIL PROTECTED] >> > Sent:

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-11 Thread James Carman
ndably) don't want to >> have to inject the same service on to every single page. On the >> other hand there are some alternatives to getting Tapestry >> services other than using the Registry directly: >> > >> > http://article.gmane.org/gmane.comp.java.tapestry.user/218

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-11 Thread Numa Schmeder
ApplicationServlet > > 1 > > > > > > Then pull out the registry in your base page: > > public Registry getRegistry() > > { > > return (Registry) ((MyApplicationServlet) getRequestCycle > > ().getInfrastructure().getRequest().getAttribute >

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-10 Thread James Carman
gt; > 1 > > > > > > Then pull out the registry in your base page: > > public Registry getRegistry() > > { > > return (Registry) ((MyApplicationServlet) getRequestCycle > > ().getInfrastructure().getRequest().getAttribute > > ("servlet")).

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-10 Thread James Carman
February 09, 2007 1:54 PM To: Tapestry users Subject: Re: Migration to Tap4, accessing the hivemind registry without injection Thanks Ben, I am going to try, I find it a bit of hack. And I find strange that there is no access to the registry. Thanks Numa Le 9 févr. 07 à 20:24, Ben Dotte a éc

RE: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Ben Dotte
tly: http://article.gmane.org/gmane.comp.java.tapestry.user/21861/ HTH Ben -Original Message- From: Numa Schmeder [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 1:54 PM To: Tapestry users Subject: Re: Migration to Tap4, accessing the hivemind registry without injection Thanks Ben, I am

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Numa Schmeder
: Friday, February 09, 2007 1:08 PM To: Tapestry users Subject: Re: Migration to Tap4, accessing the hivemind registry without injection I knew that, but I don't know how to access a context from a Page or from the request cycle. How can you get the servlet context? Thanks, Numa Le 9

RE: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Ben Dotte
g.apache.tapestry.Registry:app"); } Ben -Original Message- From: Numa Schmeder [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 1:08 PM To: Tapestry users Subject: Re: Migration to Tap4, accessing the hivemind registry without injection I knew that, but I don't kno

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Numa Schmeder
I knew that, but I don't know how to access a context from a Page or from the request cycle. How can you get the servlet context? Thanks, Numa Le 9 févr. 07 à 19:49, Shing Hing Man a écrit : A singleton has the advantage of letting you access the registry in non-web pages. In case you did no

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Shing Hing Man
A singleton has the advantage of letting you access the registry in non-web pages. In case you did not know, the registry is created in the ApplicationServlet and stored as a context parameter. // context is the servlet context Registry registry = (Registry) context

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Numa Schmeder
Nop, but isn't an easier way to just access the registry? Le 9 févr. 07 à 19:33, Shing Hing Man a écrit : Have you considered implementing the HiveMind registry as a singleton ? The zebra-hivemind subproject in Zebra does exactly that. http://zebra.berlios.de/ Shing --- Numa Schmeder <[EM

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Shing Hing Man
Have you considered implementing the HiveMind registry as a singleton ? The zebra-hivemind subproject in Zebra does exactly that. http://zebra.berlios.de/ Shing --- Numa Schmeder <[EMAIL PROTECTED]> wrote: > Hello, > > I am migrating an application from tap3 to tap4, I > am hitting a lot

Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Numa Schmeder
Hello, I am migrating an application from tap3 to tap4, I am hitting a lot of problem. One of those is getting a reference to the hivemind registry from java without using injection. I have a base page who used to provide a DAOFactory to all my subclassing pages, now the DAOFactory is in