Marc,

Take a read at this article:

http://docs.model-glue.com/wiki/ReferenceMaterial/ModelGlueBuiltInEventHandlers


"There are six built-in event-handlers that are commonly used...."

Report back with any questions you may have.


DW





On Tue, Jul 12, 2011 at 8:28 AM, marc <[email protected]> wrote:

> Hello,
>
> In my ModelGlue (Unity) application the user logs in and when authenticated
> gets to the welcome page. I want him/her to be greeted with a welcome
> message "welcome <user>, last visit was on  .... at ...:...:...". This
> string should be shown on every page (not just the 1st page after login)
> until he/she logs out.
>
> The name and lastlogin data are avaliable: I retrieve them when
> authentication is succesfull and store them via a sessionservice object in
> the sessionscope.Since this data is stored in the sessionscope I want to use
> this sessionService object to retrieve it - e.g.
>
> getSessionService().getLastLogin() and
> getSessionService().getUser().getName() from a service
> or
> beans.sessionService.getLastLogin() and
> beans.sessionService.getUser().getName() from  controller.
>
> My question is: where do I call these functions so they are called on every
> request?
>
>    1. Application.cfc onRequestStart()? But then how to retrieve the
>    service object? There is no support for Coldspring or the beans scope 
> there.
>    2. Is there a requestStart() controller function similar to
>    SessionSetup()?
>    3. ...?
>
>
> Thanks,
>
> Marc
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en




-- 
Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to