Author: ilya_shaikovsky
Date: 2010-07-29 08:48:48 -0400 (Thu, 29 Jul 2010)
New Revision: 18279
Added:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jquery/
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jquery/jquery.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/togglePanel/
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/togglePanel/simple.xhtml
Modified:
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml
Log:
https://jira.jboss.org/browse/RF-8967 jquery and togglePanel started. (not complete
because of issues filled)
Modified:
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-07-29
09:59:51 UTC (rev 18278)
+++
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-07-29
12:48:48 UTC (rev 18279)
@@ -304,6 +304,16 @@
</samples>
</demo>
<demo>
+ <id>togglePanel</id>
+ <name>rich:togglePanel</name>
+ <samples>
+ <sample>
+ <id>simple</id>
+ <name>Simple Toggle Panel</name>
+ </sample>
+ </samples>
+ </demo>
+ <demo>
<id>popup</id>
<name>rich:popup</name>
<samples>
@@ -353,6 +363,16 @@
</sample>
</samples>
</demo>
+ <demo new="true">
+ <id>jquery</id>
+ <name>rich:jQuery</name>
+ <samples>
+ <sample>
+ <id>jquery</id>
+ <name>jQuery usage</name>
+ </sample>
+ </samples>
+ </demo>
</demos>
</group>
</root>
Added:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jquery/jquery.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jquery/jquery.xhtml
(rev 0)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jquery/jquery.xhtml 2010-07-29
12:48:48 UTC (rev 18279)
@@ -0,0 +1,53 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+ <style type="text/css">
+.pic-normal {
+ width: 120px;
+ border: 2px solid #ACBECE;
+}
+
+.wrap1 {
+ width: 190px;
+ height: 130px;
+ float: left;
+}
+</style>
+
+
+ <br />
+
+ <a4j:outputPanel id="gallery">
+ <h:graphicImage value="/images/nature/pic1.jpg" />
+ <h:graphicImage value="/images/nature/pic2.jpg" />
+ <h:graphicImage value="/images/nature/pic3.jpg" />
+ <h:graphicImage value="/images/nature/pic4.jpg" />
+ <h:graphicImage value="/images/nature/pic5.jpg" />
+ <h:graphicImage value="/images/nature/pic6.jpg" />
+ <h:graphicImage value="/images/nature/pic7.jpg" />
+ <h:graphicImage value="/images/nature/pic8.jpg" />
+ <h:graphicImage value="/images/nature/pic9.jpg" />
+ </a4j:outputPanel>
+
+ <br style="clear: both" />
+
+
+ <rich:jQuery selector="#gallery img"
query="addClass('pic-normal')" />
+ <rich:jQuery selector="#gallery img"
+ query="wrap('<div
class=\'wrap1\'></div>')" />
+ <rich:jQuery selector="#gallery img"
+ query="mouseover(function(){enlargePic(this)})" />
+ <rich:jQuery selector="#gallery img"
+ query="mouseout(function(){normalPic(this)})" />
+
+ <rich:jQuery name="enlargePic"
query="stop().animate({width:'180px'})" />
+ <rich:jQuery name="normalPic"
query="stop().animate({width:'120px'})" />
+
+
+
+</ui:composition>
\ No newline at end of file
Added:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/togglePanel/simple.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/togglePanel/simple.xhtml
(rev 0)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/togglePanel/simple.xhtml 2010-07-29
12:48:48 UTC (rev 18279)
@@ -0,0 +1,26 @@
+<!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:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+ <ui:composition>
+ <p>DESC</p>
+ <h:form>
+ <rich:togglePanel id="panel1" activeItem="item1">
+ <rich:togglePanelItem name="item1">
+ <h:outputText value="This Toggle Panel Item 1"/>
+ </rich:togglePanelItem>
+ <rich:togglePanelItem name="item2">
+ <h:outputText value="This Toggle Panel Item 2"/>
+ </rich:togglePanelItem>
+ </rich:togglePanel>
+ </h:form>
+ <h:commandButton value="Switch">
+ <rich:toggleControl forPanel="panel1"/>
+ </h:commandButton>
+ </ui:composition>
+
+</html>
\ No newline at end of file