rendered paste body<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<f:view>
<html>
<head>
<title>Teste Ajax</title>
</head>
<center>
<h:form id="formajax">
<a4j:region>
<h:panelGrid columns="2" border="0" cellspacing="0" cellpadding="1" width="20%">
<h:outputText value="Nome: "/>
<t:inputText style="border: 1px solid gray; font-size: 11px;" required="true" value="#{ajaxView.nome}" maxlength="40" size="20"/>
</h:panelGrid>
<br/>
<a4j:commandButton value="Saudar" action="#{ajaxView.echo}" />
<br/>
<br/>
<h:outputText value="#{ajaxView.saudacao}" />
</a4j:region>
</h:form>
</center>
</html>
</f:view>