| <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> |
| <!-- |
| 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="1.2" |
| 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=iso-8859-1"/> |
| <f:view> |
| <trh:html> |
| <trh:head title="Sample page"/> |
| <trh:body> |
| <tr:form> |
| <tr:panelPage id="plTarget" |
| binding="#{ui.panelPage}" |
| partialTriggers="sd1 sd2"> |
| <tr:messages/> |
| <f:facet name="manu1"> |
| <tr:menuTabs > |
| <tr:goLink text="Home" destination="#" /> |
| <tr:goLink text="Home 2" destination="#" /> |
| </tr:menuTabs> |
| </f:facet> |
| <tr:commandButton text="Nothing" action="#{action.nothing}"/> |
| <tr:commandButton text="Fire Action Listener" |
| actionListener="#{ui.anActionListener}"/> |
| <!-- This component is a trigger for the panelPage, 'cause our |
| disclosureListener modifies the panelPage's title --> |
| <tr:showDetail id="sd1" |
| disclosureListener="#{ui.aDisclosureListener}"> |
| <f:verbatim> |
| Some text |
| </f:verbatim> |
| </tr:showDetail> |
| <tr:showDetail id="sd2" |
| immediate="false" |
| disclosureListener="#{ui.aDisclosureListener}"> |
| <f:verbatim> |
| Some more text |
| </f:verbatim> |
| </tr:showDetail> |
| |
| <tr:inputText id="mti1" value="#{data.int}" required="true" label="label"/> |
| |
| |
| <tr:table value="#{table}" var="row" rows="10"> |
| <f:facet name="selection"> |
| <tr:tableSelectMany/> |
| </f:facet> |
| <tr:column> |
| <tr:inputText value="#{row.int}"/> |
| </tr:column> |
| <tr:column> |
| <tr:inputText value="#{row.string}"/> |
| </tr:column> |
| <tr:column> |
| <tr:commandButton text="Details..." |
| action="#{row.showDetail}"/> |
| </tr:column> |
| </tr:table> |
| </tr:panelPage> |
| </tr:form> |
| </trh:body> |
| </trh:html> |
| </f:view> |
| </jsp:root> |