Thank you mr.Thorsten, Im looking into my code to see whether I did what I'm supposed to do. Thank you for your help, Samba. On 9/5/06, Günther, Thorsten wrote: > > Hi Samba! > > There is a page in the Myfaces Wiki "Facelets with Trinidad". ( > http://wiki.apache.org/myfaces/Facelets_with_Trinidad) Is your environment > set up like suggested there? I use these settings and (most) things work > like expected. I'm using Trinidad, but perhaps it's helpful for you to. > > Regards, > Thorsten > > > -----Ursprüngliche Nachricht----- > Von: Samba [mailto:saasira@gmail.com] > Gesendet: Dienstag, 5. September 2006 09:05 > An: adffaces-user@incubator.apache.org > Betreff: Re: Re: No Grammer available for " > http://java.sun.com/jsf/facelets > > 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 : > > SYSTEM "http://www.w3.org/TR/html4/loose.dtd" > > "http://www.w3.org/TR/html4/loose.dtd"> lang="en-US">
onkeypress="return _submitOnEnter(event,'_id1');" > method="POST" > action="/Application-Project-context-root/faces/Layout.jspx"> >
name="header"> > This is Header
align="left"> name="leftmenu"> Left Menu > This is Body
width="1000" align="center"> > This is > Footer
name="oracle.adf.faces.FORM" value="_id1"> id="__id1_Postscript"> name="oracle.adf.faces.STATE_TOKEN" value="1">
> > > And the page I've written using facelets tags is the following: > > > 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"> > doctype-system="http://www.w3.org/TR/html4/loose.dtd" > doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/> > > > > > > > > > > > > > > > >
> This is Header >
> Left Menu > > This is Body >
> This is Footer >
> >
>
>
>
> > And the web.xml file is given below: > > > 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"> > Empty web.xml file for Web Application > > > > oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER > > com.sun.facelets.FaceletViewHandler > > > > > facelets.DEVELOPMENT > true > > > > > > com.sun.faces.validateXml > true > > > com.sun.faces.verifyObjects > true > > > > > > > javax.faces.STATE_SAVING_METHOD > client > > > > > javax.faces.DEFAULT_SUFFIX > .jspx > > > > > facelets.VIEW_MAPPINGS > *.xhtml > > > > > > > > > > adfFaces > oracle.adf.view.faces.webapp.AdfFacesFilter > > > > adfFaces > Faces Servlet > > > Faces Servlet > javax.faces.webapp.FacesServlet > 1 > > > resources > oracle.adf.view.faces.webapp.ResourceServlet > > > > Faces Servlet > /faces/* > > > resources > /adf/* > > > 35 > > > html > text/html > > > txt > text/plain > > > > > my faces-config.xml is : > > > "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" > "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"> > > > oracle.adf.core > > > > > > > > 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 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: > > > > > 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"> > > Facelets Trinidad Example > > trinidad > > > > javax.faces.DEFAULT_SUFFIX > > .xhtml > > > > > > facelets.REFRESH_PERIOD > > 2 > > > > > > facelets.DEVELOPMENT > > true > > > > > > javax.faces.STATE_SAVING_METHOD > > client > > > > > > com.sun.faces.validateXml > > true > > > > > > com.sun.faces.verifyObjects > > true > > > > > > org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER > param-name> > > com.sun.facelets.FaceletViewHandler > > > > > > trinidad > > org.apache.myfaces.trinidad.webapp.TrinidadFilter > filter-class> > > > > > > trinidad > > faces > > > > > > faces > > javax.faces.webapp.FacesServlet > > 1 > > > > > > resources > > org.apache.myfaces.trinidad.webapp.ResourceServlet > servlet-class> > > > > > > faces > > *.jsf > > > > > > resources > > /adf/* > > > > > > /index.html > > > > > > BASIC > > > > > > > > > > faces-config.xml: > > > > > Faces Config 1.1//EN" > > > > "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"> > > > > > > > > > > > > > > org.apache.myfaces.trinidad.core > > > > > > > > > > > > Should work with these... :-) > > > > Regards > > Chris > > > > > > Samba schrieb am 05.09.2006 08:33:00: > > > > > Thank you Chris,for your reply. > > > > > > But Mr. Adam Winer of oracle , who contributed adf-facelets.jarlibrary, > > > 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 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: > > > > > > > > > > > > com.sun.facelets.FaceletViewHandler > > > > > > > > > > > > Regards > > > > Chris > > > > > > > > > > > > > > > > Samba 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 in a table so that the content in > > > > > > > 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. > > -- Vuntaanu... Samba.