<f:facet> not working with <h:form>
I have a template, in which a <h:form> is defined. This <h:form> is used all over the application for the CRUD pages of entities. So, at one place I need another enctype for the form, so that I can upload files. I thought I can solve this with a facet in the template: <h:form id="main-form"> <f:facet name="enctype"> <ui:insert name="form-enctype"/> </f:facet> <ui:insert name="buttons"/><p/> <ui:insert name="content"/><p/> <ui:insert name="buttons"/> <ui:insert name="additionalHelper"/> </h:form> And at the concrete page I wanted to set the custom enctype this way: <ui:define name="form-enctype