Author: ilya_shaikovsky
Date: 2010-11-02 11:46:12 -0400 (Tue, 02 Nov 2010)
New Revision: 19895
Added:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tooltip/
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tooltip/TooltipData.java
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tooltip/samples/tooltip-sample.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tree/samples/tree-sample.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tree/tree.xhtml
Log:
https://jira.jboss.org/browse/RF-9611
https://jira.jboss.org/browse/RF-9583
Added:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tooltip/TooltipData.java
===================================================================
---
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tooltip/TooltipData.java
(rev 0)
+++
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tooltip/TooltipData.java 2010-11-02
15:46:12 UTC (rev 19895)
@@ -0,0 +1,19 @@
+package org.richfaces.demo.tooltip;
+
+import java.util.Date;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ViewScoped;
+@ManagedBean
+@ViewScoped
+public class TooltipData {
+ private int tooltipCounter = 0;
+
+ public int getTooltipCounter() {
+ return tooltipCounter++;
+ }
+ public Date getTooltipDate() {
+ return new Date();
+ }
+
+}
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tooltip/samples/tooltip-sample.xhtml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tooltip/samples/tooltip-sample.xhtml 2010-11-02
15:35:52 UTC (rev 19894)
+++
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tooltip/samples/tooltip-sample.xhtml 2010-11-02
15:46:12 UTC (rev 19895)
@@ -11,6 +11,9 @@
border-width:3px;
padding:10px;
}
+.tooltip-custom-body{
+ background-color:orange;
+}
.tooltip-text {
width: 350px;
height: 80px;
@@ -27,28 +30,28 @@
</style>
<h:panelGrid columns="2">
- <rich:panel id="sample1" styleClass="tooltip-text"
+ <rich:panel id="sample1" styleClass="tooltip-text"
bodyClass="rich-laguna-panel-no-header">
<p>Here you can see <b>default client-side</b> tool-tip</p>
- <rich:tooltip target="sample1" id="tt1"
label="123123231">
+ <rich:tooltip id="tt1">
<span style="white-space: nowrap"> This tool-tip content was
<strong>pre-rendered</strong> to the page.<br />
- The look of this tool-tip is 100% defined by skin. </span>
+ Also the tooltip following mouse by default </span>
</rich:tooltip>
</rich:panel>
<rich:panel id="sample2" styleClass="tooltip-text"
bodyClass="rich-laguna-panel-no-header">
- <p>This tool-tip will <b>follow mouse</b>. Also this tool-tip has
- a <b>delay 0.5 sec</b>, so be patient!</p>
- <rich:tooltip followMouse="true"
- showDelay="500" styleClass="tooltip">
+ <p>This tool-tip will not <b>follow mouse</b>. Also this tool-tip
has
+ a <b>delay 1.5 sec</b>, so be patient!</p>
+ <rich:tooltip followMouse="false"
+ showDelay="1500" bodyClass="tooltip-custom-body"
styleClass="qqq">
<span style="white-space: nowrap"> This tool-tip content also
<strong>pre-rendered</strong> to the page.<br />
However, the look of this tool-tip is customized<br />
by styleClass attribute. </span>
</rich:tooltip>
</rich:panel>
- <h:form>
+ <h:form>
<rich:panel id="sample3" styleClass="tooltip-text"
bodyClass="rich-laguna-panel-no-header">
<p>This tool-tip rendered on server <b>in separate request</b>.
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tree/samples/tree-sample.xhtml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tree/samples/tree-sample.xhtml 2010-11-02
15:35:52 UTC (rev 19894)
+++
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tree/samples/tree-sample.xhtml 2010-11-02
15:46:12 UTC (rev 19895)
@@ -5,22 +5,19 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <h:form id="form">
- <rich:tree id="tree" nodeType="#{node.type}"
var="node"
- value="#{treeBean.rootNodes}" toggleType="client">
- <rich:treeNode type="country">
+<h:form>
+ <rich:tree id="tree" nodeType="#{node.type}"
var="node"
+ value="#{treeBean.rootNodes}" toggleType="client">
+ <rich:treeNode type="country">
#{node.name}
</rich:treeNode>
- <rich:treeNode type="company">
+ <rich:treeNode type="company" icon="/images/tree/disc.gif">
#{node.name}
</rich:treeNode>
- <rich:treeNode type="cd">
- #{node.artist}:#{node.title}
+ <rich:treeNode type="cd" icon="/images/tree/song.gif">
+ #{node.artist} - #{node.title}
</rich:treeNode>
- <rich:treeNode>
- node not found for some reason
- </rich:treeNode>
- </rich:tree>
-
- </h:form>
+ </rich:tree>
+ <a4j:commandButton execute="@all"
render="@all"></a4j:commandButton>
+</h:form>
</ui:composition>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tree/tree.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tree/tree.xhtml 2010-11-02
15:35:52 UTC (rev 19894)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/tree/tree.xhtml 2010-11-02
15:46:12 UTC (rev 19895)
@@ -5,7 +5,14 @@
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
- <p>DESC</p>
+ <p><b>rich:tree</b> is a component that renders a tree control on the
page. The
+ most important tree features are:</p>
+ <ul>
+ <li>Native support for Ajax operations</li>
+ <li>Support for "ajax", "client" and "server"
switch types</li>
+ <li>Selection capabilities</li>
+ <li>Flexible look</li>
+ </ul>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">