Create a base page class and use then get the IRequestCycle and use
getInfrastructure().getApplicationStateManager() to get your aso.
Then just make your other pages extend this class.
Hope that helps.
Martijn Hinten wrote:
How can this be done: I need access to a certain "UserInfo" object on
all of my pages. In all of my page classes I want to have access to this
ASO, via getUserInfo(). Do I have to declare the ASO in *all* of my
.page files? I do not want to use annotations (well, in fact I do want
to use them, but my container does no run on java 1.5, sigh).
What I actually am looking for is some way to make a specific ASO
accessible to all of my pages without the need to inject it in all of my
.page files (which is error-prone, especially in a multi-developer
environment).
I was actually hoping for some way to use <inject> in the global
application properties file, and that Tapestry then would implement any
abstract getMyAso() in my page classes.
Keep up the good work Howard!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__________ NOD32 1.1252 (20051013) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
.........................................
Derick Fernando
Lead Architect
[EMAIL PROTECTED]
(323) 314-9593
http://www.thelabllc.com
Content is for intended recipient only.
Copyright 2001-2005, The Lab, LLC
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]