Code: Select all
<h:body>
<h:form prependId="false" >
<f:view contentType="text/html">
<p:layout fullPage="true" >
<p:layoutUnit id="center" position="center">
<h:panelGroup id="b">
<h:panelGrid title="BBBB" style="padding-top:15px">
<p:messages/>
<h:message for="email"/>
<h:messages/>
<p:message for="email"/>
<h:outputLabel value="aaaaa"/>
<h:inputText id="email" value="" name="email" required="true" requiredMessage="error"/>
<h:outputLabel value="asd"/>
<h:inputText value="" required="true" requiredMessage="error"/>
<p:commandButton value="Login" title="Login" actionListener="#{calendarBean.getDate1}" update="center"/>
</h:panelGrid>
</h:panelGroup>
</p:layoutUnit>
</p:layout>
</f:view>
</h:form>
</h:body>
BUT
when I remove the tags "p:layout" and "p:layoutUnit" the validation works fine.
What I am missing here? I am trying to use the "p:layout" as my templat but none of messages my messages get rendered.
Thanks.