incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samba <saas...@gmail.com>
Subject Re: No Grammer available for "http://java.sun.com/jsf/facelets
Date Tue, 05 Sep 2006 07:28:25 GMT
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 <Christoph.Lassner@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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message