The first update is working, but after first update dont works more.
im using jsf 1.2 and primefaces 1.2 with facelets
thats my code:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui" lang="pt-br">
<f:view contentType="text/html">
<head>
<title>Test</title>
<p:resources />
</head>
<body>
cccc
<h2>Exemplo de Crud - Pessoa</h2>
<h:form>
<h:panelGrid columns="3">
<h:outputText value="Required Firstname :" />
<h:inputText id="firstname" value="#{beanTeste.nome}" required="true" />
<h:outputText id="out1" value="#{beanTeste.nome}" />
<h:outputText value="Surname(Request on blur): " />
<h:inputText id="surname" value="#{beanTeste.subNome}">
<p:ajax event="blur" update="out2" />
</h:inputText>
<h:outputText id="out2" value="#{beanTeste.subNome}" />
</h:panelGrid>
</h:form>
</body>
</f:view>
</html>