Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1246

Make ServletContext available during startup

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 1.2.1.GA
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Any

      Description

      pages.xml will not be found by the resource loader when the Pages component is @Created during startup ie outside a JSF request. One of my components that queries the Pages component is causing the component to be created and look for its pages outside a JSF request.

      The only resource lookup that can succeed for something in WEB-INF is the ExternalContext.getResource() but this is not available outside a JSF request.

      Using ServletContext.getResource() will work instead however this is not portable to Portlets etc.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                quilleashm Mike Quilleash
              • Votes:
                2 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: