Author: SergeySmirnov
Date: 2007-10-09 21:11:05 -0400 (Tue, 09 Oct 2007)
New Revision: 3305
Added:
trunk/samples/jQuery-sample/
trunk/samples/jQuery-sample/pom.xml
trunk/samples/jQuery-sample/src/
trunk/samples/jQuery-sample/src/main/
trunk/samples/jQuery-sample/src/main/java/
trunk/samples/jQuery-sample/src/main/resources/
trunk/samples/jQuery-sample/src/main/resources/japanCherry.skin.properties
trunk/samples/jQuery-sample/src/main/webapp/
trunk/samples/jQuery-sample/src/main/webapp/WEB-INF/
trunk/samples/jQuery-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/jQuery-sample/src/main/webapp/WEB-INF/web.xml
trunk/samples/jQuery-sample/src/main/webapp/index.jsp
trunk/samples/jQuery-sample/src/main/webapp/jQuery.xhtml
Log:
jQuery component sample has been added. init version
Property changes on: trunk/samples/jQuery-sample
___________________________________________________________________
Name: svn:ignore
+ target
.classpath
.project
.settings
Added: trunk/samples/jQuery-sample/pom.xml
===================================================================
--- trunk/samples/jQuery-sample/pom.xml (rev 0)
+++ trunk/samples/jQuery-sample/pom.xml 2007-10-10 01:11:05 UTC (rev 3305)
@@ -0,0 +1,23 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>samples</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.2.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.samples</groupId>
+ <artifactId>jQuery-sample</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+ <name>jQuery-sample Maven Webapp</name>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>jQuery</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>jQuery-sample</finalName>
+ </build>
+</project>
\ No newline at end of file
Added: trunk/samples/jQuery-sample/src/main/resources/japanCherry.skin.properties
===================================================================
--- trunk/samples/jQuery-sample/src/main/resources/japanCherry.skin.properties
(rev 0)
+++ trunk/samples/jQuery-sample/src/main/resources/japanCherry.skin.properties 2007-10-10
01:11:05 UTC (rev 3305)
@@ -0,0 +1,35 @@
+# render.kit=HTML_BASIC
+#Colors
+headerBackgroundColor=#E8BDBD
+headTextColor=#980808
+selectBackgroundColor=#d9E0E0
+generalBackgroundColor=#F8ECEC
+generalTextColor=#000000
+panelTextColor=#000000
+shadowBackgroundColor=#AFB1B2
+shadowOpacity=2
+tableBorderColor=#C0C0C0
+tableBackgroundColor=#ffffff
+selectControlColor=#980808
+controlBorderColor=#DFA5A5
+interfaceLevel3D=10
+overAllBackground=#ffffff
+generalLinkColor=#980808
+hoverLinkColor=#E10000
+visitedLinkColor=#c0c0c0
+# Fonts
+headerSizeFont=12px
+headerFamilyFont=Arial, Verdana, sans-serif
+tabSizeFont=11
+tabFamilyFont=Arial, Verdana, sans-serif
+buttonSizeFont=12
+buttonFamilyFont=Arial, Verdana, sans-serif
+buttonRadiusCorner=12
+panelRadiusCorner=5
+tabRadiusCorner=5
+
+# Preferable
+preferablePanelBodyPadding=0px 0px 0px 0px
+preferableDataSizeFont=11px
+preferableDataFamilyFont=Arial, Verdana, sans-serif
+preferableHeaderWeightFont=bold
Added: trunk/samples/jQuery-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/jQuery-sample/src/main/webapp/WEB-INF/faces-config.xml
(rev 0)
+++ trunk/samples/jQuery-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-10-10
01:11:05 UTC (rev 3305)
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.0//EN"
+
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+</faces-config>
Added: trunk/samples/jQuery-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/jQuery-sample/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++ trunk/samples/jQuery-sample/src/main/webapp/WEB-INF/web.xml 2007-10-10 01:11:05 UTC
(rev 3305)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>Richfaces Gmap Sample</description>
+ <display-name>gmap-sample</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.ajax4jsf.SKIN</param-name>
+ <param-value>japanCherry</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
+ <param-value>com.sun.facelets.FaceletViewHandler</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </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-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>
Added: trunk/samples/jQuery-sample/src/main/webapp/index.jsp
===================================================================
--- trunk/samples/jQuery-sample/src/main/webapp/index.jsp (rev 0)
+++ trunk/samples/jQuery-sample/src/main/webapp/index.jsp 2007-10-10 01:11:05 UTC (rev
3305)
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head></head>
+ <body>
+ <jsp:forward page="jQuery.jsf" />
+ </body>
+</html>
\ No newline at end of file
Added: trunk/samples/jQuery-sample/src/main/webapp/jQuery.xhtml
===================================================================
--- trunk/samples/jQuery-sample/src/main/webapp/jQuery.xhtml (rev
0)
+++ trunk/samples/jQuery-sample/src/main/webapp/jQuery.xhtml 2007-10-10 01:11:05 UTC (rev
3305)
@@ -0,0 +1,31 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
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"
+
xmlns:rich="http://labs.jboss.com/jbossrichfaces/ui/jQuery"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+ <f:view contentType="text/html" >
+
+ <body>
+ <form id="form">
+ <h:panelGrid id="menu" columns="1">
+
+ <h:graphicImage
value="http://images.businessweek.com/tc/reviews/icons/game_50x50.gi... />
+ <h:graphicImage
value="http://www.loinhead.net/images/iconmgs.gif"/>
+ <h:graphicImage
value="http://img.dooyoo.co.uk/GB_EN/yoo3/pix/hp/pc-video-games.gif" />
+ <h:graphicImage
value="http://www.archos.com/img/av_700/picto_game.gif"
/>
+
+ </h:panelGrid>
+
+ <rich:jQuery name="makeFat" timing="onJScall"
query="stop().animate({width:param.ewidth})" />
+ <rich:jQuery name="makeThin" timing="onJScall"
query="stop().animate({width:'50px'})" />
+ <rich:jQuery selector="#menu img" timing="onload"
query="mouseover(function(){makeFat(this,{ewidth:'120px'});})" />
+ <rich:jQuery selector="#menu img" timing="onload"
query="mouseout(function(){makeThin(this);})" />
+
+ </form>
+ </body>
+</f:view>
+</html>