myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r926033 - in /myfaces/tobago/trunk/example/test/src/main/webapp/tc: popup/ popup/z-index.xhtml sheet/sheet-without-columns-definition.xhtml
Date Mon, 22 Mar 2010 11:21:35 GMT
Author: lofwyr
Date: Mon Mar 22 11:21:35 2010
New Revision: 926033

URL: http://svn.apache.org/viewvc?rev=926033&view=rev
Log:
test pages

Added:
    myfaces/tobago/trunk/example/test/src/main/webapp/tc/popup/
    myfaces/tobago/trunk/example/test/src/main/webapp/tc/popup/z-index.xhtml
      - copied, changed from r924359, myfaces/tobago/trunk/example/test/src/main/webapp/tc/page/page.xhtml
    myfaces/tobago/trunk/example/test/src/main/webapp/tc/sheet/sheet-without-columns-definition.xhtml
      - copied, changed from r924359, myfaces/tobago/trunk/example/test/src/main/webapp/tc/sheet/sheet-simple.xhtml

Copied: myfaces/tobago/trunk/example/test/src/main/webapp/tc/popup/z-index.xhtml (from r924359,
myfaces/tobago/trunk/example/test/src/main/webapp/tc/page/page.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tc/popup/z-index.xhtml?p2=myfaces/tobago/trunk/example/test/src/main/webapp/tc/popup/z-index.xhtml&p1=myfaces/tobago/trunk/example/test/src/main/webapp/tc/page/page.xhtml&r1=924359&r2=926033&rev=926033&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/tc/page/page.xhtml (original)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/tc/popup/z-index.xhtml Mon Mar 22 11:21:35
2010
@@ -7,8 +7,333 @@
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core">
 
-  <tc:page>
-    <tc:textarea value="this is to test the size"/>
+  <tc:page width="800px" height="600px" id="page">
+<f:facet xmlns:f="http://java.sun.com/jsf/core"
+         xmlns:tc="http://myfaces.apache.org/tobago/component"
+         xmlns:tx="http://myfaces.apache.org/tobago/extension"
+         xmlns:tf="http://myfaces.apache.org/tobago/facelet-extension"
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         name="menuBar">
+  <tc:menuBar>
+    <tc:menu label="space -> space -> space">
+    </tc:menu>
 
+    <tc:menu label="Help">
+      <tc:menu label="Help 1">
+        <tc:menu label="Help 1 1">
+        </tc:menu>
+        <tc:menuSeparator/>
+        <tc:menu label="Help 1 2">
+        </tc:menu>
+        <tc:menu label="Help 1 3">
+        </tc:menu>
+        <tc:menu label="Help 1 4">
+        </tc:menu>
+        <tc:menuSeparator/>
+        <tc:menu label="Help 1 5">
+        </tc:menu>
+        <tc:menu label="Help 1 6">
+        </tc:menu>
+        <tc:menu label="Help 1 7">
+        </tc:menu>
+        <tc:menuSeparator/>
+        <tc:menu label="Help 1 8">
+        </tc:menu>
+        <tc:menu label="Help 1 9">
+        </tc:menu>
+        <tc:menu label="Help 1 10">
+        </tc:menu>
+      </tc:menu>
+      <tc:menu label="Help 2">
+        <tc:menu label="Help 2 1">
+        </tc:menu>
+        <tc:menu label="Help 2 2">
+        </tc:menu>
+        <tc:menu label="Help 2 3">
+        </tc:menu>
+        <tc:menu label="Help 2 4">
+        </tc:menu>
+        <tc:menu label="Help 2 5">
+        </tc:menu>
+        <tc:menu label="Help 2 6">
+        </tc:menu>
+        <tc:menu label="Help 2 7">
+        </tc:menu>
+        <tc:menu label="Help 2 8">
+        </tc:menu>
+        <tc:menu label="Help 2 9">
+        </tc:menu>
+        <tc:menu label="Help 2 10">
+        </tc:menu>
+      </tc:menu>
+      <tc:menu label="Help 3">
+        <tc:menu label="Help 3 1">
+        </tc:menu>
+        <tc:menu label="Help 3 2">
+        </tc:menu>
+        <tc:menu label="Help 3 3">
+        </tc:menu>
+        <tc:menu label="Help 3 4">
+        </tc:menu>
+        <tc:menu label="Help 3 5">
+        </tc:menu>
+        <tc:menu label="Help 3 6">
+        </tc:menu>
+        <tc:menu label="Help 3 7">
+        </tc:menu>
+        <tc:menu label="Help 3 8">
+        </tc:menu>
+        <tc:menu label="Help 3 9">
+        </tc:menu>
+        <tc:menu label="Help 3 10">
+        </tc:menu>
+      </tc:menu>
+      <tc:menu label="Help 4">
+        <tc:menu label="Help 4 1">
+        </tc:menu>
+        <tc:menu label="Help 4 2">
+        </tc:menu>
+        <tc:menu label="Help 4 3">
+        </tc:menu>
+        <tc:menu label="Help 4 4">
+        </tc:menu>
+        <tc:menu label="Help 4 5">
+        </tc:menu>
+        <tc:menu label="Help 4 6">
+        </tc:menu>
+        <tc:menu label="Help 4 7">
+        </tc:menu>
+        <tc:menu label="Help 4 8">
+        </tc:menu>
+        <tc:menu label="Help 4 9">
+        </tc:menu>
+        <tc:menu label="Help 4 10">
+        </tc:menu>
+      </tc:menu>
+      <tc:menu label="Help 5">
+        <tc:menu label="Help 5 1">
+        </tc:menu>
+        <tc:menu label="Help 5 2">
+        </tc:menu>
+        <tc:menu label="Help 5 3">
+        </tc:menu>
+        <tc:menu label="Help 5 4">
+        </tc:menu>
+        <tc:menu label="Help 5 5">
+        </tc:menu>
+        <tc:menu label="Help 5 6">
+        </tc:menu>
+        <tc:menu label="Help 5 7">
+        </tc:menu>
+        <tc:menu label="Help 5 8">
+        </tc:menu>
+        <tc:menu label="Help 5 9">
+        </tc:menu>
+        <tc:menu label="Help 5 10">
+        </tc:menu>
+      </tc:menu>
+      <tc:menu label="Help 6">
+        <tc:menu label="Help 6 1">
+        </tc:menu>
+        <tc:menu label="Help 6 2">
+        </tc:menu>
+        <tc:menu label="Help 6 3">
+        </tc:menu>
+        <tc:menu label="Help 6 4">
+        </tc:menu>
+        <tc:menu label="Help 6 5">
+        </tc:menu>
+        <tc:menu label="Help 6 6">
+        </tc:menu>
+        <tc:menu label="Help 6 7">
+        </tc:menu>
+        <tc:menu label="Help 6 8">
+        </tc:menu>
+        <tc:menu label="Help 6 9">
+        </tc:menu>
+        <tc:menu label="Help 6 10">
+        </tc:menu>
+      </tc:menu>
+      <tc:menu label="Help 7">
+        <tc:menu label="Help 7 1">
+        </tc:menu>
+        <tc:menu label="Help 7 2">
+        </tc:menu>
+        <tc:menu label="Help 7 3">
+        </tc:menu>
+        <tc:menu label="Help 7 4">
+        </tc:menu>
+        <tc:menu label="Help 7 5">
+        </tc:menu>
+        <tc:menu label="Help 7 6">
+        </tc:menu>
+        <tc:menu label="Help 7 7">
+        </tc:menu>
+        <tc:menu label="Help 7 8">
+        </tc:menu>
+        <tc:menu label="Help 7 9">
+        </tc:menu>
+        <tc:menu label="Help 7 10">
+        </tc:menu>
+      </tc:menu>
+      <tc:menu label="Help 8">
+        <tc:menu label="Help 8 1">
+        </tc:menu>
+        <tc:menu label="Help 8 2">
+        </tc:menu>
+        <tc:menu label="Help 8 3">
+        </tc:menu>
+        <tc:menu label="Help 8 4">
+        </tc:menu>
+        <tc:menu label="Help 8 5">
+        </tc:menu>
+        <tc:menu label="Help 8 6">
+        </tc:menu>
+        <tc:menu label="Help 8 7">
+        </tc:menu>
+        <tc:menu label="Help 8 8">
+        </tc:menu>
+        <tc:menu label="Help 8 9">
+        </tc:menu>
+        <tc:menu label="Help 8 10">
+        </tc:menu>
+      </tc:menu>
+      <tc:menu label="Help 9">
+        <tc:menu label="Help 9 1">
+        </tc:menu>
+        <tc:menu label="Help 9 2">
+        </tc:menu>
+        <tc:menu label="Help 9 3">
+        </tc:menu>
+        <tc:menu label="Help 9 4">
+        </tc:menu>
+        <tc:menu label="Help 9 5">
+        </tc:menu>
+        <tc:menu label="Help 9 6">
+        </tc:menu>
+        <tc:menu label="Help 9 7">
+        </tc:menu>
+        <tc:menu label="Help 9 8">
+        </tc:menu>
+        <tc:menu label="Help 9 9">
+        </tc:menu>
+        <tc:menu label="Help 9 10">
+        </tc:menu>
+      </tc:menu>
+      <tc:menu label="Help 10">
+        <tc:menu label="Help 10 1">
+        </tc:menu>
+        <tc:menu label="Help 10 2">
+        </tc:menu>
+        <tc:menu label="Help 10 3">
+        </tc:menu>
+        <tc:menu label="Help 10 4">
+        </tc:menu>
+        <tc:menu label="Help 10 5">
+        </tc:menu>
+        <tc:menu label="Help 10 6">
+        </tc:menu>
+        <tc:menu label="Help 10 7">
+        </tc:menu>
+        <tc:menu label="Help 10 8">
+        </tc:menu>
+        <tc:menu label="Help 10 9">
+        </tc:menu>
+        <tc:menu label="Help 10 10">
+        </tc:menu>
+      </tc:menu>
+    </tc:menu>
+  </tc:menuBar>
+
+</f:facet>    <tc:box label="Page (z-index = 1 (TODO))">
+      <f:facet name="layout">
+        <tc:gridLayout rows="60px;fixed;*;fixed"/>
+      </f:facet>
+      <tc:out
+          value="This page is to check, if the layered presentation is corret. It will be
usually defined by setting
+           the z-index in CSS or by the order of rendering in the document. The footer and
header of the sheet
+           also have the z-index set in the common renderer."/>
+      <tx:date label="Date">
+        <f:convertDateTime pattern="dd/MM/yyyy"/>
+      </tx:date>
+      <tc:sheet var="v1" columns="*;*;*" showRowRange="left" showPageRange="right" showDirectLinks="center">
+        <tc:column label="Column 1"/>
+        <tc:column label="Column 2"/>
+        <tc:column label="Column 3"/>
+      </tc:sheet>
+      <tc:panel>
+        <f:facet name="layout">
+          <tc:gridLayout columns="3*;*"/>
+        </f:facet>
+        <tc:cell/>
+        <tc:button label="Open Popup">
+          <f:facet name="popup">
+            <tc:popup width="600px" height="470px" left="100px" top="100px" id="popup-2">
+              <tc:box label="Popup (z-index = 2 (TODO))" id="box-2">
+                <f:facet name="layout">
+                  <tc:gridLayout rows="auto;1*;auto"/>
+                </f:facet>
+                <tx:date label="Date">
+                  <f:convertDateTime pattern="dd/MM/yyyy"/>
+                </tx:date>
+                <tc:sheet var="v1" columns="*;*;*" showRowRange="left" showPageRange="right"
showDirectLinks="center">
+                  <tc:column label="Column 1"/>
+                  <tc:column label="Column 2"/>
+                  <tc:column label="Column 3"/>
+                </tc:sheet>
+                <tc:panel>
+                  <f:facet name="layout">
+                    <tc:gridLayout columns="*;*;*;*"/>
+                  </f:facet>
+                  <tc:button label="Open Sub Popup">
+                    <f:facet name="popup">
+                      <tc:popup width="400px" height="500px" left="200px" top="50px" id="popup-3">
+                        <tc:box label="Popup (z-index = 3 (TODO))" id="box-3">
+                          <f:facet name="layout">
+                            <tc:gridLayout rows="auto;1*;auto"/>
+                          </f:facet>
+                          <tx:date label="Date">
+                            <f:convertDateTime pattern="dd/MM/yyyy"/>
+                          </tx:date>
+                          <tc:sheet var="v1" columns="*;*;*" showRowRange="left" showPageRange="right"
+                                    showDirectLinks="center">
+                            <tc:column label="Column 1"/>
+                            <tc:column label="Column 2"/>
+                            <tc:column label="Column 3"/>
+                          </tc:sheet>
+                          <tc:panel>
+                            <f:facet name="layout">
+                              <tc:gridLayout columns="1*;1*;1*"/>
+                            </f:facet>
+                            <tc:button label="Cancel">
+                              <tc:attribute name="popupClose" value="immediate"/>
+                            </tc:button>
+                            <tc:button label="Redisplay">
+                              <tc:attribute name="renderedPartially" value="box-3"/>
+                            </tc:button>
+                            <tc:button label="Ok">
+                              <tc:attribute name="popupClose" value="afterSubmit"/>
+                            </tc:button>
+                          </tc:panel>
+                        </tc:box>
+                      </tc:popup>
+                    </f:facet>
+                  </tc:button>
+                  <tc:button label="Cancel">
+                    <tc:attribute name="popupClose" value="immediate"/>
+                  </tc:button>
+                  <tc:button label="Redisplay">
+                    <tc:attribute name="renderedPartially" value="box-2"/>
+                  </tc:button>
+                  <tc:button label="Ok">
+                    <tc:attribute name="popupClose" value="afterSubmit"/>
+                  </tc:button>
+                </tc:panel>
+              </tc:box>
+            </tc:popup>
+          </f:facet>
+        </tc:button>
+      </tc:panel>
+    </tc:box>
   </tc:page>
 </f:view>

Copied: myfaces/tobago/trunk/example/test/src/main/webapp/tc/sheet/sheet-without-columns-definition.xhtml
(from r924359, myfaces/tobago/trunk/example/test/src/main/webapp/tc/sheet/sheet-simple.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tc/sheet/sheet-without-columns-definition.xhtml?p2=myfaces/tobago/trunk/example/test/src/main/webapp/tc/sheet/sheet-without-columns-definition.xhtml&p1=myfaces/tobago/trunk/example/test/src/main/webapp/tc/sheet/sheet-simple.xhtml&r1=924359&r2=926033&rev=926033&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/tc/sheet/sheet-simple.xhtml (original)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/tc/sheet/sheet-without-columns-definition.xhtml
Mon Mar 22 11:21:35 2010
@@ -10,19 +10,11 @@
   <tc:page>
     <tc:gridLayoutConstraint width="600px" height="600px"/>
 
-    <tc:sheet value="#{sheet.solarArray}" id="sheet" columns="*;*" var="luminary" rows="5"
-        showRowRange="left" showPageRange="right" showDirectLinks="center">
-      <tc:column label="Name" id="name">
-        <tc:out value="#{luminary.name}"/>
+    <tc:sheet var="luminary">
+      <tc:column label="Name">
       </tc:column>
-      <tc:column label="Orbit Of" id="orbit">
-        <tc:out value="#{luminary.orbit}"/>
+      <tc:column label="Orbit Of">
       </tc:column>
     </tc:sheet>
-
-    <tc:script file="script/test-utils.js"/>
-    <!--todo-->
-    <tc:script onload="checkLayout('page:todo', 0, 0, 600, 14);"/>
-
   </tc:page>
 </f:view>



Mime
View raw message