You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							68 lines
						
					
					
						
							3.3 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							68 lines
						
					
					
						
							3.3 KiB
						
					
					
				
								<?xml version='1.0' encoding='UTF-8' ?>
							 | 
						|
								<!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:ui="http://xmlns.jcp.org/jsf/facelets"
							 | 
						|
								      xmlns:h="http://xmlns.jcp.org/jsf/html"
							 | 
						|
								      xmlns:f="http://xmlns.jcp.org/jsf/core"
							 | 
						|
								      xmlns:p="http://primefaces.org/ui">
							 | 
						|
								
							 | 
						|
								    <body>
							 | 
						|
								
							 | 
						|
								        <ui:composition template="./template/principal.xhtml">
							 | 
						|
								
							 | 
						|
								            <ui:define name="top">
							 | 
						|
								                
							 | 
						|
								            </ui:define>
							 | 
						|
								
							 | 
						|
								            <ui:define name="left">
							 | 
						|
								                
							 | 
						|
								            </ui:define>
							 | 
						|
								
							 | 
						|
								            <ui:define name="right">
							 | 
						|
								                
							 | 
						|
								            </ui:define>
							 | 
						|
								
							 | 
						|
								            <ui:define name="content">
							 | 
						|
								                <f:view>
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								                    <h:form>
							 | 
						|
								                        <p:messages id="messages" showDetail="true" closable="true">
							 | 
						|
								                            <p:autoUpdate/>
							 | 
						|
								                        </p:messages>
							 | 
						|
								                        
							 | 
						|
								                        <h1><h:outputText value="#{demoBeanUsuarios.titulo}"/></h1>
							 | 
						|
								                        <h:panelGrid columns="3" cellpadding="7">
							 | 
						|
								                      
							 | 
						|
								                            <p:outputLabel value="Nombre:" for="nombre" />
							 | 
						|
								                            <p:inputText id="nombre" value="#{demoBeanUsuarios.usuario.nombre}" title="Nombre" required="true" />
							 | 
						|
								                            <p:message for="nombre" display="tooltip"/>
							 | 
						|
								                            
							 | 
						|
								                            <p:outputLabel value="Apellido P:" for="apellidoPaterno" />
							 | 
						|
								                            <p:inputText id="apellidoPaterno" value="#{demoBeanUsuarios.usuario.apellidoPaterno}" title="ApellidoPaterno" required="true"/>
							 | 
						|
								                            <p:message for="apellidoPaterno" display="tooltip"/>
							 | 
						|
								                            
							 | 
						|
								                            <p:outputLabel value="Email:" for="email" />
							 | 
						|
								                            <p:inputText id="email" value="#{demoBeanUsuarios.usuario.email}" title="Email" required="true"/>
							 | 
						|
								                            <p:message for="email" display="tooltip"/>
							 | 
						|
								                            
							 | 
						|
								                            <p:outputLabel value="Telefono:" for="telefono" />
							 | 
						|
								                            <p:inputText id="telefono" value="#{demoBeanUsuarios.usuario.telefono}" title="Telefono" required="true"/>
							 | 
						|
								                            <p:message for="telefono" display="tooltip"/>
							 | 
						|
								                            
							 | 
						|
								                        </h:panelGrid>
							 | 
						|
								                        <p:commandButton action="#{demoBeanUsuarios.agregar()}" rendered="#{demoBeanUsuarios.nuevo}" styleClass="ui-button-success" style="width: 50px;" icon="pi pi-save" ajax="false"/>
							 | 
						|
								                        <p:commandButton action="#{demoBeanUsuarios.editarUsuario()}" icon="pi pi-save"
							 | 
						|
								                                          styleClass="ui-button-success"
							 | 
						|
								                                          style="width: 50px;" rendered="#{!demoBeanUsuarios.nuevo}" ajax="false"/>
							 | 
						|
								                        
							 | 
						|
								                        <p:commandButton action="usuariosLista.xhtml" style="margin-left: 5px; width: 50px; " immediate="true" icon="pi pi-times" ajax="false" styleClass="ui-button-danger"/>
							 | 
						|
								                    </h:form>
							 | 
						|
								                </f:view>
							 | 
						|
								
							 | 
						|
								            </ui:define>
							 | 
						|
								
							 | 
						|
								        </ui:composition>
							 | 
						|
								
							 | 
						|
								    </body>
							 | 
						|
								</html>
							 | 
						|
								
							 |