[richfaces-svn-commits] JBoss Rich Faces SVN: r18587 - in trunk/examples/richfaces-showcase/src/main: webapp/resources/js and 28 other directories.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Aug 12 08:44:46 EDT 2010
Author: ilya_shaikovsky
Date: 2010-08-12 08:44:43 -0400 (Thu, 12 Aug 2010)
New Revision: 18587
Added:
trunk/examples/richfaces-showcase/src/main/webapp/templates/includes/source-view.xhtml
Modified:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/components/sh/SyntaxHighlighter.java
trunk/examples/richfaces-showcase/src/main/webapp/resources/js/sh.js
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/ajax.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/attachQueue/attachQueue.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/commandButton/commandButton.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/commandLink/commandLink.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataGrid/grid.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/dataScrollerAPI.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/simpleScrolling.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/simpleTable.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableFiltering.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableSorting.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableStyling.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/functions/functions.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jquery/jquery.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/list/lists.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/log/log.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/mediaOutput/flashUsage.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/simple.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/panel/lookCustomization.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/panel/simple.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/clientParam.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/param.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/skinChange.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/modalPopup.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/simplePopup.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/push/push.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/queue/queue.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/simpleGrid.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/referencedusage.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/simple.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/viewusage.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/subTableToggleControl/subTableToggleControl.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/simple.xhtml
Log:
https://jira.jboss.org/browse/RF-9022
Modified: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/components/sh/SyntaxHighlighter.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/components/sh/SyntaxHighlighter.java 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/components/sh/SyntaxHighlighter.java 2010-08-12 12:44:43 UTC (rev 18587)
@@ -13,6 +13,7 @@
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
+import org.ajax4jsf.javascript.JSFunction;
import org.ajax4jsf.resource.ResourceNotFoundException;
@FacesComponent(value = "syntaxHighlighter")
@@ -23,13 +24,12 @@
@ResourceDependency(library = "js", name = "shBrushJava.js"),
@ResourceDependency(library = "js", name = "shBrushXml.js"),
@ResourceDependency(library = "js", name = "shBrushCss.js"),
- @ResourceDependency(library = "js", name = "shBrushPlain.js"),
- @ResourceDependency(library="js", name="sh.js")})
+ @ResourceDependency(library = "js", name = "shBrushPlain.js")})
public class SyntaxHighlighter extends UIComponentBase{
private static final String COMPONENT_FAMILY = "org.richfaces.SyntaxHighlighter";
private static final String DEFAULT_SOURCE_TYPE = "xhtml";
- enum propertyKeys {sourceType, src};
+ enum propertyKeys {sourceType, src, style, styleClass};
@Override
public String getFamily() {
return COMPONENT_FAMILY;
@@ -71,10 +71,16 @@
ResponseWriter writer = context.getResponseWriter();
writer.startElement("div", null);
writer.writeAttribute("id", this.getClientId(), null);
+ writer.writeAttribute("class", this.getStyleClass(), null);
+ writer.writeAttribute("style", this.getStyle(), null);
writer.startElement("pre", null);
writer.writeAttribute("class", new StringBuffer().append("brush: ").append(this.getSourceType()), null);
renderContent(context);
writer.endElement("pre");
+ JSFunction function = new JSFunction("SyntaxHighlighter.all");
+ writer.startElement("script", null);
+ writer.write(function.toScript());
+ writer.endElement("script");
writer.endElement("div");
}
@@ -93,5 +99,18 @@
public void setSrc(String src) {
getStateHelper().put(propertyKeys.src, src);
}
-
+ public String getStyle() {
+ return (String)getStateHelper().eval(propertyKeys.style);
+ }
+
+ public void setStyle(String style) {
+ getStateHelper().put(propertyKeys.style, style);
+ }
+ public String getStyleClass() {
+ return (String)getStateHelper().eval(propertyKeys.styleClass);
+ }
+
+ public void setStyleClass(String styleClass) {
+ getStateHelper().put(propertyKeys.styleClass, styleClass);
+ }
}
Modified: trunk/examples/richfaces-showcase/src/main/webapp/resources/js/sh.js
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/resources/js/sh.js 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/resources/js/sh.js 2010-08-12 12:44:43 UTC (rev 18587)
@@ -1 +1,14 @@
-$(document).ready(SyntaxHighlighter.all());
\ No newline at end of file
+function expandHighlighter() {
+ jQuery('.show').each(function() {
+ this.style.display = 'none'
+ });
+ jQuery('.source').slideDown();
+ jQuery('.hide').fadeIn();
+}
+function collapseHighlighter() {
+ jQuery('.hide').each(function() {
+ this.style.display = 'none'
+ });
+ jQuery('.show').fadeIn();
+ jQuery('.source').slideUp();
+}
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/ajax.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/ajax.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/ajax.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -3,14 +3,18 @@
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:at="http://richfaces.org/demo/app-taglib">
+ xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
<p>The behavior that adds javascript call for sending Ajax request
to specified event on parent component</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}"/>
- <at:syntaxHighlighter id="sh1" src="#{demoNavigator.sampleIncludeURI}" sourceType="xhtml"/>
+ <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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -3,15 +3,19 @@
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:at="http://richfaces.org/demo/app-taglib">
+ xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
- <p>Typical use-case of dependent select components. When you choosing
- the type in the first select - corresponding items appears in second one.
- </p>
+ <p>Typical use-case of dependent select components. When you
+ choosing the type in the first select - corresponding items appears in
+ second one.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter src="#{demoNavigator.sampleIncludeURI}" sourceType="xhtml"/>
+ <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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/attachQueue/attachQueue.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/attachQueue/attachQueue.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/attachQueue/attachQueue.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
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:c="http://java.sun.com/jstl/core"
- xmlns:rich="http://java.sun.com/jsf/composite/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:a4j="http://richfaces.org/a4j">
<p>In RichFaces 4 all request settings related to queue was moved
out of components attributes and now customization available using new
a4j:attachQueue tag. Next sample shows how requestGroupingId (former
@@ -17,8 +14,11 @@
<p>If you will click the buttons fast - requests will be combined
and only last click will be processed</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
-
- <at:syntaxHighlighter
- src="#{demoNavigator.sampleIncludeURI}" sourceType="xhtml"/>
+ <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>
</ui:composition>
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/commandButton/commandButton.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/commandButton/commandButton.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/commandButton/commandButton.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,17 +2,18 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>The combination similar to h:commandButton with f:ajax. Inherits
all a4j:ajax special options.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter
- src="#{demoNavigator.sampleIncludeURI}"
- sourceType="xhtml" />
+ <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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/commandLink/commandLink.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/commandLink/commandLink.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/commandLink/commandLink.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -1,20 +1,19 @@
<!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:a4j="http://richfaces.org/a4j"
- xmlns:at="http://richfaces.org/demo/app-taglib">
-
- <ui:composition>
-
- <p>
- The combination similar to h:commandLink with f:ajax. Inherits all
- a4j:ajax special options.
- </p>
+ 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>The combination similar to h:commandLink with f:ajax. Inherits
+ all a4j:ajax special options.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter
- src="#{demoNavigator.sampleIncludeURI}"
- sourceType="xhtml" />
+ <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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>ComponentControl allows to call JS api on any component. It
@@ -14,7 +11,11 @@
<p>Currently target component should be defined by using clientId,
but we planning to add lookup by short id in nearest versions.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter
- 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataGrid/grid.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataGrid/grid.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataGrid/grid.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>The component takes iterates a model as any other iteration
@@ -14,6 +11,11 @@
definitions as for <h:panelGrid>.</p>
<p>The following example shows the dataGrid component in use:</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/dataScrollerAPI.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/dataScrollerAPI.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/dataScrollerAPI.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>dataScroller provides cliens side API functions in order to
@@ -20,7 +17,12 @@
<p>This simple sample shows how the scroller could be controlled
via API from external controls(arrows images)</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/simpleScrolling.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/simpleScrolling.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/simpleScrolling.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>dataScroller component provided in order to implement Ajax
@@ -14,7 +11,12 @@
defined by end-developer in order to synchronize different
dataScrollers attached to the same table as in example below.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/simpleTable.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/simpleTable.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/simpleTable.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,15 +2,17 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>This sample shows simple master-detail table implemented using<b>
tbl:dataTable</b> and<b> tbl:subtable</b> components</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableFiltering.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableFiltering.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableFiltering.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,13 +2,15 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableSorting.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableSorting.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableSorting.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>Here is simple example of sorting feature of RichFaces Table
@@ -17,6 +14,11 @@
<p>Also you could use #
{rich:component('tableId')}.sort('columnId', ['sortOrder']) JS api</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableStyling.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableStyling.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataTable/tableStyling.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,17 +2,18 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:fn="http://java.sun.com/jsp/jstl/functions"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>This sample shows simple table styling. The table appears in
zebra-style and has highlighting of hovered row.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/extendedDataTable/simpleTable.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>ExtendedDataTable component provides next set of features:</p>
@@ -17,7 +14,12 @@
</ul>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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 order to turn on Ajax loading - just specify clientRows
attribute with number of rows to be loaded on the client</p>
</ui:composition>
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/functions/functions.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/functions/functions.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/functions/functions.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,11 +2,8 @@
<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"
- xmlns:at="http://richfaces.org/demo/app-taglib">
-
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
<p>RichFaces provides set of functions for more convinient work
with DOM tree and to use some server side expressions.</p>
<p>Here is the current list:</p>
@@ -22,15 +19,20 @@
<li><b>rich:findComponent(id)</b> - returns component instance
for given short id</li>
</ul>
- <p>For example the result of #{rich:element('input')} expression
+ <p>For example the result of # {rich:element('input')} expression
will be - document.getElementById('formId:input').</p>
<p>And here is one more simple example. There is no need in Bean
creation in order to store the value. It's picked from component
instance by using rich:findComponent call.</p>
-
+
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>One more sample could be found at dataScroller API page. There
are rich:component used for calling JS API of dataScroller.</p>
<p>This set goes to be extended continously. Rise jira or forum
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jquery/jquery.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jquery/jquery.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jquery/jquery.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,13 +2,14 @@
<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"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
-
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,9 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
@@ -15,7 +13,12 @@
of a page is re-rendered when a user hovers over the names.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/list/lists.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/list/lists.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/list/lists.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p><b>rich:list</b> component allows to build one of the HTML lists
@@ -14,7 +11,12 @@
and renders them according to <b>type</b> attribute.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/log/log.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/log/log.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/log/log.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -1,18 +1,20 @@
<!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:a4j="http://richfaces.org/a4j"
- xmlns:at="http://richfaces.org/demo/app-taglib"
- >
-
- <ui:composition>
+ 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>Log component allows you to inspect client side activities
during an Ajax request. It shows reuqest data, response data, DOM tree
changes on update and other useful debug information.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
-</ui:composition>
+</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/mediaOutput/flashUsage.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/mediaOutput/flashUsage.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/mediaOutput/flashUsage.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,14 +2,17 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>SWF Movie:</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,9 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>a4j:mediaOutput allows to generate images, video, sounds and
@@ -26,9 +24,13 @@
value of 'value' attribute plays the role of a cache key.</p>
<p>Dynamically generated JPEG file:</p>
-
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,17 +2,19 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://java.sun.com/jsf/composite/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>Next sample shows how you could simply create composite
component from standard h:messages and a4j:outputPanel in order to get
them updated for any ajax request without render definition.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/simple.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/simple.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/outputPanel/simple.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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://java.sun.com/jsf/composite/rich"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
@@ -28,7 +25,12 @@
</ul>
</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/panel/lookCustomization.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/panel/lookCustomization.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/panel/lookCustomization.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,14 +2,16 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/panel/simple.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/panel/simple.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/panel/simple.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>The panel is a rectangle area on a page that may contain any
@@ -15,6 +12,11 @@
can be customizable using with pre-defined number of CSS classes.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/clientParam.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/clientParam.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/clientParam.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://java.sun.com/jsf/composite/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>It is possible to use javascript variable of custom function for
@@ -17,7 +14,12 @@
browser screen size values.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/param.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/param.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/param.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://java.sun.com/jsf/composite/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>a4j:actionparam is a component which extends regular f:param
@@ -14,7 +11,12 @@
update model values without invoking even a single line of java code on
the server side.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/skinChange.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/skinChange.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/param/skinChange.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://java.sun.com/jsf/composite/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>You can use a4j:param not only with ajax components, but with
@@ -14,7 +11,12 @@
whole page is refreshed with the regular h:link.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -3,9 +3,7 @@
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://java.sun.com/jsf/composite/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:rich="http://richfaces.org/rich">
<ui:composition>
<p>a4j:poll is one of the way how you can organize the periodical
@@ -20,9 +18,13 @@
the page based on the data taken from the server. To turn off polling,
press "Stop Polling" button.</p>
-
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
<rich:panel>
<b>NOTE:</b>polling is automatically disabled in this demo after one minute of working.
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/modalPopup.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/modalPopup.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/modalPopup.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>There you could check the modal panel which blocks the main
@@ -14,7 +11,12 @@
<p>In that sample the panel also defined as resizable so you could
change its sizes using mouse</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/simplePopup.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/simplePopup.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/popup/simplePopup.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>Popup panel component used to create any kind of popups on the page.</p>
@@ -21,7 +18,12 @@
as defined to use <b>autosizing</b> according to it's content</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>Besides this sample shows two variants of working with the component JS API:</p>
<ul>
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/push/push.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/push/push.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/push/push.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,9 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>The <b><a4j:push></b> periodically perform AJAX request to
@@ -18,7 +16,12 @@
specifies the interval in ms. for call push request. Simple example of
usage:</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/queue/queue.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/queue/queue.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/queue/queue.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -1,12 +1,7 @@
<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"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:r="http://java.sun.com/jsf/composite/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<p>JSF 2 provides queue mechanism out-of the box already. And
RichFaces queue just provides some additional customizations to improve
@@ -33,7 +28,12 @@
global for the form.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>Queue could be defined as</p>
<ul>
<li><b>Default for view.</b> In this case - the parameters will
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://java.sun.com/jsf/composite/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p><b>a4j:region</b> component designed for marking zones which
@@ -24,6 +21,11 @@
declarations and pointed to panelGrid id. And the second panel inputs
just wrapped to region without any additional execute definitions.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/simpleGrid.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/simpleGrid.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/simpleGrid.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,17 +2,18 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:r="http://java.sun.com/jsf/composite/rich"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>a4j:repeat is a base iteration component of RichFaces. It allows
to create any markups based on iterative data. This sample shows simple
grid from capitals list.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/referencedusage.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/referencedusage.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/referencedusage.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://java.sun.com/jsf/composite/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>Example of status which referenced from the components</p>
<p>There are two inputs with Ajax behaviors attached. And there are
@@ -14,6 +11,11 @@
attributes values.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/simple.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/simple.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/simple.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,16 +2,18 @@
<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://java.sun.com/jsf/composite/rich"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>Example of form scoped status. It's defined within a form and
handles all Ajax requests within this form</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/viewusage.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/viewusage.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/status/viewusage.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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://java.sun.com/jsf/composite/rich"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>a4j:status is an indicator of an Ajax request. It has two states
@@ -22,6 +19,11 @@
<p>Example of View scoped status. It should be defined outside of
any form and will handle all the Ajax requests within the view.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/subTableToggleControl/subTableToggleControl.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/subTableToggleControl/subTableToggleControl.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/subTableToggleControl/subTableToggleControl.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,10 +2,7 @@
<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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<p>This sample shows simple master-detail table implemented using<b>
@@ -20,8 +17,12 @@
<li>The developer could get control on current states of
subTables using its <b>expanded</b> attribute.</li>
</ul>
-
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/simple.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/simple.xhtml 2010-08-12 12:18:20 UTC (rev 18586)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/simple.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -2,14 +2,16 @@
<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"
- xmlns:at="http://richfaces.org/demo/app-taglib">
+ xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <at:syntaxHighlighter 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>
</ui:composition>
</html>
\ No newline at end of file
Added: trunk/examples/richfaces-showcase/src/main/webapp/templates/includes/source-view.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/templates/includes/source-view.xhtml (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/webapp/templates/includes/source-view.xhtml 2010-08-12 12:44:43 UTC (rev 18587)
@@ -0,0 +1,41 @@
+<!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:at="http://richfaces.org/demo/app-taglib"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+<ui:composition>
+ <f:subview>
+ <style>
+ .sourceView{
+ padding-top: 10px;
+ }
+ </style>
+ <a4j:outputPanel styleClass="sourceView" layout="block">
+ <a4j:outputPanel layout="block" id="show">
+ <h:outputLink value="#"
+ onclick="jQuery(#{rich:element('hide')}).slideDown(); jQuery(#{rich:element('show')}).hide(); return false;"
+ id="sh1" styleClass="show">
+ <h:outputText value="#{empty openlabel?'View Source' : openlabel }" />
+ </h:outputLink>
+ </a4j:outputPanel>
+
+ <a4j:outputPanel id="hide" layout="block" style="display:none">
+ <h:outputLink styleClass="hide" value="#"
+ onclick="jQuery(#{rich:element('hide')}).slideUp(); jQuery(#{rich:element('show')}).show(500); return false;">
+ <h:outputText value="#{empty hidelabel?'Hide Source' : openlabel }" />
+ </h:outputLink>
+ <at:syntaxHighlighter styleClass="source" src="#{src}"
+ sourceType="#{sourceType}" />
+ <h:outputLink styleClass="hide" value="#"
+ onclick="jQuery(#{rich:element('hide')}).slideUp(); jQuery(#{rich:element('show')}).show(500); return false;">
+ <h:outputText value="#{empty hidelabel?'Hide Source' : openlabel }" />
+ </h:outputLink>
+ </a4j:outputPanel>
+ </a4j:outputPanel>
+ </f:subview>
+</ui:composition>
+</html>
\ No newline at end of file
More information about the richfaces-svn-commits
mailing list