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.
		
		
		
		
		
			
		
			
				
					
					
						
							38 lines
						
					
					
						
							1.8 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							38 lines
						
					
					
						
							1.8 KiB
						
					
					
				
								
							 | 
						|
								<!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/ejemploJazmin.xhtml">
							 | 
						|
								
							 | 
						|
								            <ui:define name="top">
							 | 
						|
								                top
							 | 
						|
								            </ui:define>
							 | 
						|
								
							 | 
						|
								            <ui:define name="left">
							 | 
						|
								                left
							 | 
						|
								            </ui:define>
							 | 
						|
								
							 | 
						|
								            <ui:define name="content">
							 | 
						|
								                       <h:form>
							 | 
						|
								                          <p:growl id="growl" showDetail="true" />
							 | 
						|
								                          <h1><h:outputText value="#{categoriasBean.titulo}"/></h1>    
							 | 
						|
								                        <h:panelGrid columns="2">     
							 | 
						|
								                            <h:outputLabel value="Nombre:" for="nombre" />
							 | 
						|
								                            <h:inputText id="nombre" value="#{categoriasBean.categoria.nombre}" title="Nombre" required="true" requiredMessage="The Nombre field is required."/>           
							 | 
						|
								                        </h:panelGrid>               
							 | 
						|
								                          <p:commandButton styleClass="ui-button-raised ui-button-success"  action ="#{categoriasBean.agregarC()}" value="Agregar"  update="growl" rendered="#{categoriasBean.nuevo}"/>
							 | 
						|
								                          <p:commandButton action ="categoriaLista.xhtml"  actionListener="#{categoriasBean.editarCategoria()}" value="Editar"  update="growl" rendered="#{!categoriasBean.nuevo}" />
							 | 
						|
								                        <p:commandButton styleClass="ui-button-raised ui-button-danger" action ="categoriaLista.xhtml" value="Cancelar" immediate="true"/>
							 | 
						|
								                    </h:form>
							 | 
						|
								            </ui:define>
							 | 
						|
								
							 | 
						|
								        </ui:composition>
							 | 
						|
								
							 | 
						|
								    </body>
							 | 
						|
								</html>
							 | 
						|
								
							 |