Search in sources :

Example 1 with CleanupRender

use of org.apache.tapestry5.annotations.CleanupRender in project flowlogix by flowlogix.

the class SessionTracker method setSession.

@CleanupRender
private void setSession() {
    if (rg.getRequest().isXHR() == false) {
        Session session = rg.getRequest().getSession(false);
        boolean hasSession = session != null;
        if (hasSession == true) {
            SessionTrackerUtil.setPageSession(rg.getActivePageName(), session);
        }
    }
}
Also used : Session(org.apache.tapestry5.services.Session) CleanupRender(org.apache.tapestry5.annotations.CleanupRender)

Aggregations

CleanupRender (org.apache.tapestry5.annotations.CleanupRender)1 Session (org.apache.tapestry5.services.Session)1