Second Update

UI Components for JSF
Post Reply
TulioACastro
Posts: 4
Joined: 25 May 2010, 20:16

30 Jun 2010, 22:13

Hi catagay, i have some problem with my application with ajax Update.
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>

TulioACastro
Posts: 4
Joined: 25 May 2010, 20:16

30 Jun 2010, 22:15

somebody know how can i solve this ??

thnks all and sry my english

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 55 guests