When I fully insert the form in the main page it works, but when I use ui:include it doesn’t.
<!-- Main JSF -->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<ui:include src="main.xhtml" />
</h:body>
</html>
<!-- to be included -->
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:form>
<h:outputLabel value="ID" for="userId" />
<p:inputText value="#{managedEmployee.userId}" />
<p:commandButton value="Show" update="result" />
<p:panel id="result">
<h:outputText value="#{managedEmployee.userId}" />
</p:panel>
</h:form>
</ui:composition>
Hope this explains my intentions.
I’ve been searching for an answer the whole day but without success. Thanks in advance.
Just to close this ticket, I found the issue for my problem here, used wrong bean reference, kinda stupid I know..