i have a working jsf2.0 setup with primefaces, but am getting some unexpected behaviour when using the slightly modified example code below
Code: Select all
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui" template="template.xhtml">
<ui:define name="content">
<h:form prependId="false">
<p:panel id="panel" header="New Person">
<h:messages />
<h:outputText value="5 characters minimum" />
<h:panelGrid columns="3">
<h:outputLabel for="firstname" value="Firstname: *" />
<h:inputText id="firstname" value="#{users.user.name}"
label="Firstname">
<f:validateLength minimum="5" />
<p:ajax event="blur" update="panel" />
</h:inputText>
<h:outputText id="out3" value="#{users.user.name}" />
<h:message for="firstname" />
</h:panelGrid>
</p:panel>
</h:form>
</ui:define>
</ui:composition>