You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/08/13 16:10:33 UTC

svn commit: r803897 - /myfaces/tobago/trunk/example/test/src/main/webapp/tc/cell/position-cell-with-panel.xhtml

Author: lofwyr
Date: Thu Aug 13 14:10:33 2009
New Revision: 803897

URL: http://svn.apache.org/viewvc?rev=803897&view=rev
Log:
TOBAGO-606: Layout-Manager
 - sample for testing layout inside of a cell

Added:
    myfaces/tobago/trunk/example/test/src/main/webapp/tc/cell/position-cell-with-panel.xhtml
      - copied, changed from r803589, myfaces/tobago/trunk/example/test/src/main/webapp/tc/cell/position-4x4-span-steps.xhtml

Copied: myfaces/tobago/trunk/example/test/src/main/webapp/tc/cell/position-cell-with-panel.xhtml (from r803589, myfaces/tobago/trunk/example/test/src/main/webapp/tc/cell/position-4x4-span-steps.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tc/cell/position-cell-with-panel.xhtml?p2=myfaces/tobago/trunk/example/test/src/main/webapp/tc/cell/position-cell-with-panel.xhtml&p1=myfaces/tobago/trunk/example/test/src/main/webapp/tc/cell/position-4x4-span-steps.xhtml&r1=803589&r2=803897&rev=803897&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/tc/cell/position-4x4-span-steps.xhtml (original)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/tc/cell/position-cell-with-panel.xhtml Thu Aug 13 14:10:33 2009
@@ -9,45 +9,25 @@
 
   <tc:page id="page" label="Note: the &lt;tc:cell&gt; is deprecated">
     <f:facet name="layout">
-      <tc:gridLayout columns="6*;9*;13*;2*" rows="4*;11*;10*;5*"/>
+      <tc:gridLayout rows="*;fixed"/>
     </f:facet>
-    <tc:gridLayoutConstraint width="315px" height="315px"/>
+    <tc:gridLayoutConstraint width="100px" height="310px"/>
 
-    <tc:image id="i-0" value="pidgeon-point.jpg"/>
-    <tc:cell spanY="2">
-      <tc:image id="i-1" value="pidgeon-point.jpg"/>
-    </tc:cell>
-    <tc:cell spanX="2">
-      <tc:image id="i-2" value="pidgeon-point.jpg"/>
-    </tc:cell>
-    <tc:image id="i-3" value="pidgeon-point.jpg"/>
-    <tc:cell spanY="2">
-      <tc:image id="i-4" value="pidgeon-point.jpg"/>
-    </tc:cell>
-    <tc:image id="i-5" value="pidgeon-point.jpg"/>
-    <tc:cell spanX="2">
-      <tc:image  id="i-6" value="pidgeon-point.jpg"/>
-    </tc:cell>
-    <tc:cell spanY="2">
-      <tc:image id="i-7" value="pidgeon-point.jpg"/>
-    </tc:cell>
-    <tc:image id="i-8" value="pidgeon-point.jpg"/>
-    <tc:cell spanX="2">
-      <tc:image id="i-9" value="pidgeon-point.jpg"/>
+    <tc:image id="i-1" value="pidgeon-point.jpg"/>
+    <tc:cell>
+      <tc:panel>
+        <tc:gridLayout rows="100px;100px"/>
+
+        <tc:image id="i-2" value="pidgeon-point.jpg"/>
+        <tc:image id="i-3" value="pidgeon-point.jpg"/>
+      </tc:panel>
     </tc:cell>
 
     <tc:script file="script/test-utils.js"/>
 
-    <tc:script onload="checkLayout('page:i-0', 0, 0, 60, 40);"/>
-    <tc:script onload="checkLayout('page:i-1', 65, 0, 90, 155);"/>
-    <tc:script onload="checkLayout('page:i-2', 160, 0, 155, 40);"/>
-    <tc:script onload="checkLayout('page:i-3', 0, 45, 60, 110);"/>
-    <tc:script onload="checkLayout('page:i-4', 160, 45, 130, 215);"/>
-    <tc:script onload="checkLayout('page:i-5', 295, 45, 20, 110);"/>
-    <tc:script onload="checkLayout('page:i-6', 0, 160, 155, 100);"/>
-    <tc:script onload="checkLayout('page:i-7', 295, 160, 20, 155);"/>
-    <tc:script onload="checkLayout('page:i-8', 0, 265, 60, 50);"/>
-    <tc:script onload="checkLayout('page:i-9', 65, 265, 225, 50);"/>
+    <tc:script onload="checkLayout('page:i-1', 0, 0, 100, 100);"/>
+    <tc:script onload="checkLayout('page:i-2', 0, 105, 100, 100);"/>
+    <tc:script onload="checkLayout('page:i-3', 0, 210, 100, 100);"/>
 
   </tc:page>
 </f:view>