|
@ -42,7 +42,7 @@ |
|
|
<f:validateLength minimum="3" maximum="15" /> |
|
|
<f:validateLength minimum="3" maximum="15" /> |
|
|
</p:inputText> |
|
|
</p:inputText> |
|
|
<p:message for="nombre" /> |
|
|
<p:message for="nombre" /> |
|
|
|
|
|
|
|
|
<p:outputLabel value="Sexo" for="sexo" /> |
|
|
<p:outputLabel value="Sexo" for="sexo" /> |
|
|
<p:inputText id="sexo" value="#{demoBeanUsuario.TUsuario.sexo}" |
|
|
<p:inputText id="sexo" value="#{demoBeanUsuario.TUsuario.sexo}" |
|
|
title="Sexo" |
|
|
title="Sexo" |
|
@ -87,10 +87,10 @@ |
|
|
<f:validateRegex pattern="[a-zA-Z0-9,.# ]*" /> |
|
|
<f:validateRegex pattern="[a-zA-Z0-9,.# ]*" /> |
|
|
</p:inputText> |
|
|
</p:inputText> |
|
|
<p:message for="direccion" /> |
|
|
<p:message for="direccion" /> |
|
|
|
|
|
|
|
|
<p:outputLabel value="Estado" for="estadoId" /> |
|
|
<p:outputLabel value="Estado:" for="estadoId" /> |
|
|
<p:inputText id="estadoId" value="#{demoBeanUsuario.usuarios.estadoId}" |
|
|
<p:inputText id="estadoId" value="#{demoBeanUsuario.TUsuario.estadoIdestado}" |
|
|
title="Sexo" |
|
|
title="Estado" |
|
|
required="true" |
|
|
required="true" |
|
|
requiredMessage="El campo nombre es obligatorio" |
|
|
requiredMessage="El campo nombre es obligatorio" |
|
|
validatorMessage="M o F"> |
|
|
validatorMessage="M o F"> |
|
@ -99,6 +99,18 @@ |
|
|
</p:inputText> |
|
|
</p:inputText> |
|
|
<p:message for="nombre" /> |
|
|
<p:message for="nombre" /> |
|
|
|
|
|
|
|
|
|
|
|
<p:outputLabel value="Pais:" for="paisId"/> |
|
|
|
|
|
<p:selectOneMenu id="paisId" value="#{demoBeanUsuario.TUsuario.estadoIdestado}" converter="selectOneMenuConverter" |
|
|
|
|
|
required="true" requiredMessage="Este campo es requerido"> |
|
|
|
|
|
<f:selectItems value="#{demoBeanEstado}" var="item" itemLabel="#{item.nombre}" itemValue="#{item}"/> |
|
|
|
|
|
<f:selectItems value="#{demoBeanPais}" var="item" itemLabel="#{item.nombre}" itemValue="#{item}"/> |
|
|
|
|
|
|
|
|
|
|
|
</p:selectOneMenu> |
|
|
|
|
|
<p:message for="paisId" /> |
|
|
|
|
|
|
|
|
|
|
|
<input type="file"> |
|
|
|
|
|
<button onclick="document.getElementById('myFileInput').click()">Seleccionar Archivo</button> |
|
|
|
|
|
</input> |
|
|
</h:panelGrid> |
|
|
</h:panelGrid> |
|
|
<p:commandButton action="#{demoBeanUsuario.agregarUsuario()}" |
|
|
<p:commandButton action="#{demoBeanUsuario.agregarUsuario()}" |
|
|
icon="pi pi-fw pi-check" |
|
|
icon="pi pi-fw pi-check" |
|
|