hi

i am trying to use facelets with richfaces 

my template also works but css inside template i define to use is not works 

in fact i have used .xhtml extension for templates and applied pages also

my main template.xhtml looks like

---------------------------------
<div 
   xmlns:ui="http://java.sun.com/jsf/facelets";
   xmlns:h="http://java.sun.com/jsf/html";
   xmlns:f="http://java.sun.com/jsf/core";
   xmlns:c="http://java.sun.com/jstl/core";>
   
  
   <f:facet name="metaContainer">
   <link rel="stylesheet" type="text/css" href="css/Blue.css"
media="screen"/>
        
        </f:facet>
        
        
        
<div id="wrap">
                        <div id="header">
                                 <ui:insert name="header">
                                <ui:include src="header.xhtml"/>
                        </ui:insert>    
                                        
                        </div>
                        <div  id="menu">
                                <ui:insert name="menu">
                                        <ui:include src="menu.xhtml"/>
                                </ui:insert>
                        
                        </div>  
                        <!-- content-wrap starts here -->
                        <div id="content-wrap">
                                <div id="sidebar">
                                        <ui:insert name="sidebar">
                                        <ui:include src="sidebar.xhtml"/>
                                </ui:insert>
                                        
                                </div>
                                <div id="main">
                                        <ui:insert name="main">
                                        Main code will be here
                                </ui:insert>
                                
                                </div>
                        <!-- content-wrap ends here -->
                        </div>
                        <!--footer starts here-->
                        <div id="footer">
                                <ui:insert name="footer">
                                        <ui:include src="footer.xhtml"/>
                        </ui:insert>
                        </div>
                <!-- wrap ends here --> 
                </div>
        </div>


-------------------------


my web.xml looks like

---------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
        <display-name>  richfacesdemo</display-name>
        
         <context-param>
        <param-name>org.richfaces.SKIN</param-name>
        <param-value>blueSky</param-value>
    </context-param>
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
    </context-param>
    
    <context-param>
                <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                <param-value>com.sun.facelets.FaceletViewHandler</param-value>
        </context-param>
   <!-- Use Documents Saved as *.xhtml -->
  <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</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, to allow Jetty serving MyFaces apps -->
  <listener>
   
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</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>*.xhtml</url-pattern>
        </servlet-mapping>
        
        
        
</web-app>


-------------------------------------------------------------

help me to solve my problem

-----


Java/J2EE developer 
India

blogs
http://hardik4u.wordpress.com wordpress blog 

-- 
View this message in context: 
http://www.nabble.com/about-facelets-with-richfaces-tp18891083p18891083.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to