You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ck...@apache.org on 2010/03/18 16:34:24 UTC

svn commit: r924866 - in /myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main: java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java webapp/components/table/treeTable/treeTablePathStamp.xhtml

Author: ckormos
Date: Thu Mar 18 15:34:23 2010
New Revision: 924866

URL: http://svn.apache.org/viewvc?rev=924866&view=rev
Log:
added new demo for showing "pathStamp" facet for tree table.

Added:
    myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/components/table/treeTable/treeTablePathStamp.xhtml
Modified:
    myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java

Modified: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java?rev=924866&r1=924865&r2=924866&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java (original)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java Thu Mar 18 15:34:23 2010
@@ -35,7 +35,8 @@ public class TreeTableDemo extends Abstr
         SingleRowSelection,
         MultipleRowSelection,
         Simple,
-        Detailed
+        Detailed,
+        PathStamp
 	}
 
 	/**
@@ -62,6 +63,11 @@ public class TreeTableDemo extends Abstr
                         "/components/table/treeTable/treeTableMultipleRowSelection.xhtml"
                 }, getSummaryResourcePath()));
 
+        addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.PathStamp, "Path Stamp", this,
+                new String[]{
+                        "/components/table/treeTable/treeTablePathStamp.xhtml"
+                }, getSummaryResourcePath()));
+
         addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
                 new String[]{
                         "/components/table/treeTable/treeTableSimple.xhtml"

Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/components/table/treeTable/treeTablePathStamp.xhtml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/components/table/treeTable/treeTablePathStamp.xhtml?rev=924866&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/components/table/treeTable/treeTablePathStamp.xhtml (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/webapp/components/table/treeTable/treeTablePathStamp.xhtml Thu Mar 18 15:34:23 2010
@@ -0,0 +1,31 @@
+<ui:composition 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:tr="http://myfaces.apache.org/trinidad"
+                template="/pages/componentDemo.xhtml">
+
+    <ui:define name="demoContent">
+
+        <tr:treeTable var="foo" value="#{treeTableBean.model}" width="100%">
+            <f:facet name="pathStamp">
+                <tr:outputText value="#{foo.name}"/>
+            </f:facet>
+            <f:facet name="nodeStamp">
+                <tr:column>
+                    <f:facet name="header">
+                        <tr:outputText value="Name"/>
+                    </f:facet>
+                    <tr:outputFormatted value="&lt;b>#{foo.name}&lt;/b>"/>
+                </tr:column>
+            </f:facet>
+            <tr:column>
+                <f:facet name="header">
+                    <h:outputText value="Gender"/>
+                </f:facet>
+                <h:outputText value="#{foo.gender}"/>
+            </tr:column>
+        </tr:treeTable>
+
+    </ui:define>
+</ui:composition>