January 22, 2013

Accessing Session Scope and Request Scope objects in ADF


We can access the session Scope objects in ADF by using ADFContext class.

The syntax for this is:

ADFContext.getCurrent().getSessionScope().get(obj);

Where obj is the object name configured in the session scope.

In the same way, we can also access the objects in request scope by using the below syntax:

ADFContext.getCurrent().getRequestScope().get(obj);