Estou tentando abrir uma pagina JSF mas ela não aparece nada
<!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: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>K19 Treinamentos</title>
</h:head>
<h:body>
<h:form>
<h:outputLabel value=" Número máximo : " />
<h:inputText value="#{numeroAleatorioBean.maximo }" />
</h:form>
</h:body>
</html>
Estou usando a biblioteca javax.faces-2.1.13.jar e a javax.servlet.jsp.jstl-api-1.2.1.jar
Não dá erro nenhuma mas tbm não aparece nada
Ajuda
Como está o JSF mapeado no web.xml? E por qual URL você está chamando?
Esta assim web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
<display-name>JSF 2.0</display-name>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<context-param>
<description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>resources.application</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
</web-app>
Eu entro com http://localhost:8080/JSF_2.0/formulario.jsf
Consegui resolver, para quem tiver o mesmo problema
resolvi o meu retirando os espaços em branco na declaração dos xmlns
vlw
[quote=didobruno]Consegui resolver, para quem tiver o mesmo problema
resolvi o meu retirando os espaços em branco na declaração dos xmlns
vlw[/quote]
didoBruno coloca [RESOLVIDO] na frente do titulo do seu tópico pra ajudar galera que teve o mesmo problema e evitar que pessoas que querem ajudar acessem um tópico já solucionado.
flw