Thanks. It works!
Derick Fernando wrote:
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
--
*Cumquat Information Technology*
De Dreef 19
3706 BR Zeist
T +31 (0)30 - 6940490
F +31 (0)10 - 6940499
http://www.cumquat.nl <http://www.cumquat.nl/>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
M +31 6 22 384 318
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]