You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by tmarx <ma...@tapestryforums.com> on 2006/01/07 11:47:15 UTC
Injecting DAO classes into the Visit object?
Is it possible to inject DAO classes into the Visit object or is that only
possible to inject the Visit into pages and components?
What about BaseEngine? Can DAO classes be injected into BaseEngine?
For instance I am thinking about just storing a user id within the Visit object and
returning the User object only when neded.....
Thanks!
-------------------- m2f --------------------
Sent from www.TapestryForums.com
Read this topic online here: <<topic_link>>
http://www.tapestryforums.com/viewtopic.php?p=12766#12766
-------------------- m2f --------------------
Re: Injecting DAO classes into the Visit object?
Posted by Raul Raja Martinez <do...@estudiowebs.com>.
Hi
I had a similar problem and I solved it using Hiveutils (formerly
Hivetranse) There is a module in hiveutils that allows you to inject
services into regular POJOS.
I use T4 and it looks like you're in T3 but I think that is possible in
T3 in the same manner since Hiveutils is not aware of Tapestry.
Please refer to a post in this newsgroup with title:
PROBLEM SOLVED | Re: Injecting registry services to POJOS
Best regards.
Raul Raja.
tmarx wrote:
> Is it possible to inject DAO classes into the Visit object or is that only
> possible to inject the Visit into pages and components?
>
> What about BaseEngine? Can DAO classes be injected into BaseEngine?
>
> For instance I am thinking about just storing a user id within the Visit object and
> returning the User object only when neded.....
>
> Thanks!
>
>
> -------------------- m2f --------------------
>
> Sent from www.TapestryForums.com
>
> Read this topic online here: <<topic_link>>
>
> http://www.tapestryforums.com/viewtopic.php?p=12766#12766
>
> -------------------- m2f --------------------
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org