Howard Lewis Ship wrote:
getVisit() and getGlobal() work exactly the same in 4.0 as in 3.0.
I'm sorry but i didn't understand. What does that have to do with this
issue ?
The scenario you describe is a great reasont to move towards annotations.
I understand that, but since annotations will problably only come in
Magritte(5.0) what do you think it's the best approach for this now ?
Thanks
Hugo
On 6/1/05, Hugo Palma <[EMAIL PROTECTED]> wrote:
Maybe i'm not understanding this correctly but it seems to me that the
behaviour i've described is quite essential to most applications. As an
example, most applications have a base page class that implements the
pageValidate method for performing authorization checks. These usually
involve database access, so as usual the code that does the validation
should be in a hivemind service.
If i understood correctly, for this approach to work now i would have to
inject the service in every single page of my application, right ? If
so, i think this is a very poor way of doing things.
I thought about accessing the hivemind registry directly from the base
page class so that i could use them directly just for this base page but
the access to the ServletContext has been deprecated.
Is there any other way around this ?
Thanks
Hugo
Howard Lewis Ship wrote:
No, those are still hard-wired.
On 5/25/05, Hugo Palma <[EMAIL PROTECTED]> wrote:
In 4.0 we are supposed to inject the visit and global objects as
page/component properties where needed. But what if i need them in every
page ?
I need the visit object in every page because i use it to check if the
user is logged on. I do this in a base class that all page classes
extend. I don't want to have to write "inject" element in every single
page i create. Is there anyway i can do this ?
Cheers
Hugo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]