Author: ilya_shaikovsky
Date: 2010-10-26 13:10:27 -0400 (Tue, 26 Oct 2010)
New Revision: 19674
Added:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/collapsiblePanel/
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/collapsiblePanel/samples/
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/collapsiblePanel/samples/simple-sample.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/collapsiblePanel/simple.xhtml
Modified:
trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml
Log:
https://jira.jboss.org/browse/RF-8829
Modified:
trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-10-26
17:08:36 UTC (rev 19673)
+++
trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-10-26
17:10:27 UTC (rev 19674)
@@ -317,7 +317,7 @@
</sample>
</samples>
</demo>
- <demo>
+ <demo new="true">
<id>tabPanel</id>
<name>rich:tabPanel</name>
<samples>
@@ -338,6 +338,16 @@
</sample>
</samples>
</demo>
+ <demo new="true">
+ <id>collapsiblePanel</id>
+ <name>rich:collapsiblePanel</name>
+ <samples>
+ <sample>
+ <id>simple</id>
+ <name>Simple Collapsible Panel</name>
+ </sample>
+ </samples>
+ </demo>
<demo>
<id>accordion</id>
<name>rich:accordion</name>
Added:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/collapsiblePanel/samples/simple-sample.xhtml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/collapsiblePanel/samples/simple-sample.xhtml
(rev 0)
+++
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/collapsiblePanel/samples/simple-sample.xhtml 2010-10-26
17:10:27 UTC (rev 19674)
@@ -0,0 +1,51 @@
+<!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:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+ <h:form>
+ <p><b>Here is simple panel in client mode:</b></p>
+
+ <rich:collapsiblePanel header="Overview" switchType="client">
+ <h:graphicImage value="/images/icons/common/rf.png"
+ style="float:right" />
+ RichFaces is a component library for JSF and an advanced framework for
+ easily integrating AJAX capabilities into business applications.
+ <ul>
+ <li>100+ AJAX enabled components in two libraries</li>
+ <li>a4j: page centric AJAX controls</li>
+ <li>rich: self contained, ready to use components</li>
+ <li>Whole set of JSF benefits while working with AJAX</li>
+ <li>Skinnability mechanism</li>
+ <li>Component Development Kit (CDK)</li>
+ <li>Dynamic resources handling</li>
+ <li>Testing facilities for components, actions, listeners, and
+ pages</li>
+ <li>Broad cross-browser support</li>
+ <li>Large and active community</li>
+ </ul>
+ </rich:collapsiblePanel>
+
+ <p><b>And that panel switched by ajax and closed by
default:</b></p>
+
+ <rich:collapsiblePanel header="JSF 2 and RichFaces 4"
expanded="false"
+ switchType="ajax">
+ <p>We are working hard on RichFaces 4.0 which will have full JSF
+ 2 integration. That is not all though, here is a summary of updates
+ and features:</p>
+ <ul>
+ <li>Redesigned modular repository and build system.</li>
+ <li>Simplified Component Development Kit with annotations,
+ faces-config extensions, advanced templates support and more..</li>
+ <li>Ajax framework improvements extending the JSF 2
+ specification.</li>
+ <li>Component review for consistency, usability, and redesign
+ following semantic HTML principles where possible.</li>
+ <li>Both server-side and client-side performance optimization.</li>
+ <li>Strict code clean-up and review.</li>
+ </ul>
+ </rich:collapsiblePanel>
+ </h:form>
+</ui:composition>
\ No newline at end of file
Added:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/collapsiblePanel/simple.xhtml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/collapsiblePanel/simple.xhtml
(rev 0)
+++
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/collapsiblePanel/simple.xhtml 2010-10-26
17:10:27 UTC (rev 19674)
@@ -0,0 +1,25 @@
+<!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">
+
+<ui:composition>
+ <p><b>collapsiblePanel</b> representation is fully analogous to
simple
+ <b>rich:panel</b> component. Additionally that component could be toggled
+ between two representations. In collapsed state only header shown and
+ in expanded state there is complete panel.</p>
+ <p>As most of switchable components it has three <b>switch types</b>
for
+ switching between states - <b>ajax</b>, <b>server</b> and
<b>client</b>
+ </p>
+ <ui:include src="#{demoNavigator.sampleIncludeURI}" />
+ <ui:include src="/templates/includes/source-view.xhtml">
+ <ui:param name="src" value="#{demoNavigator.sampleIncludeURI}"
/>
+ <ui:param name="sourceType" value="xhtml" />
+ <ui:param name="openLabel" value="View Source" />
+ <ui:param name="hideLabel" value="Hide Source" />
+ </ui:include>
+ <p>In ajax and server mode <b>PanelToggleEvent</b> queued and could be
handled
+ using <b>Listener</b> defined via <b>toggleListener</b>
attribute</p>
+</ui:composition>
+</html>
\ No newline at end of file