Boa tarde pessoal, gostaria da ajuda de vcs, estou começando a utilizar Facelets em meu projeto onde uso jsf, criei um template, porem em meu projeto utilizo os componetes do hichfaces onde incluia as tag no JSP assim: <%@taglib uri=“http://richfaces.org/rich” prefix=“rich”%> e funciona normalmente
Agora como os arquivos tem que ser .xhtml, nao esta sendo possivel a utilização das tag hicfaces, alguem poderia me ajudar, pois ja procurei na nete nada , onde ja utilizei xmlns:rich=“http://richfaces.org/rich”>, mais nada funciona, alguem ja teve esse problema? segue meu codigo abaixo
Template.xhtml
[code]<?xml version='1.0' encoding='UTF-8' ?>
Facelets - Template Example<body>
<div id="topDIV">
<ui:include src="inc/topo.jsp"/>
</div>
<div id="contDIV">
<ui:insert name="cont">This is Default cout </ui:insert>
</div>
<div id="bottomDIV" >
<ui:include src="inc/rodape.jsp"/>
</div>
</body>
[/code]
Home.xhtml
[code]<?xml version='1.0' encoding='UTF-8' ?>
<body>
<ui:composition template="/template.xhtml">
<ui:define name="cont">
My Home Page
Clik no link para segunda pagina
<h:form>
<h:commandLink action="gotoSecondPage" value="SecodPage"/>
</h:form>
</ui:define>
</ui:composition>
</body>
[/code]
web.xml
[code]<?xml version="1.0" encoding="UTF-8"?>
RichFaces Filter
richfaces
org.ajax4jsf.Filter
richfaces
Faces Servlet
REQUEST
FORWARD
INCLUDE
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
<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>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>forward.jsp</welcome-file>
</welcome-file-list>
</web-app>[/code]
feaces-config
[code]<?xml version='1.0' encoding='UTF-8'?>
<application>
<view-handler>
com.sun.facelets.FaceletViewHandler
</view-handler>
</application>
<navigation-rule>
<from-view-id>/home.xhtml</from-view-id>
<navigation-case>
<from-outcome>gotoSecondPage</from-outcome>
<to-view-id>/second.xhtml</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
[/code]