Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
GENTE ESTOU COMEÇANDO A USAR JSF AS PAGINAS SÃO CRIADAS EM XHTML MEU CODIGO FOI TIRADO DE UM TUTORIAL DA INTERNET QUANDO RODO A MINHA PAGINA NO ECLIPSE ELE ABRE O A INTERNETE E A PAGINA FICA EM BRANCO NÃO APARECE OS BOTOES DE ENVIAR E EXCLUIR
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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">
<h:head>
<title>Gerenciador de Livros</title>
</h:head>
<h:body>
<h1> Livros</h1>
<h:form>
Título <h:inputText value="#{livroController.livro.titulo}"/><br/>
Autor: <h:inputText value="#{livroController.livro.autor}"/><br/>
Paginas: <h:inputText value="#{livroController.livro.paginas}"/><br/>
Editora: <h:inputText value="#{livroController.livro.editora}"/><br/>
ISBN: <h:inputText value="#{livroController.livro.isbn}"/><br/>
Avaliação: <h:selectOneMenu value="#{livroController.livro.avaliacao}">
<f:selectItem itemLabel="1" itemValue="1"/>
<f:selectItem itemLabel="2" itemValue="2"/>
<f:selectItem itemLabel="3" itemValue="3"/>
<f:selectItem itemLabel="4" itemValue="4"/>
<f:selectItem itemLabel="5" itemValue="5"/>
</h:selectOneMenu><br/>
<h:commandButton action="#{livroController.adicionarLivro}" value="Inserir Novo Livro"/>
<h:commandButton action="#{livroController.alterarLivro}" value="Alterar Livro"/>
<br/>
<h:commandLink action="index" value="Voltar"/>
</h:form>
</h:body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title>Gerenciador de Livros</title>
</h:head>
<h:body>
<h1>Gerenciador de Livros</h1>
<h:form>
Título <h:inputText value="#{livroController.livro.titulo}"/><br/>
Autor: <h:inputText value="#{livroController.livro.autor}"/><br/>
Paginas: <h:inputText value="#{livroController.livro.paginas}"/><br/>
Editora: <h:inputText value="#{livroController.livro.editora}"/><br/>
ISBN: <h:inputText value="#{livroController.livro.isbn}"/><br/>
Avaliação: <h:selectOneMenu value="#{livroController.livro.avaliacao}">
<f:selectItem itemLabel="1" itemValue="1"/>
<f:selectItem itemLabel="2" itemValue="2"/>
<f:selectItem itemLabel="3" itemValue="3"/>
<f:selectItem itemLabel="4" itemValue="4"/>
<f:selectItem itemLabel="5" itemValue="5"/>
</h:selectOneMenu><br/>
<h:commandButton action="#{livroController.adicionarLivro}" value="Inserir Novo Livro"/>
<h:commandButton action="#{livroController.alterarLivro}" value="Alterar Livro"/>
<br/>
<h:commandLink action="index" value="Voltar"/>
</h:form>
</h:body>
</html>
OS BUTOES E NEM O LINK APARECE
Carregando comentários...