Thank you Chris, but I have added  all the  elements in the web.xml as you
have pointed out, and still I'm getting the warning. and that's what I'm
perplexed about.
And one more thing , I'm using ADF Faces(Oracle's).

here is the HTML source of the output  :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
SYSTEM "http://www.w3.org/TR/html4/loose.dtd"; >
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd";><html dir="ltr"
lang="en-US"><script>var _AdfWindowOpenError='A popup window blocker
has been detected in your browser. Popup blockers interfere with the
operation of this application. Please disable your popup blocker or
allow popups
from this site.';
</script><script
src="/Application-Project-context-root/adf/jsLibs/Common10_1_3_0_4.js">
</script><form id="_id1" name="_id1" style="margin:0px"
onkeypress="return _submitOnEnter(event,'_id1');"
method="POST" action="/Application-Project-context-root/faces/Layout.jspx">
<table width="1000"><tr><td width="100%" align="center"><ui:insert
name="header">
This is Header</ui:insert></td></tr><tr><td width="250"
align="left"><ui:insert
name="leftmenu"> Left Menu</ui:insert></td><td width="750" align="center">
<ui:insert name="body"> This is Body</ui:insert></td></tr><tr><td
width="1000" align="center">
<ui:insert name="footer">  This is
Footer</ui:insert></td></tr></table><input type="hidden"
name="oracle.adf.faces.FORM" value="_id1"><span
id="__id1_Postscript"><input type="hidden"
name="oracle.adf.faces.STATE_TOKEN" value="1"><script>function
__id1Validator(){return true;}
var 
_id1_SF={};</script></span><script>_submitFormCheck();</script></form></html>


And the page I've written using facelets tags is the following:

<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"; version="2.0"
         xmlns:h="http://java.sun.com/jsf/html";
         xmlns:f="http://java.sun.com/jsf/core";
         xmlns:af="http://xmlns.oracle.com/adf/faces";
         xmlns:afh="http://xmlns.oracle.com/adf/faces/html";
         xmlns:ui="http://java.sun.com/jsf/facelets";>
 <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
             doctype-system="http://www.w3.org/TR/html4/loose.dtd";
             doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
 <jsp:directive.page contentType="text/html;charset=UTF-8"/>
 <f:view>
   <afh:html>
     <af:form>

       <table width="1000" >
       <tr><td width="100%" align="center" >
       <ui:insert name="header"> This is Header</ui:insert>
       </td>
       </tr>
       <tr>
       <td width="250" align="left" >
        <ui:insert name="leftmenu"> Left Menu</ui:insert>
        </td>
        <td width="750" align="center">
         <ui:insert name="body" > This is Body</ui:insert>
         </td>
         </tr>
         <tr>
         <td width="1000" align="center">
          <ui:insert name="footer" >  This is Footer</ui:insert>
        </td>
        </tr>
        </table>

     </af:form>
   </afh:html>
 </f:view>
</jsp:root>

And the web.xml file is given below:

<?xml version = '1.0' encoding = 'UTF-8'?>
<web-app 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"; version="2.4" xmlns="
http://java.sun.com/xml/ns/j2ee";>
   <description>Empty web.xml file for Web Application</description>


  <context-param>
<param-name>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER
</param-name>
 <param-value>com.sun.facelets.FaceletViewHandler
</param-value>
  </context-param>

 <context-param>
   <param-name>facelets.DEVELOPMENT</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>com.sun.faces.verifyObjects</param-name>
   <param-value>true</param-value>
 </context-param>




 <context-param>
   <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
   <param-value>client</param-value>
 </context-param>


 <context-param>
   <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
   <param-value>.jspx</param-value>
 </context-param>


 <context-param>
   <param-name>facelets.VIEW_MAPPINGS</param-name>
    <param-value>*.xhtml</param-value>
  </context-param>







   <filter>
       <filter-name>adfFaces</filter-name>
       <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter
</filter-class>
   </filter>
   <filter-mapping>
       <filter-name>adfFaces</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
   </filter-mapping>
   <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet>
       <servlet-name>resources</servlet-name>
       <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet
</servlet-class>
   </servlet>
   <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>/faces/*</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
       <servlet-name>resources</servlet-name>
       <url-pattern>/adf/*</url-pattern>
   </servlet-mapping>
   <session-config>
       <session-timeout>35</session-timeout>
   </session-config>
   <mime-mapping>
       <extension>html</extension>
       <mime-type>text/html</mime-type>
   </mime-mapping>
   <mime-mapping>
       <extension>txt</extension>
       <mime-type>text/plain</mime-type>
   </mime-mapping>
</web-app>


my faces-config.xml is :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC
 "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
 "http://java.sun.com/dtd/web-facesconfig_1_1.dtd";>
<faces-config xmlns="http://java.sun.com/JSF/Configuration";>
 <application>
   <default-render-kit-id>oracle.adf.core</default-render-kit-id>
<!--  <view-handler> com.sun.facelets.FaceletViewHandler</view-handler>-->
 </application>
</faces-config>




I'm getting warnings that  no grammer available for
http://java.sun.com/faces/facelets


Do I have to add any extra taglibs?

Thanking you ,
Samba.


On 9/4/06, Christoph Lassner <[EMAIL PROTECTED]> wrote:

You're absolutely right, sorry, answered a bit quickly. However, you have
to register ADF Faces (or Trinidad, don't know which one you're using) as
default-render-kit in faces-config.xml. I'll send you some examples:

web.xml:
<?xml version="1.0"?>
<web-app 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";>
<description>Facelets Trinidad Example</description>
<display-name>trinidad</display-name>
<context-param>
  <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  <param-value>.xhtml</param-value>
</context-param>
<context-param>
  <param-name>facelets.REFRESH_PERIOD</param-name>
  <param-value>2</param-value>
</context-param>
<context-param>
  <param-name>facelets.DEVELOPMENT</param-name>
  <param-value>true</param-value>
</context-param>
<context-param>
  <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  <param-value>client</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>com.sun.faces.verifyObjects</param-name>
  <param-value>true</param-value>
</context-param>
<context-param>
  <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</
param-name>
  <param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
<filter>
  <filter-name>trinidad</filter-name>
  <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</
filter-class>
</filter>
<filter-mapping>
  <filter-name>trinidad</filter-name>
  <servlet-name>faces</servlet-name>
</filter-mapping>
<servlet>
  <servlet-name>faces</servlet-name>
  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  <load-on-startup>1</load-on-startup>
</servlet>
<servlet>
  <servlet-name>resources</servlet-name>
  <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</
servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>faces</servlet-name>
  <url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
  <servlet-name>resources</servlet-name>
  <url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
  <welcome-file>/index.html</welcome-file>
</welcome-file-list>
<login-config>
  <auth-method>BASIC</auth-method>
</login-config>
</web-app>


faces-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer
Faces Config 1.1//EN"

"http://java.sun.com/dtd/web-facesconfig_1_1.dtd";>
<faces-config>
<!-- navigation rules, managed beans, etc. //-->

<application>
  <!-- Use the Trinidad RenderKit -->
  <default-render-kit-id>
    org.apache.myfaces.trinidad.core
  </default-render-kit-id>
</application>
</faces-config>


Should work with these... :-)

Regards
Chris


Samba <[EMAIL PROTECTED]> schrieb am 05.09.2006 08:33:00:

> Thank you Chris,for your reply.
>
> But Mr. Adam Winer of oracle , who contributed adf-facelets.jar library,
> says that we should not configure  Facelets ViewHandler in faces config
as
> it would cause a conflict between ADF Faces viewhandler and that of
> facelets.
>
> referring to you the post by Adam:
>
> https://facelets.dev.java.net/servlets/ReadMsg?listName=users&msgNo=451
>
> Did I infer it wrongly?
>  if so please  suggest me what I should do.
>
> thaning you,
> Samba.
>
>
> On 9/4/06, Christoph Lassner <[EMAIL PROTECTED]> wrote:
> >
> > Hi Samba,
> >
> > correct me if I'm wrong, but I think that the facelets view-handler
should
> > be registered in faces-config.xml, like this:
> >
> > <application>
> >   <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
> > </application>
> >
> > Regards
> > Chris
> >
> >
> >
> > Samba <[EMAIL PROTECTED]> schrieb am 05.09.2006 08:18:28:
> >
> > > Hello everybody,
> > >
> > > Can any one  help me why I'm getting a warning in my
editor(JDeveloper),
> > > I have   added all the neceesay elements in web.xml(viz, facelets
> > > ViewHandler, default suffix for jspx pages, view mapping for xhtml
> > page,etc)
> > > I'm not getting any errors, but not getting the alignmeent either.
> > >
> > > Suppose,
> > > if I keep  <ui:insert> in a table  so that the content in
<ui:insert>
> > > should come in footer, it is going some where randomly,
> > > and when I see the  HTML source in the browser window , I found that
the
> > > facelets tags are not converted into HTML.
> > > So,
> > > where am I missing?
> > >
> > > Thanking you in advance,
> > > Samba.
> > > --
> > > Regards,
> > > Samba.
> >
> >
>
>
> --
> Vuntaanu...
> Samba.




--
Vuntaanu...
Samba.

Reply via email to