myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ckor...@apache.org
Subject svn commit: r924865 - in /myfaces/trinidad/branches/trinidad-1.2.x/trinidad-examples/trinidad-components-showcase/src/main: java/org/apache/myfaces/trinidaddemo/components/table/treeTable/ webapp/components/table/treeTable/
Date Thu, 18 Mar 2010 15:33:47 GMT
Author: ckormos
Date: Thu Mar 18 15:33:47 2010
New Revision: 924865

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

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

Modified: myfaces/trinidad/branches/trinidad-1.2.x/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/branches/trinidad-1.2.x/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java?rev=924865&r1=924864&r2=924865&view=diff
==============================================================================
--- myfaces/trinidad/branches/trinidad-1.2.x/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java
(original)
+++ myfaces/trinidad/branches/trinidad-1.2.x/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java
Thu Mar 18 15:33:47 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/branches/trinidad-1.2.x/trinidad-examples/trinidad-components-showcase/src/main/webapp/components/table/treeTable/treeTablePathStamp.xhtml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/trinidad-1.2.x/trinidad-examples/trinidad-components-showcase/src/main/webapp/components/table/treeTable/treeTablePathStamp.xhtml?rev=924865&view=auto
==============================================================================
--- myfaces/trinidad/branches/trinidad-1.2.x/trinidad-examples/trinidad-components-showcase/src/main/webapp/components/table/treeTable/treeTablePathStamp.xhtml
(added)
+++ myfaces/trinidad/branches/trinidad-1.2.x/trinidad-examples/trinidad-components-showcase/src/main/webapp/components/table/treeTable/treeTablePathStamp.xhtml
Thu Mar 18 15:33:47 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>



Mime
View raw message