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.
 
 
 
 

54 lines
2.5 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/ejemploJazmin.xhtml">
<ui:define name="top">
top
</ui:define>
<ui:define name="left">
left
</ui:define>
<ui:define name="content">
<f:view>
<h:form>
<h1><h:outputText value="Create/Edit"/></h1>
<p:growl id="growl" showDetail="true" />
<p:panelGrid columns="2">
<p:outputLabel value="Proovedor:" for="proovedor" />
<p:inputText id="proovedor" value="#{proovedoresBean.prove.proovedor}" title="Proovedor" required="true" requiredMessage="The Proovedor field is required."/>
<p:outputLabel value="Telefono:" for="telefono" />
<p:inputText id="telefono" value="#{proovedoresBean.prove.telefono}" title="Telefono" required="true" requiredMessage="The Telefono field is required."/>
<p:outputLabel value="Direccion:" for="direccion" />
<p:inputText id="direccion" value="#{proovedoresBean.prove.direccion}" title="Direccion" required="true" requiredMessage="The Direccion field is required."/>
</p:panelGrid>
<p:commandButton styleClass="ui-button-raised ui-button-success" action ="#{proovedoresBean.agregarProovedor()}" value="Agregar" update="growl" rendered="#{proovedoresBean.nuevo}" />
<p:commandButton action ="proveedoresLista.xhtml" actionListener="#{proovedoresBean.editarProovedor()}" value="Editar" update="growl" rendered="#{!proovedoresBean.nuevo}" />
<p:commandButton styleClass="ui-button-raised ui-button-danger" action ="proveedoresLista.xhtml" value="Cancelar" immediate="true"/>
</h:form>
</f:view>
</ui:define>
</ui:composition>
</body>
</html>