<%-- 
    Document   : cadastrarUsuario
    Created on : May 10, 2010, 8:58:30 PM
    Author     : gugawag
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>JSP Page</title>
        </head>
        <body>
            <jsp:include page="menu.jsp"/>
            <br><br>
            <rich:panel>
                <h:form>
                    <h:panelGrid columns="2" title="Cadastro de Usuário">
                        <h:outputText value="Nome:"/>
                        <h:inputText value="#{usuarioBean.usuario.nome}"/>
                        <h:outputText value="email:"/>
                        <h:inputText value="#{usuarioBean.usuario.email}"/>
                        <h:outputText value="Senha:"/>
                        <h:inputSecret value="#{usuarioBean.usuario.senha}"/>
                        <h:commandButton action="#{usuarioBean.cadastrar}" value="Cadastrar"/>
                    </h:panelGrid>
                </h:form>

                <h:messages/>
            </rich:panel>
        </body>
    </html>
</f:view>
