Como pegar texto do input para minha camada Controller JSP PrimeFace

0 respostas
Felipe_Martins1
Pessoal minha duvida e o seguinte como eu obtenho esse texto que vem do input text e seto na minha classe Controller e como envio da classe controller para o Html


  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:p="http://primefaces.org/ui">
 

<f:view contentType="text/html">
    <h:head>
        <f:facet name="first">
            <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
            <title>PrimeFaces</title>
        </f:facet>
    </h:head>

    <h:body>
        <p:panelGrid columns="2">
            
            
            <p:outputLabel value="Nome"/>
            <p:inputText/>
            
            <p:outputLabel value="Data de Nascimento"/>
            <p:calendar/>
            
    
        </p:panelGrid>
        
        <p:commandButton value="Cadastrar"/>

    </h:body>

</f:view>
</html>
Criado 29 de agosto de 2017
Respostas 0
Participantes 1