ICEfaces
  1. ICEfaces
  2. ICE-5609

ICEfaces 2.0 compat SessionRenderer on non-JSF threads

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0-Alpha3, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEfaces 2.0 compat
    • Affects:
      Compatibility/Configuration

      Description

      ICEfaces 2.0 compat SessionRenderer.render() currently fails when invoked from non-JSF threads.

        Activity

        Hide
        Mircea Toma added a comment -

        Stored a PortableRenderer in a static field to be later used in render calls that are not initiated on JSF threads. The PortableRenderer instance is acquired using a system event listener. The listener is invoked on PostConstructApplicationEvent event which allows the code to get to the FacesContext instance as soon as possible during application startup.

        Show
        Mircea Toma added a comment - Stored a PortableRenderer in a static field to be later used in render calls that are not initiated on JSF threads. The PortableRenderer instance is acquired using a system event listener. The listener is invoked on PostConstructApplicationEvent event which allows the code to get to the FacesContext instance as soon as possible during application startup.
        Hide
        Ted Goddard added a comment -

        Apparently Safari's "Re-open all windows from last session" is capable of assigning JIRAs automatically. (A new way to attack yourself with cross-site scripting.)

        Show
        Ted Goddard added a comment - Apparently Safari's "Re-open all windows from last session" is capable of assigning JIRAs automatically. (A new way to attack yourself with cross-site scripting.)
        Hide
        Ted Goddard added a comment -

        JSF startup is blocked if icepush.jar is not present (PushRenderer must need to classload PushContext). It may be sufficient to keep the PortableRenderer as an Object, or reflection may be required.

        Show
        Ted Goddard added a comment - JSF startup is blocked if icepush.jar is not present (PushRenderer must need to classload PushContext). It may be sufficient to keep the PortableRenderer as an Object, or reflection may be required.
        Hide
        Mircea Toma added a comment -

        Avoid referencing PortableRenderer class in static context so that application still works when ICEpush is not present.

        Show
        Mircea Toma added a comment - Avoid referencing PortableRenderer class in static context so that application still works when ICEpush is not present.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: