Skip to content
Snippets Groups Projects
form.xhtml 1.1 KiB
Newer Older
<ui:composition template="/WEB-INF/template/layout.xhtml"
                xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
                xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns="http://www.w3.org/1999/xhtml">

    <ui:define name="title">Encryption Bean - Página inicial</ui:define>

    <ui:define name="content">
        <h1>Hash - Agora vai</h1>

        <h:form>
            <h:outputLabel for="mensagem">Mensagem:</h:outputLabel>
            <h:inputText id="mensagem" value="#{someBean.originalMessage}"></h:inputText>
            <h:commandButton action="#{someBean.form}" type="submit" value="Enviar"/>


            <c:if test="#{!someBean.hashedMessage.isEmpty}">
                <h:outputLabel for="hashedMessage">Mensagem:</h:outputLabel>
                <h:outputText id="hashedMessage" value="#{someBean.hashedMessage}"></h:outputText>
            </c:if>