Details
Description
The Lifecycle Class of Seam requires our ServletExternalContext to have a public accessor to invalidate the session.
* Invalidate the session, no matter what kind of session it is
* (portlet or servlet). Why is this method not on ExternalContext?!
* Oh boy, those crazy rascals in the JSF EG...
*/
private static void invalidateSession(ExternalContext externalContext)
{
Object session = externalContext.getSession(false);
if (session!=null)
{
try
{
session.getClass().getMethod("invalidate").invoke(session);
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}
* Invalidate the session, no matter what kind of session it is
* (portlet or servlet). Why is this method not on ExternalContext?!
* Oh boy, those crazy rascals in the JSF EG...
*/
private static void invalidateSession(ExternalContext externalContext)
{
Object session = externalContext.getSession(false);
if (session!=null)
{
try
{
session.getClass().getMethod("invalidate").invoke(session);
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}
Issue Links
- duplicates
-
ICE-1967 Wrapping session objects in anonymous classes kills calls by introspection
- Closed
Activity
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #14688 | Mon Aug 20 12:17:34 MDT 2007 | mircea.toma | Make intercepting class 'public' since anonymous classes have 'package' access -- |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/ServletExternalContext.java
|
Judy Guglielmin
created issue -
Judy Guglielmin
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Mircea Toma [ mircea.toma ] |
Mircea Toma
made changes -
Mircea Toma
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 1.6.1 [ 10070 ] | |
Affects Version/s | 1.6 [ 10031 ] | |
Affects Version/s | 1.6.1 [ 10070 ] | |
Security | Private [ 10001 ] | |
Assignee | Mircea Toma [ mircea.toma ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Make intercepting class 'public' since anonymous classes have 'package' access.