Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Sometimes it is useful to configure multiple FacesServlet instances with some common and some distinct configuration.
      Currently this is not possible - ExternalContext.getInitParameter(name) only provides access to ServletContext init parameters, but not to ServletConfig init parameters.

      web.xml allows <context-param>s within <web-app> but also also <init-param>s within <servlet>.
      The current ExternalContext interface provides no access to Servlet init-params. It would also be problematic to expose Servlet-init-param explicitly since Portlet API would not match.

      A simple solution though would be that ExternalContext.getInitParameter(name) would first consult the Servlet <init-param> and second the web-app <context-param>s.
      It would then also make sense to cache the so resolved parameters on FacesContext to optimize multiple access to the same init-parameter.

      This proposal most likely affects the SPEC - if accepted create a SPEC issue as well.

      regards
      Hanspeter

        Activity

        Hanspeter Duennenberger created issue -
        Manfred Riem made changes -
        Field Original Value New Value
        Fix Version/s 2.2.6 [ 16664 ]
        Manfred Riem made changes -
        Project javaserverfaces [ 10204 ] javaserverfaces-spec-public [ 10222 ]
        Key JAVASERVERFACES-3140 JAVASERVERFACES_SPEC_PUBLIC-1264
        Affects Version/s 2.2.5 [ 16651 ]
        Component/s configuration [ 10545 ]
        Ed Burns made changes -
        Priority Major [ 3 ] Trivial [ 5 ]
        Manfred Riem made changes -
        Assignee Ed Burns [ edburns ]
        Ed Burns made changes -
        Priority Trivial [ 5 ] Minor [ 4 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Hanspeter Duennenberger
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: