Editable Sheet <tc:sheet>

Not only a sheet can be used to display data, it may also contain inputfields to edit the data.

Tag Library Documentation: <tc:sheet/> | <tc:column/>

Editable Sheet

In this sheet you can edit the data of solar objects. Press the 'Submit' button to see the results in the 'Result' section.

Name Orbit Period (Days) Discoverer Year
  • Rows 1 to 5 of 88
  • Page 1 of 18

Result

The sheet in this section is for verifying the submitted data.

Name Orbit Period (Days) Discoverer Year
Sun
-
0.0
-
Mercury
Sun
87.97
-
Venus
Sun
224.7
-
Earth
Sun
365.26
-
Mars
Sun
686.98
-
Jupiter
Sun
4332.71
-
Saturn
Sun
10759.5
-
Uranus
Sun
30685.0
Herschel
1781
Neptune
Sun
60190.0
Adams
1846
Pluto
Sun
90800.0
Tombaugh
1930
Moon
Earth
27.32
-
Phobos
Mars
0.32
Hall
1877
Deimos
Mars
1.26
Hall
1877
Metis
Jupiter
0.29
Synnott
1979
Adrastea
Jupiter
0.3
Jewitt
1979
Amalthea
Jupiter
0.5
Barnard
1892
Thebe
Jupiter
0.67
Synnott
1979
Io
Jupiter
1.77
Galileo
1610
Europa
Jupiter
3.55
Galileo
1610
Ganymede
Jupiter
7.15
Galileo
1610
Callisto
Jupiter
16.69
Galileo
1610
Themisto
Jupiter
130.02
Sheppard
2000
Leda
Jupiter
238.72
Kowal
1974
Himalia
Jupiter
250.57
Perrine
1904
Lysithea
Jupiter
259.22
Nicholson
1938
Elara
Jupiter
259.65
Perrine
1905
Ananke
Jupiter
-629.77
Nicholson
1951
Carme
Jupiter
-702.3
Nicholson
1938
Pasiphae
Jupiter
-708.0
Melotte
1908
Sinope
Jupiter
-758.9
Nicholson
1914
Iocaste
Jupiter
631.5
Sheppard
2000
Harpalyke
Jupiter
623.3
Sheppard
2000
Praxidike
Jupiter
625.3
Sheppard
2000
Taygete
Jupiter
732.2
Sheppard
2000
Chaldene
Jupiter
723.8
Sheppard
2000
Kalyke
Jupiter
743.0
Sheppard
2000
Callirrhoe
Jupiter
758.8
Sheppard
2000
Megaclite
Jupiter
752.8
Sheppard
2000
Isonoe
Jupiter
725.5
Sheppard
2000
Erinome
Jupiter
728.3
Sheppard
2000
Pan
Saturn
0.58
Showalter
1990
Atlas
Saturn
0.6
Terrile
1980
Prometheus
Saturn
0.61
Collins
1980
Pandora
Saturn
0.63
Collins
1980
Epimetheus
Saturn
0.69
Walker
1980
Janus
Saturn
0.69
Dollfus
1966
Mimas
Saturn
0.94
Herschel
1789
Enceladus
Saturn
1.37
Herschel
1789
Tethys
Saturn
1.89
Cassini
1684
Telesto
Saturn
1.89
Smith
1980
Calypso
Saturn
1.89
Pascu
1980
Dione
Saturn
2.74
Cassini
1684
Helene
Saturn
2.74
Laques
1980
Rhea
Saturn
4.52
Cassini
1672
Titan
Saturn
15.95
Huygens
1655
Hyperion
Saturn
21.28
Bond
1848
Iapetus
Saturn
79.33
Cassini
1671
Phoebe
Saturn
-550.48
Pickering
1898
Cordelia
Uranus
0.34
Voyager 2
1986
Ophelia
Uranus
0.38
Voyager 2
1986
Bianca
Uranus
0.43
Voyager 2
1986
Cressida
Uranus
0.46
Voyager 2
1986
Desdemona
Uranus
0.47
Voyager 2
1986
Juliet
Uranus
0.49
Voyager 2
1986
Portia
Uranus
0.51
Voyager 2
1986
Rosalind
Uranus
0.56
Voyager 2
1986
Belinda
Uranus
0.62
Voyager 2
1986
1986U10
Uranus
0.64
Karkoschka
1999
Puck
Uranus
0.76
Voyager 2
1985
Miranda
Uranus
1.41
Kuiper
1948
Ariel
Uranus
2.52
Lassell
1851
Umbriel
Uranus
4.14
Lassell
1851
Titania
Uranus
8.71
Herschel
1787
Oberon
Uranus
13.46
Herschel
1787
Caliban
Uranus
-579.39
Gladman
1997
Stephano
Uranus
-677.48
Gladman
1999
Sycorax
Uranus
-1283.48
Nicholson
1997
Prospero
Uranus
-1962.95
Holman
1999
Setebos
Uranus
-2196.35
Kavelaars
1999
Naiad
Neptune
0.29
Voyager 2
1989
Thalassa
Neptune
0.31
Voyager 2
1989
Despina
Neptune
0.33
Voyager 2
1989
Galatea
Neptune
0.43
Voyager 2
1989
Larissa
Neptune
0.55
Reitsema
1989
Proteus
Neptune
1.12
Voyager 2
1989
Triton
Neptune
-5.88
Lassell
1846
Nereid
Neptune
360.13
Kuiper
1949
Charon
Pluto
6.39
Christy
1978
<?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. --> <ui:composition template="/main.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:tc="http://myfaces.apache.org/tobago/component" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"> <ui:param name="title" value="#{demoBundle.sheet_editable} &lt;tc:sheet>"/> <p>Not only a sheet can be used to display data, it may also contain inputfields to edit the data.</p> <p>Tag Library Documentation: <tc:link label="&lt;tc:sheet/>" image="#{request.contextPath}/image/feather-leaf.png" link="#{demoBundle.tagDocUrl}/#{apiController.currentRelease}/tld/tc/sheet.html"/> | <tc:link label="&lt;tc:column/>" image="#{request.contextPath}/image/feather-leaf.png" link="#{demoBundle.tagDocUrl}/#{apiController.currentRelease}/tld/tc/column.html"/></p> <tc:section label="Editable Sheet" id="basics"> <p>In this sheet you can edit the data of solar objects. Press the 'Submit' button to see the results in the 'Result' section.</p> <tc:sheet id="editSheet" value="#{sheetEditableController.solarList}" var="object" rows="5"> <tc:column label="Name"> <tc:in id="nameCol" value="#{object.name}" labelLayout="skip"> <f:ajax execute="nameCol" render="resultSheet"/> </tc:in> </tc:column> <tc:column label="Orbit"> <tc:in value="#{object.orbit}" labelLayout="skip"/> </tc:column> <tc:column label="Period (Days)"> <tc:in value="#{object.period}" labelLayout="skip"/> </tc:column> <tc:column label="Discoverer"> <tc:in value="#{object.discoverer}" labelLayout="skip"/> </tc:column> <tc:column label="Year"> <tc:date value="#{object.discoverYear}" converter="#{sheetController.yearConverter}" labelLayout="skip"/> </tc:column> </tc:sheet> <tc:button label="Submit"> <f:ajax execute="editSheet" render="resultSheet"/> </tc:button> </tc:section> <tc:section label="Result"> <p>The sheet in this section is for verifying the submitted data.</p> <tc:sheet id="resultSheet" var="object" value="#{sheetEditableController.solarList}"> <tc:column label="Name"> <tc:out value="#{object.name}"/> </tc:column> <tc:column label="Orbit"> <tc:out value="#{object.orbit}"/> </tc:column> <tc:column label="Period (Days)"> <tc:out value="#{object.period}"/> </tc:column> <tc:column label="Discoverer"> <tc:out value="#{object.discoverer}"/> </tc:column> <tc:column label="Year"> <tc:out value="#{object.discoverYear}"/> </tc:column> </tc:sheet> </tc:section> </ui:composition>