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 2014/11/28 13:52:58 UTC
svn commit: r1642288 -
/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-pixel-width.xhtml
Author: lofwyr
Date: Fri Nov 28 12:52:58 2014
New Revision: 1642288
URL: http://svn.apache.org/r1642288
Log:
TOBAGO-1423
Added:
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-pixel-width.xhtml
Added: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-pixel-width.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-pixel-width.xhtml?rev=1642288&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-pixel-width.xhtml (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-pixel-width.xhtml Fri Nov 28 12:52:58 2014
@@ -0,0 +1,55 @@
+<?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
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<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:box label="Pixel-Width in Columns">
+
+ <tc:sheet value="#{sheet.solarArray}" id="sheet" columns="200px;200px" var="luminary" rows="10"
+ showHeader="true" showPagingAlways="true">
+
+ <tc:column label="Name" id="name" sortable="true" markup="pure">
+ <tc:in value="#{luminary.name}">
+ <tc:dataAttribute name="assert-width" value="200"/>
+ </tc:in>
+ </tc:column>
+
+ <tc:column label="Orbit Of" id="orbit">
+ <tc:in value="#{luminary.orbit}">
+ <tc:dataAttribute name="assert-width" value="200"/>
+ </tc:in>
+ </tc:column>
+
+ </tc:sheet>
+
+ <tc:panel>
+ This sheet has two columns with 200px width each set by the columns attribute of the tc:sheet
+ </tc:panel>
+
+ </tc:box>
+
+ <tc:script file="script/tobago-assert.js"/>
+
+ </tc:page>
+</f:view>