You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Samba <sa...@gmail.com> on 2006/09/05 06:18:28 UTC
No Grammer available for "http://java.sun.com/jsf/facelets
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.
Re: No Grammer available for "http://java.sun.com/jsf/facelets
Posted by Samba <sa...@gmail.com>.
Thank you Chris for your excellent support,
I'll look into this in a few minutes,for now I'm going for lunch.
I'll inform you the result after checking out that every thing you
suggeted is in place.
Thanking you very very much,
Samba.
On 9/5/06, Christoph Lassner <Ch...@esg.de> wrote:
>
> Hi Samba,
>
> ok, now since you didn't attach a list of your lib-folder, I'll just send
> you some sources for the most basic application for an ADF and facelets
> application.
>
> Files in the lib folder:
> adf-facelets.jar // This ensures Facelets support for
> the ADF Faces components
> adf-faces-api-10_1_3_0_4.jar // Latest adf-faces release (api)
> adf-faces-impl-10_1_3_0_4.jar // ... (impl)
> adfshare-3549S.jar // adfshare library (recommended)
> common-annotations.jar // commons...
> commons-beanutils.jar
> commons-collections.jar
> commons-digester.jar
> commons-logging.jar
> el-api.jar // EL
> el-ri.jar
> jsf-api.jar // JSF and
> jsf-facelets.jar // Facelets
> jsf-impl.jar //...
> jstl.jar
> standard.jar
>
> 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>Example</description>
> <display-name>adffaces</display-name>
> <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>javax.faces.DEFAULT_SUFFIX</param-name>
> <param-value>.xhtml</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>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
> <param-value>com.sun.facelets.FaceletViewHandler</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>
> <!-- this must match your faces servlet name -->
> </filter-mapping>
> <!-- resource loader servlet -->
> <servlet>
> <servlet-name>resources</servlet-name>
> <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</
> servlet-class>
> </servlet>
> <!-- 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>
> <servlet-mapping>
> <servlet-name>resources</servlet-name>
> <url-pattern>/adf/*</url-pattern>
> </servlet-mapping>
> <!-- 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>
>
> 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>
> <!-- from project setup -->
> <application>
> <!-- Use the ADF RenderKit -->
> <default-render-kit-id>oracle.adf.core</default-render-kit-id>
> </application>
> </faces-config>
>
> adf-faces-config.xml:
> <?xml version="1.0"?>
> <adf-faces-config xmlns="http://xmlns.oracle.com/adf/view/faces/config">
> <debug-output>true</debug-output>
> <!--client-validation-disabled>true</client-validation-disabled-->
>
> <accessibility-mode>#{prefs.proxy.accessibilityMode
> }</accessibility-mode>
> <!-- you can use EL to get the skin. This allows the skin to change
> between
> requests. -->
> <skin-family>#{prefs.proxy.skinFamily}</skin-family>
> <!--skin-family>oracle</skin-family-->
>
> <!-- Uncomment any of these to enable them -->
> <!-- accessibility-mode>inaccessible</accessibility-mode -->
>
> <!-- A silly use of EL: English users get Simple Skin, others get Oracle
> Skin -->
> <!-- skin-family>#{facesContext.viewRoot.locale.language=='en' ?
> 'simple'
> : 'oracle'}</skin-family -->
>
> <!--
> oracle-help-servlet-url>http://helponline.oracle.com/jdeveloper/help/
> </oracle-help-servlet-url
> -->
>
> </adf-faces-config>
>
>
> adf-faces-skins.xml:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <skins xmlns="http://xmlns.oracle.com/adf/view/faces/skin">
> <skin>
> <id>
> purple.desktop
> </id>
> <family>
> purple
> </family>
> <render-kit-id>
> oracle.adf.desktop
> </render-kit-id>
> <style-sheet-name>
> skins/purple/purpleSkin.css
> </style-sheet-name>
> <bundle-name>
> oracle.adfdemo.view.faces.resource.SkinBundle
> </bundle-name>
> </skin>
> <skin>
> <id>
> beach.desktop
> </id>
> <family>
> beach
> </family>
> <render-kit-id>
> oracle.adf.desktop
> </render-kit-id>
> <style-sheet-name>
> skins/beach/beach.css
> </style-sheet-name>
> </skin>
> </skins>
>
>
> Now, thats it. Should work perfectly!
>
> Have fun!
> Chris
>
>
--
Vuntaanu...
Samba.
Re: No Grammer available for "http://java.sun.com/jsf/facelets
Posted by Christoph Lassner <Ch...@esg.de>.
Hi Samba,
ok, now since you didn't attach a list of your lib-folder, I'll just send
you some sources for the most basic application for an ADF and facelets
application.
Files in the lib folder:
adf-facelets.jar // This ensures Facelets support for
the ADF Faces components
adf-faces-api-10_1_3_0_4.jar // Latest adf-faces release (api)
adf-faces-impl-10_1_3_0_4.jar // ... (impl)
adfshare-3549S.jar // adfshare library (recommended)
common-annotations.jar // commons...
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
el-api.jar // EL
el-ri.jar
jsf-api.jar // JSF and
jsf-facelets.jar // Facelets
jsf-impl.jar //...
jstl.jar
standard.jar
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>Example</description>
<display-name>adffaces</display-name>
<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>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</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>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</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>
<!-- this must match your faces servlet name -->
</filter-mapping>
<!-- resource loader servlet -->
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</
servlet-class>
</servlet>
<!-- 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>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<!-- 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>
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>
<!-- from project setup -->
<application>
<!-- Use the ADF RenderKit -->
<default-render-kit-id>oracle.adf.core</default-render-kit-id>
</application>
</faces-config>
adf-faces-config.xml:
<?xml version="1.0"?>
<adf-faces-config xmlns="http://xmlns.oracle.com/adf/view/faces/config">
<debug-output>true</debug-output>
<!--client-validation-disabled>true</client-validation-disabled-->
<accessibility-mode>#{prefs.proxy.accessibilityMode}</accessibility-mode>
<!-- you can use EL to get the skin. This allows the skin to change
between
requests. -->
<skin-family>#{prefs.proxy.skinFamily}</skin-family>
<!--skin-family>oracle</skin-family-->
<!-- Uncomment any of these to enable them -->
<!-- accessibility-mode>inaccessible</accessibility-mode -->
<!-- A silly use of EL: English users get Simple Skin, others get Oracle
Skin -->
<!-- skin-family>#{facesContext.viewRoot.locale.language=='en' ? 'simple'
: 'oracle'}</skin-family -->
<!--
oracle-help-servlet-url>http://helponline.oracle.com/jdeveloper/help/</oracle-help-servlet-url
-->
</adf-faces-config>
adf-faces-skins.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<skins xmlns="http://xmlns.oracle.com/adf/view/faces/skin">
<skin>
<id>
purple.desktop
</id>
<family>
purple
</family>
<render-kit-id>
oracle.adf.desktop
</render-kit-id>
<style-sheet-name>
skins/purple/purpleSkin.css
</style-sheet-name>
<bundle-name>
oracle.adfdemo.view.faces.resource.SkinBundle
</bundle-name>
</skin>
<skin>
<id>
beach.desktop
</id>
<family>
beach
</family>
<render-kit-id>
oracle.adf.desktop
</render-kit-id>
<style-sheet-name>
skins/beach/beach.css
</style-sheet-name>
</skin>
</skins>
Now, thats it. Should work perfectly!
Have fun!
Chris
Re: Re: No Grammer available for "http://java.sun.com/jsf/facelets
Posted by Samba <sa...@gmail.com>.
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 <Ch...@esg.de> 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 <sa...@gmail.com> 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 <Ch...@esg.de> 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 <sa...@gmail.com> 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.
Re: No Grammer available for "http://java.sun.com/jsf/facelets
Posted by Samba <sa...@gmail.com>.
Also, Chris, Just now I tried to keep View Handler in faces-config and
removed it from web.xml.
Surprisingly,
No change in the out put .
The same thing happened.
Hope to find a solution quickly,with help from you friends,
Samba.
On 9/4/06, Samba <sa...@gmail.com> wrote:
>
> 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 < Christoph.Lassner@esg.de> 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 <sa...@gmail.com> 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.
Antwort: Re: No Grammer available for "http://java.sun.com/jsf/facelets
Posted by Christoph Lassner <Ch...@esg.de>.
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 <sa...@gmail.com> 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 <Ch...@esg.de> 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 <sa...@gmail.com> 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.
Re: No Grammer available for "http://java.sun.com/jsf/facelets
Posted by Samba <sa...@gmail.com>.
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 <Ch...@esg.de> 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 <sa...@gmail.com> 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.
Antwort: No Grammer available for "http://java.sun.com/jsf/facelets
Posted by Christoph Lassner <Ch...@esg.de>.
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 <sa...@gmail.com> 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.