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
; > }
> >> > }
> >> >
> >> > Set it up in web.xml:
> >> >
> >> > app
> >> > path.to.MyApplicationServlet
> >> > 1
> >> >
> >> >
> >> > Then pull ou
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:
.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
Registry directly:
>> >
>> > http://article.gmane.org/gmane.comp.java.tapestry.user/21861/
>> >
>> > HTH
>> >
>> > Ben
>> >
>> > -Original Message-
>> > From: Numa Schmeder [mailto:[EMAIL PROTECTED]
>> > Sent:
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
ApplicationServlet
> > 1
> >
> >
> > Then pull out the registry in your base page:
> > public Registry getRegistry()
> > {
> > return (Registry) ((MyApplicationServlet) getRequestCycle
> > ().getInfrastructure().getRequest().getAttribute
>
gt; > 1
> >
> >
> > Then pull out the registry in your base page:
> > public Registry getRegistry()
> > {
> > return (Registry) ((MyApplicationServlet) getRequestCycle
> > ().getInfrastructure().getRequest().getAttribute
> > ("servlet")).
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
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
: 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
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
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
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
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
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
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
17 matches
Mail list logo