Bom dia,
Estou desenvolvendo um sistema em JSF 1.2 com Richfaces, porém estou tendo problemas de renderizar as tags jsf, quando utilizo a inclusão das taglibs através da tag , exemplo “<html xmlns=“http://www.w3.org/1999/xhtml” (outros links)>”, ao fazer desta forma o html gerado fica com as tags JSF e desta forma não renderiza nada, alguem já passou por isso?
login.html
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"
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:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:c="http://java.sun.com/jstl/core">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Teste</title>
<link href="../../style/principal.css" rel="stylesheet" type="text/css" />
<link href="../../style/login.css" rel="stylesheet" type="text/css" />
</head>
<body>
<f:view>
<a4j:form id="formulario">
<a4j:keepAlive beanName="Login" />
<div align="center">
<table id="conteudo">
<tr>
<td style="vertical-align: top; text-align: left" colspan="2">
<div id="DivTopo" style="width: 852px; height: 216px; float: left;"></div>
<div id="DivSpacer1" style="width: 18px; height: 190px; float: left;"></div>
<div id="DivTitulo" style="width: 528px; height: 87px; float: left; text-align: center;">
<span id="LabelTitulo"><h:outputText value="#{mensagens['global.titulo.sistema']}" /></span>
</div>
<div id="DivLogin" style="width: 528px; height: 80px; float: left; text-align: center;">
<table id="LoginFrm" cellspacing="0" cellpadding="0" border="0" style="color:#333333;border-style:None;font-family:Verdana;font-size:Small;height:119px;width:400px;border-collapse:collapse;">
<tr>
<td>
<table cellspacing="0" cellpadding="4" border="0" style="border-collapse: collapse; width: 400px;">
<tr>
<td align="center" style="width: 399px; height: 143px;">
<table cellpadding="0" border="0" style="width: 300px; height: 119px">
<tr>
<td align="center" style="font-weight: bold; font-size: 0.9em; color: white; height: 18px;" colspan="2"></td>
</tr>
<tr>
<td align="center" style="font-weight: bold; font-size: 0.9em; color: red; height: 18px;" colspan="2">
<ui:include src="mensagens.xhtml"/>
</td>
</tr>
<tr>
<td align="right" style="width: 80px">
<label id="lblLogin" style="color:White;font-family:Verdana;font-size:Medium;"><h:outputText value="#{mensagens['label.login.usuario']}"/></label>
</td>
<td style="text-align: left; width: 150px;">
<h:inputText id="txtLogin" value="#{Login.usuario}" styleClass="TextBox" maxlength="24" style="font-size:0.8em;width:140px;"/>
</td>
</tr>
<tr>
<td align="right" style="width: 80px;">
<label id="lblSenha" style="color:White;font-family:Verdana;font-size:Medium;"><h:outputText value="#{mensagens['label.login.senha']}"/></label>
</td>
<td style="text-align: left; width: 150px;">
<h:inputSecret id="txtSenha" value="#{Login.senha}" styleClass="TextBox" maxlength="24" style="font-size:0.8em;width:140px;"/>
</td>
</tr>
<tr>
<td style="padding-left:0px;" colspan="2">
<div style="width: 250px; float: left;">
<br/>
<h:commandButton value="#{mensagens['botao.entrar']}" action="#{Login.login}" id="btnEntrar" styleClass="Botao" style="width: 150px;"/>
<br/>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</a4j:form>
</f:view>
</body>
</html>
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_2_5.xsd"
id="WebApp_ID" version="2.5">
<!-- Plugging the "Blue Sky" skin into the project -->
<display-name>pedidoCompras</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>
<param-value>Mojarra-1.2</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
<param-value>50</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.html</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener
</listener-class>
</listener>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>