FacesConfigurator configures FacesContextFactories in the wrong order
---------------------------------------------------------------------
Key: MYFACES-2421
URL: https://issues.apache.org/jira/browse/MYFACES-2421
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 1.2.7, 1.2.6, 1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.0
Environment: ALL
Reporter: Hampus Wingren
The class FacesConfigurator which configures the JSF factories does this in the
wrong order. There is no way of using the default FacesContextFactoryImpl of
myfaces if you've got another implementation of the FacesContextFactory on the
classpath. The FacesConfigurator configures the factories from
standard-faces-config.xml first which enables the default factory
implementations.After that, the classpath is consulted and all factory
implementations found will be added to the FactoryFinder. Any found
implementation that is already registered in the FactoryFinder will be rejected
and based on the last added prinicple of returning factories, this will lead to
that the default myfaces factories will never be returned even if I specify
that I want the default implementation in my faces-config.xml.
The problem I'm having is that we use the SUN portlet bridge which is added to
our classpath and the factories defined by the portletbridge will be used for
all faces requests.
I've would like to be able to override which factory implementation to be used.
Regards,
Hampus
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.