Closed mnriem closed 11 months ago
whats the usecase for it?
Rought implementation details
Currently this isnt alligned with other Factories:
class ViewDeclarationLanguageFactory implements FacesWrapper<ViewDeclarationLanguageFactory> {
any reason for this?
Currently this isnt alligned with other Factories:
class ViewDeclarationLanguageFactory implements FacesWrapper<ViewDeclarationLanguageFactory> {
Oh this reminds me we still need to add to spec that all factories and factory instances should preferably implement FacesWrapper and that impl should validate that by e.g. emitting warnings. Or perhaps even make it obligatory.
any reason for this?
what exactly are you referring to?
what exactly are you referring to?
that its implemented without FacesWrapper :)
also we should add faces-config/factory/faces-servlet-factory like other factories before
What about the faces-config.xml Changes?
@BalusC @arjantijms Should the latest faces-config XSD be included in the API JAR going forward?
getFacesServlet is still unused in Mojarra? where do you use it?
In MyFaces we do this:
servletContext.addServlet(FACES_SERVLET_NAME, FacesServlet.class);
in this case, the FacesServletFactory looks a bit wrong?
public Servlet getFacesServlet(ServletConfig config)
should be
public Class<? extends FacesServlet> getFacesServlet()
?
@tandraschko The API is correct. The FacesServletFactory is supposed to deliver an instance of the Servlet that the FacesServlet can delegate to.
Implemented it in MF now: https://github.com/apache/myfaces/commit/3a9e428386a974046fd30bdc0b19c1ba999d5b20 please review
To facilitate different implementors the FacesServlet should delegate to a Servlet that should be acquired by the FacesServletFactory.