Affects Version/s: None
Fix Version/s: None
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.
|Field||Original Value||New Value|
|Fix Version/s||2.2.6 [ 16664 ]|
|Priority||Major [ 3 ]||Trivial [ 5 ]|
|Assignee||Ed Burns [ edburns ]|
|Priority||Trivial [ 5 ]||Minor [ 4 ]|