Documentos de Académico
Documentos de Profesional
Documentos de Cultura
package managedbeans;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean
@RequestScoped
public Persona() {
return nombre;
this.nombre = nombre;
}
public String getTelefono() {
return telefono;
this.telefono = telefono;
return edad;
this.edad = edad;
Index
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>Menú principal</h:head>
<body>
</body>
</html>
Formulario Persona
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<body>
<p>Componentes de validación</p>
<h:form>
<h:panelGrid columns="3">
<f:validateLength minimum="3"/>
</h:inputText>
<h:message for="nombre"/>
</h:inputText>
<h:message for="telefono"/>
</h:inputText>
<h:message for="edad"/>
</h:panelGrid>
</h:form>
</body>
</html>
VER PERSONA
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<body>
</body>
</html>