Seguindo exemplos encontrados na Internet, realizei meu primeiro exercicio de JSF.
Realizei o exercicio, executei e o tomcat abriu a página normalmente, porém ao entrar na página do meu formulario, apenas o
"Hello from Facelets" aparece na tela.
Segue abaixo o código:
<?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"><htmlxmlns="http://www.w3.org/1999/xhtml"xmlns:ui="http://java.sun.com/jsf/facelets"xmlns:h="http://java.sun.com/jsf/html"xmlns:f="http://java.sun.com/jsf/core"><h:head><title>Treinamento</title></h:head><h:body><h:form><h:outputLabelvalue="Numero Máximo"/><h:inputTextvalue="#{numeroAleatorioBean.maximo}"/><h:commandButtonvalue=" Gera Numero Aleatorio"action="#{numeroAleatorioBean.gerarNumeroAleatorio()}"/></h:form>
Hello from Facelets
</h:body></html>