| <?xml version="1.0" encoding="iso-8859-1"?> |
| <!-- |
| 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. |
| |
| --> |
| <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" |
| xmlns:f="http://java.sun.com/jsf/core" |
| xmlns:h="http://java.sun.com/jsf/html" |
| xmlns:trh="http://myfaces.apache.org/trinidad/html" |
| xmlns:tr="http://myfaces.apache.org/trinidad" > |
| <jsp:directive.page contentType="text/html;charset=utf-8"/> |
| <f:view> |
| <html> |
| <head> |
| <title>Table ReadOnly JSF</title> |
| <style> |
| .TableContent {border-collapse:collapse;border-color:#9fa57d;border-style:solid;border-width:1px} |
| .ColumnHeader {border-color:#f7f7e7;font-family:Arial,Helvetica,Geneva,sans-serif;font-size:10pt;font-weight:bold;text-align:left;background-color:#d2d8b0;color:#336699;vertical-align:bottom; border-style:solid;border-width:0px 0px 0px 1px} |
| .ColumnCellText {font-family:Arial,Helvetica,Geneva,sans-serif;font-size:10pt;font-weight:normal;color:#000000;vertical-align:baseline;background-color:#f7f7e7;border-color:#d2d8b0; border-style:solid;border-width:1px} |
| </style> |
| </head> |
| <body> |
| <h:form > |
| <h:messages/> |
| <h:dataTable styleClass="TableContent" |
| headerClass="ColumnHeader" |
| columnClasses="ColumnCellText" |
| value="#{periodicTable.tableData}" var="row" rows="0"> |
| <h:column> |
| <f:facet name="header"> |
| <h:outputText value="Name"/> |
| </f:facet> |
| <h:outputText value="#{row.name}"/> |
| </h:column> |
| <h:column> |
| <f:facet name="header"> |
| <h:outputText value="Symbol"/> |
| </f:facet> |
| <h:outputText value="#{row.symbol}"/> |
| </h:column> |
| <h:column> |
| <f:facet name="header"> |
| <h:outputText value="Group"/> |
| </f:facet> |
| <h:outputText value="#{row.group}"/> |
| </h:column> |
| </h:dataTable> |
| </h:form> |
| </body> |
| </html> |
| </f:view> |
| </jsp:root> |