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 2010/05/03 15:15:44 UTC
svn commit: r940444 - in
/myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout:
scrolling-box.xhtml scrolling-page.xhtml scrolling-panel.xhtml
Author: lofwyr
Date: Mon May 3 13:15:44 2010
New Revision: 940444
URL: http://svn.apache.org/viewvc?rev=940444&view=rev
Log:
scrolling samples
Added:
myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-box.xhtml
myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-page.xhtml
- copied, changed from r938110, myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/rendered-pixel-2x2-all-but-1.xhtml
myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-panel.xhtml
Added: myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-box.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-box.xhtml?rev=940444&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-box.xhtml (added)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-box.xhtml Mon May 3 13:15:44 2010
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<f:view
+ xmlns:jsp="http://java.sun.com/JSP/Page"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:tx="http://myfaces.apache.org/tobago/extension"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <tc:page id="page">
+ <tc:gridLayoutConstraint width="300px" height="600px"/>
+ <tc:box label="Scrolling test in a box" id="box">
+ <tc:gridLayoutConstraint width="300px" height="600px"/>
+ <f:facet name="layout">
+ <tc:gridLayout rows="auto;auto;auto"/>
+ </f:facet>
+
+ <tc:image id="image-1" value="pidgeon-point.jpg">
+ <tc:gridLayoutConstraint minimumHeight="400px"/>
+ </tc:image>
+ <tc:image id="image-2" value="pidgeon-point.jpg">
+ <tc:gridLayoutConstraint minimumHeight="400px"/>
+ </tc:image>
+ <tc:image id="image-3" value="pidgeon-point.jpg">
+ <tc:gridLayoutConstraint minimumHeight="400px"/>
+ </tc:image>
+
+ <tc:script file="script/test-utils.js"/>
+
+ <tc:script onload="checkLayout('page:box', 0, 0, 300, 400);"/>
+
+ <tc:script onload="checkLayout('page:image-1', 0, 0, 300, 400);"/>
+ <tc:script onload="checkLayout('page:image-2', 0, 405, 300, 400);"/>
+ <tc:script onload="checkLayout('page:image-3', 0, 810, 300, 400);"/>
+
+ </tc:box>
+ </tc:page>
+</f:view>
Copied: myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-page.xhtml (from r938110, myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/rendered-pixel-2x2-all-but-1.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-page.xhtml?p2=myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-page.xhtml&p1=myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/rendered-pixel-2x2-all-but-1.xhtml&r1=938110&r2=940444&rev=940444&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/rendered-pixel-2x2-all-but-1.xhtml (original)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-page.xhtml Mon May 3 13:15:44 2010
@@ -8,20 +8,26 @@
xmlns:f="http://java.sun.com/jsf/core">
<tc:page id="page">
+ <tc:gridLayoutConstraint width="300px" height="600px"/>
<f:facet name="layout">
- <tc:gridLayout rows="400px;200px" columns="400px;200px"/>
+ <tc:gridLayout rows="auto;auto;auto"/>
</f:facet>
- <tc:image id="i-0" value="pidgeon-point.jpg" rendered="false"/>
- <tc:image id="i-1" value="pidgeon-point.jpg"/>
- <tc:image id="i-2" value="pidgeon-point.jpg"/>
- <tc:image id="i-3" value="pidgeon-point.jpg"/>
+ <tc:image id="image-1" value="pidgeon-point.jpg">
+ <tc:gridLayoutConstraint minimumHeight="400px"/>
+ </tc:image>
+ <tc:image id="image-2" value="pidgeon-point.jpg">
+ <tc:gridLayoutConstraint minimumHeight="400px"/>
+ </tc:image>
+ <tc:image id="image-3" value="pidgeon-point.jpg">
+ <tc:gridLayoutConstraint minimumHeight="400px"/>
+ </tc:image>
<tc:script file="script/test-utils.js"/>
- <tc:script onload="checkAbsence('page:i-0');"/>
- <tc:script onload="checkLayout('page:i-1', 405, 0, 200, 400);"/>
- <tc:script onload="checkLayout('page:i-2', 0, 405, 400, 200);"/>
- <tc:script onload="checkLayout('page:i-3', 405, 405, 200, 200);"/>
+
+ <tc:script onload="checkLayout('page:image-1', 0, 0, 300, 400);"/>
+ <tc:script onload="checkLayout('page:image-2', 0, 405, 300, 400);"/>
+ <tc:script onload="checkLayout('page:image-3', 0, 810, 300, 400);"/>
</tc:page>
</f:view>
Added: myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-panel.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-panel.xhtml?rev=940444&view=auto
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-panel.xhtml (added)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/tc/gridLayout/scrolling-panel.xhtml Mon May 3 13:15:44 2010
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<f:view
+ xmlns:jsp="http://java.sun.com/JSP/Page"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:tx="http://myfaces.apache.org/tobago/extension"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <tc:page id="page">
+ <tc:gridLayoutConstraint width="300px" height="600px"/>
+ <tc:panel id="panel">
+ <tc:gridLayoutConstraint width="300px" height="600px"/>
+ <f:facet name="layout">
+ <tc:gridLayout rows="auto;auto;auto"/>
+ </f:facet>
+
+ <tc:image id="image-1" value="pidgeon-point.jpg">
+ <tc:gridLayoutConstraint minimumHeight="400px"/>
+ </tc:image>
+ <tc:image id="image-2" value="pidgeon-point.jpg">
+ <tc:gridLayoutConstraint minimumHeight="400px"/>
+ </tc:image>
+ <tc:image id="image-3" value="pidgeon-point.jpg">
+ <tc:gridLayoutConstraint minimumHeight="400px"/>
+ </tc:image>
+
+ <tc:script file="script/test-utils.js"/>
+
+ <tc:script onload="checkLayout('page:image-1', 0, 0, 300, 400);"/>
+ <tc:script onload="checkLayout('page:image-2', 0, 405, 300, 400);"/>
+ <tc:script onload="checkLayout('page:image-3', 0, 810, 300, 400);"/>
+
+ </tc:panel>
+ </tc:page>
+</f:view>