ICEfaces
  1. ICEfaces
  2. ICE-2021

ServletExternalContext requires invalidate method for Seam

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Seam

      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);
      }
      }

        Issue Links

          Activity

          Hide
          Mircea Toma added a comment -

          Make intercepting class 'public' since anonymous classes have 'package' access.

          Show
          Mircea Toma added a comment - Make intercepting class 'public' since anonymous classes have 'package' access.

            People

            • Assignee:
              Unassigned
              Reporter:
              Judy Guglielmin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: