Author: lofwyr
Date: Thu Jun 30 21:42:09 2011
New Revision: 1141731
URL: http://svn.apache.org/viewvc?rev=1141731&view=rev
Log:
sample
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/sheet/sheet-types.xhtml
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/sheet/sheet-types.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/sheet/sheet-types.xhtml?rev=1141731&r1=1141730&r2=1141731&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/sheet/sheet-types.xhtml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/sheet/sheet-types.xhtml
Thu Jun 30 21:42:09 2011
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
+
<!--
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -19,43 +20,51 @@
<f:view
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="1000px" height="600px"/>
+ <tc:gridLayoutConstraint width="1100px" height="600px"/>
- <tc:sheet value="#{sheet.solarArray}" id="sheet" columns="*;*;*;*;*;*;*;2*" var="luminary"
rows="20">
- <tc:column label="<tc:out>" id="out">
+ <tc:sheet value="#{sheet.solarArray}" id="sheet" columns="20px;*;*;*;2*;*;*;*;*;2*"
var="luminary" rows="20">
+ <tc:columnSelector />
+ <tc:column label="<tc:out>" id="c_out">
+ <tc:out value="#{luminary.name}"/>
+ </tc:column>
+ <tc:column label="<tc:out>" id="c_out_r">
<tc:out value="#{luminary.name}"/>
</tc:column>
<tc:column label="<tc:in>" id="c_in">
<tc:in value="#{luminary.name}" id="in"/>
</tc:column>
- <tc:column label="<tx:date>" id="date">
- <tx:date/>
+ <tc:column label="<tx:date>" id="c_date">
+ <tx:date label="Label" labelWidth="100px"/>
</tc:column>
- <tc:column label="<tc:button>" id="button">
+ <tc:column label="<tc:button>" id="c_button">
<tc:button label="#{luminary.name}"/>
</tc:column>
- <tc:column label="<tc:link>" id="link">
+ <tc:column label="<tc:link>" id="c_link">
<tc:link label="#{luminary.name}"/>
</tc:column>
- <tc:column label="<tc:selectOneChoice>" id="selectOneChoice">
+ <tc:column label="<tc:selectOneChoice>" id="c_selectOneChoice">
+<!-- XXX Bug: paging doesn't work with selectOneChoice
<tc:selectOneChoice>
- <tc:selectItem itemLabel="first"/>
- <tc:selectItem itemLabel="second"/>
- <tc:selectItem itemLabel="third"/>
+ <tc:selectItem itemLabel="first" itemValue="1"/>
+ <tc:selectItem itemLabel="second" itemValue="2"/>
+ <tc:selectItem itemLabel="third" itemValue="3"/>
</tc:selectOneChoice>
+-->
</tc:column>
- <tc:column label="<tc:image>" id="image">
+ <tc:column label="<tc:image>" id="c_image">
<tc:image value="image/foo.gif" width="16px" height="16px"/>
</tc:column>
- <tc:column label="<tc:panel>" id="panel">
+ <tc:column label="<tc:panel>" id="c_panel">
<f:facet name="layout">
<tc:gridLayout columns="*;10px;*"/>
</f:facet>
<tc:panel>
+ <f:facet name="layout">
+ <tc:gridLayout columns="*;10px;*" rows="20px"/>
+ </f:facet>
<tc:in value="first"/>
<tc:out value="/"/>
<tc:in value="second"/>
@@ -63,9 +72,5 @@
</tc:column>
</tc:sheet>
- <tc:script file="script/tobago-assert.js"/>
- <!--todo-->
- <!--<tc:script onload="TobagoAssert.assertLayout('page:todo', 0, 0, 600, 14);"/>-->
-
</tc:page>
</f:view>
|