You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-commits@incubator.apache.org by ma...@apache.org on 2007/03/29 07:51:08 UTC
svn commit: r523607 [12/14] - in /incubator/adffaces/trunk/trinidad:
trinidad-assembly/ trinidad-assembly/src/ trinidad-assembly/src/main/
trinidad-assembly/src/main/assembly/ trinidad-assembly/src/main/resources/
trinidad-examples/ trinidad-examples/b...
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOrderShuttle.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOrderShuttle.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOrderShuttle.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOrderShuttle.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,89 @@
+<?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="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>
+ <tr:document title="SelectOrderShuttle Demo">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator />
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:outputFormatted styleUsage="instruction" value="<b>SelectOrderShuttle bound to string array</b>"/>
+ <tr:messages/>
+ <tr:selectOrderShuttle id="shuttle1"
+ label="Selected Values"
+ leadingHeader="Available values:"
+ trailingHeader="Selected values:"
+ binding="#{editor.component}"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.stringArray}">
+ <tr:selectItem shortDesc="The First Item" label="First" value="foo"/>
+ <tr:selectItem label="Second" value="bar"/>
+ <tr:selectItem label="Third" value="baz"/>
+ </tr:selectOrderShuttle>
+ <tr:message for="shuttle1"/>
+
+
+ <jsp:directive.include file="editor.jspf" />
+
+ <tr:outputFormatted styleUsage="instruction" value="<b>SelectOrderShuttle bound to list</b>"/>
+
+ <tr:selectOrderShuttle id="shuttle2" valuePassThru="true"
+ leadingHeader="Available values:"
+ trailingHeader="Selected values:"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.objectList}" leadingDescShown="true"
+ >
+ <tr:selectItem label="First" value="foo"/>
+ <tr:selectItem label="Second" value="bar"/>
+ <tr:selectItem label="Third" value="baz"/>
+ </tr:selectOrderShuttle>
+ <tr:message for="shuttle2"/>
+
+
+<!--
+ <tr:outputFormatted styleUsage="instruction" value="<b>SelectOrderShuttle bound to integer array</b>"/>
+
+ <tr:selectOrderShuttle id="shuttle3"
+ leadingHeader="Available values:"
+ trailingHeader="Selected values:"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.intArray}">
+ <tr:selectItem label="First" value="#{1}"/>
+ <tr:selectItem label="Second" value="#{2}"/>
+ <tr:selectItem label="Third" value="#{3}"/>
+ </tr:selectOrderShuttle>
+ <tr:message for="shuttle3"/>
+-->
+ <tr:commandButton text="Submit"/>
+
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectRangeChoiceBar.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectRangeChoiceBar.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectRangeChoiceBar.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectRangeChoiceBar.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,74 @@
+<?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=utf-8"/>
+ <f:view>
+ <tr:document title="selectRangeChoiceBar Demo">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide" action="guide"/>
+ <tr:outputFormatted styleUsage="instruction" value="<b>selectRangeChoiceBar</b>"/>
+ <tr:panelGroupLayout layout="vertical">
+ <tr:outputFormatted styleUsage="instruction"
+ value="selectRangeChoiceBar with no rangeLabel facet;
+ we get default labels."/>
+ <tr:selectRangeChoiceBar binding="#{editor.component}"
+ id="selectRangeChoiceBarID2" first="0" rows="5" value="#{table}"/>
+
+ <jsp:directive.include file="editor.jspf"/>
+ </tr:panelGroupLayout>
+
+ <tr:panelGroupLayout layout="vertical">
+ <tr:outputFormatted styleUsage="instruction"
+ value="selectRangeChoiceBar with rangeLabel facet to customize range
+ labels and tied to a list of data"/>
+ <tr:selectRangeChoiceBar
+ id="selectRangeCBId1" first="0" rows="5"
+ value="#{animals.names}" var="range"
+ rangeChangeListener="#{animals.rangeChange}"
+>
+ <f:facet name="rangeLabel">
+ <f:selectItem itemLabel="#{range.start} - #{range.end}"/>
+ </f:facet>
+ </tr:selectRangeChoiceBar>
+ <tr:panelGroupLayout partialTriggers="selectRangeCBId1">
+ <tr:forEach items="#{animals.namesInRange}" var="animalName">
+ <tr:outputText value="#{animalName}, "/>
+ </tr:forEach>
+ </tr:panelGroupLayout>
+ </tr:panelGroupLayout>
+
+
+
+ </tr:panelGroupLayout>
+
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/separator.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/separator.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/separator.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/separator.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,44 @@
+<?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>
+ <trh:html>
+ <trh:head title="Separator Demo"/>
+ <trh:body>
+ <tr:form >
+ <tr:panelGroupLayout layout="vertical">
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:outputText styleClass="AFInstructionText" value="Above separator"/>
+ <tr:separator binding="#{editor.component}"/>
+ <tr:outputText styleClass="AFInstructionText" value="Below separator"/>
+ <jsp:directive.include file="editor.jspf" />
+ </tr:panelGroupLayout>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetail.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetail.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetail.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetail.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,60 @@
+<?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="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>
+<tr:document title="ShowDetail Component">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>A basic showDetail</b>"/>
+ <tr:showDetail id="hs1"
+ binding="#{editor.component}"
+ disclosureListener="#{toggle.onDisclosure}"
+ partialTriggers="hs1 hs2" >
+ <h:outputText value="You have toggled a total of #{toggle.totalCount} times"/>
+ </tr:showDetail>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>Another basic showDetail</b>"/>
+ <tr:showDetail id="hs2"
+ disclosureListener="#{toggle.onDisclosure}"
+ partialTriggers="hs1 hs2" >
+ <f:verbatim>
+ <h:outputText value="You have toggled a total of #{toggle.totalCount} times"/>
+ </f:verbatim>
+ </tr:showDetail>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetailHeader.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetailHeader.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetailHeader.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetailHeader.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,54 @@
+<?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="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>
+ <tr:document title="ShowDetailHeader Component">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:showDetailHeader id="hsh1" text="showDetailHeader"
+ binding="#{editor.component}"
+ disclosureListener="#{toggle.onDisclosure}"
+ partialTriggers="hsh1 hsh2">
+ <h:outputText value="You have toggled a total of #{toggle.totalCount} times"/>
+ </tr:showDetailHeader>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ <tr:showDetailHeader id="hsh2" text="Another showDetailHeader"
+ disclosureListener="#{toggle.onDisclosure}"
+ partialTriggers="hsh1 hsh2">
+ <h:outputText value="You have toggled a total of #{toggle.totalCount} times"/>
+ </tr:showDetailHeader>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetailItem.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetailItem.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetailItem.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showDetailItem.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,143 @@
+<?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="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>
+ <tr:document title="ShowDetailItem Demo">
+ <tr:form>
+
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink
+ immediate="true"
+ text="Component Guide"
+ action="guide"/>
+
+ <tr:outputFormatted
+ styleUsage="instruction"
+ value="<b>A panelTabbed component with showDetailItem children </b>"/>
+ <tr:panelFormLayout>
+ <tr:inputText
+ readOnly="true"
+ label="Date/Time from last full page refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ <tr:panelTabbed>
+ <tr:showDetailItem binding="#{editor.component}" text="Tab 1">
+ <tr:panelHeader text="Header 1">
+ <tr:panelFormLayout>
+ <tr:inputText
+ readOnly="true"
+ label="Label 1-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime
+ pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Tab 2">
+ <tr:panelHeader text="Header 2 - This ShowDetailItem contains a ShowDetail in it">
+ <tr:panelGroupLayout>
+ <tr:showDetail
+ id="hs1"
+ partialTriggers="hs1">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime
+ pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ <tr:inputColor label="Color" />
+ </tr:panelFormLayout>
+ </tr:showDetail>
+ </tr:panelGroupLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem
+ text="Tab 3"
+ disclosed="true"
+ immediate="false">
+ <tr:panelHeader
+ text="Header 3 - This showDetailItem has its immediate attribute set to false">
+ <tr:panelFormLayout>
+ <tr:inputText
+ readOnly="true"
+ label="Label 3-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime
+ pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ <tr:inputText
+ label="This is a required field"
+ required="true"/>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Tab 4" disabled="true"/>
+ <tr:showDetailItem text="Tab 5">
+ <tr:panelHeader text="Header 5">
+ <tr:panelFormLayout>
+ <tr:inputText
+ readOnly="true"
+ label="Label 5-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime
+ pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ </tr:panelTabbed>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showManyAccordion.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showManyAccordion.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showManyAccordion.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showManyAccordion.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,201 @@
+<?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="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>
+ <tr:document title="panelAccordion Demo">
+ <tr:form>
+
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true"
+ text="Component Guide"
+ action="guide"/>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b> A panelAccordion component - takes default selection among showDetailItem children</b>"/>
+ <tr:panelAccordion discloseMany="true" discloseNone="true">
+ <tr:showDetailItem text="Panel 1"
+ disclosureListener="#{toggle.onDisclosure}">
+ <tr:panelHeader text="Header 1">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 1-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+
+ <tr:inputText readOnly="true"
+ styleClass="AFDataText"
+ value="You have expanded / collapsed panel 1 a total of #{toggle.totalCount} times"/>
+
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 2">
+ <tr:panelHeader text="Header 2">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 2-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 3">
+ <tr:panelHeader text="Header 3">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 3-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 4">
+ <tr:panelHeader text="Header 4">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 4-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ </tr:panelAccordion>
+
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>This block is to show the current date for reference - Note that this does not change until there is a full page refresh </b>"/>
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last full page refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>A standard panelAccordion component - Update its properties from the table below </b>"/>
+ <tr:panelAccordion binding="#{editor.component}" discloseMany="true" discloseNone="true">
+ <tr:showDetailItem text="Panel 1" id="detailItem1">
+ <tr:panelHeader text="Header 1">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 1-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 2" id="detailItem2">
+ <tr:panelHeader text="Header 2">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 2-1" value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 3" id="detailItem3" disclosed="true">
+ <tr:panelHeader text="Header 3">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 3-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 4" id="detailItem4" disabled="true"/>
+ <tr:showDetailItem text="Panel 5" id="detailItem5">
+ <tr:panelHeader text="Header 5">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 5-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ </tr:panelAccordion>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showOneAccordion.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showOneAccordion.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showOneAccordion.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/showOneAccordion.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,201 @@
+<?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="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>
+ <tr:document title="panelAccordion Demo">
+ <tr:form>
+
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true"
+ text="Component Guide"
+ action="guide"/>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b> A panelAccordion component - takes default selection among showDetailItem children</b>"/>
+ <tr:panelAccordion discloseNone="true">
+ <tr:showDetailItem text="Panel 1"
+ disclosureListener="#{toggle.onDisclosure}">
+ <tr:panelHeader text="Header 1">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 1-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+
+ <tr:inputText readOnly="true"
+ styleClass="AFDataText"
+ value="You have expanded / collapsed panel 1 a total of #{toggle.totalCount} times"/>
+
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 2">
+ <tr:panelHeader text="Header 2">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 2-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 3">
+ <tr:panelHeader text="Header 3">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 3-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 4">
+ <tr:panelHeader text="Header 4">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 4-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ </tr:panelAccordion>
+
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>This block is to show the current date for reference - Note that this does not change until there is a full page refresh </b>"/>
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last full page refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>A standard panelAccordion component - Update its properties from the table below </b>"/>
+ <tr:panelAccordion binding="#{editor.component}" discloseNone="true">
+ <tr:showDetailItem text="Panel 1" id="detailItem1">
+ <tr:panelHeader text="Header 1">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 1-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 2" id="detailItem2">
+ <tr:panelHeader text="Header 2">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 2-1" value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 3" id="detailItem3" disclosed="true">
+ <tr:panelHeader text="Header 3">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 3-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ <tr:showDetailItem text="Panel 4" id="detailItem4" disabled="true"/>
+ <tr:showDetailItem text="Panel 5" id="detailItem5">
+ <tr:panelHeader text="Header 5">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true"
+ label="Label 5-1"
+ value="Value"
+ styleClass="AFDataText"/>
+ <tr:inputText readOnly="true"
+ label="Date/Time from last partial refresh"
+ value="#{date.currentDate}"
+ styleClass="AFDataText">
+ <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+ </tr:panelAccordion>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/singleStepButtonBar.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/singleStepButtonBar.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/singleStepButtonBar.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/singleStepButtonBar.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,49 @@
+<?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="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>
+ <tr:document title="singleStepButtonBar Demo">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>singleStepButtonBar</b>"/>
+ <tr:singleStepButtonBar id="singleStep1" binding="#{editor.component}"
+ selectedStep="2" maxStep="5" text="Stage"
+ previousAction="#{action.app1}"
+ nextAction="#{action.app2}"/>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/spacer.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/spacer.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/spacer.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/spacer.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,48 @@
+<?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>
+ <tr:document title="Spacer Demo">
+ <tr:form >
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:panelGroupLayout>
+ <tr:outputText value="Hello"/>
+ <tr:spacer width="300" height="10"/>
+ <tr:outputText value="Over There"/>
+ <tr:separator/>
+ <tr:spacer height="300" width="10"/>
+ <tr:outputText value="Big Gap Above Me"/>
+ </tr:panelGroupLayout>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/styleSheet.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/styleSheet.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/styleSheet.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/styleSheet.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,58 @@
+<?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="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>
+ <trh:html>
+ <!-- The trh:head element automatically adds
+ the style sheet link reference to a generated Trinidad style sheet
+ <trh:head title="commandButton Demo"/>
+ -->
+ <trh:styleSheet rendered="true" binding="#{editor.component}"/>
+ <trh:body>
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator />
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:outputFormatted
+ styleUsage="instruction"
+ value="<b>styleSheet Demo</b>"/>
+ <tr:outputFormatted
+ styleUsage="instruction"
+ value="The styleSheet component generates the style sheet link
+ reference to a generated Trinidad style sheet. This is automatically
+ included for you if you use the ADF HtmlHead component.
+ Toggle rendered to see the effect of the styleSheet component.
+ "/>
+ <jsp:directive.include file="editor.jspf" />
+ </tr:panelGroupLayout>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/subform.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/subform.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/subform.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/subform.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,49 @@
+<?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="2.0"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:tr="http://myfaces.apache.org/trinidad">
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document>
+ <tr:messages/>
+ <tr:form>
+ <tr:subform>
+ <tr:inputText required="true" label="Sub 1:"/>
+ <tr:commandButton text="Submit 1"/>
+ </tr:subform>
+
+ <tr:subform>
+ <tr:inputText required="true" label="Sub 2:"/>
+ <tr:commandButton text="Submit 2"/>
+ </tr:subform>
+
+ <tr:subform default="true">
+ <tr:inputText required="true" label="Sub Default:"/>
+ <tr:commandButton text="Submit Default"/>
+ </tr:subform>
+
+ <tr:commandButton text="Submit Outside"/>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,100 @@
+<?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>
+ <tr:document title="table Demo">
+ <tr:form >
+ <tr:messages/>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator />
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+
+ <tr:outputFormatted styleUsage="instruction" value="<b>Basic table</b>"/>
+ <tr:table allDetailsEnabled="true" var="row"
+ binding="#{editor.component}"
+ rowBandingInterval="2"
+ value="#{periodicTable.tableData}" rows="10"
+ summary="Element information">
+ <f:facet name="actions">
+ <tr:outputText value="(Actions)"/>
+ </f:facet>
+ <tr:column headerText="Name">
+ <tr:outputText value="#{row.name}"/>
+ </tr:column>
+ <tr:column headerText="Symbol">
+ <tr:outputText value="#{row.symbol}"/>
+ </tr:column>
+ <tr:column headerText="Action Column">
+ <tr:commandButton text="Action" action="#{row.action}"/>
+ </tr:column>
+ <f:facet name="detailStamp" >
+ <tr:panelGroupLayout layout="vertical" >
+ <tr:outputText value="Element Name: #{row.name}"/>
+ <tr:outputText value="Atomic Number: #{row.number}"/>
+ <tr:outputText value="Symbol: #{row.symbol}"/>
+ <tr:outputText value="Group: #{row.group}"/>
+ </tr:panelGroupLayout>
+ </f:facet>
+ </tr:table>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ <tr:outputFormatted styleUsage="instruction" value="<b>Editable table</b>"/>
+ <tr:table var="row"
+ value="#{periodicTable.tableData}" rows="5"
+ summary="Element information">
+ <tr:column headerText="Name">
+ <tr:inputText value="#{row.name}" shortDesc="#{row.name}"/>
+ </tr:column>
+ <tr:column headerText="Symbol">
+ <tr:inputText value="#{row.symbol}" shortDesc="#{row.symbol}"/>
+ </tr:column>
+ </tr:table>
+
+ <tr:commandButton text="Submit"/>
+
+
+
+ <tr:outputFormatted styleUsage="instruction" value="<b>Empty table</b>"/>
+ <tr:table var="row" emptyText="No Records Found" rows="10"
+ summary="Empty Table">
+ <tr:column headerText="int">
+ <tr:inputText value="#{row.int}" shortDesc="#{row.int}"/>
+ </tr:column>
+ <tr:column headerText="String">
+ <tr:inputText value="#{row.string}" shortDesc="#{row.string}"/>
+ </tr:column>
+ </tr:table>
+
+
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_dynamic.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_dynamic.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_dynamic.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_dynamic.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,103 @@
+<?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:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Dynamic Table Demo">
+ <tr:form >
+ <tr:messages/>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator />
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+
+ <tr:outputFormatted styleUsage="instruction" value="<b>Dynamic table</b>"/>
+
+ <f:verbatim>
+ <ul>
+ <li>
+ The table should tolerate RowCounts which are greater than the
+ actual RowCount.
+ <li>
+ The table should try to preserve the page being viewed, when the
+ rowCounts change.
+ <li>
+ In the following example, the table should not render NULL values
+ nor throw Exceptions:
+ </ul>
+ </f:verbatim>
+
+ <tr:panelFormLayout>
+ <tr:inputText label="RowCount" value="#{dynamicTable.rowCount}"
+ accessKey="R">
+ <f:facet name="help">
+ <tr:outputText value="Minimum -1. Maximum 400"/>
+ </f:facet>
+ <f:validateLongRange minimum="-1" maximum="400" />
+ </tr:inputText>
+ <tr:inputText label="RowCount (Actual)"
+ accessKey="A"
+ value="#{dynamicTable.actualRowCount}">
+ <f:facet name="help">
+ <tr:outputText value="Minimum 0. Maximum 400"/>
+ </f:facet>
+ <f:validateLongRange minimum="0" maximum="400"/>
+ </tr:inputText>
+ <tr:inputText label="Block Size"
+ accessKey="B"
+ value="#{dynamicTable.blockSize}">
+ <f:facet name="help">
+ <tr:outputText value="Minimum 0"/>
+ </f:facet>
+ <f:validateLongRange minimum="0"/>
+ </tr:inputText>
+ <f:facet name="footer">
+ <tr:commandButton textAndAccessKey="&Update"/>
+ </f:facet>
+ </tr:panelFormLayout>
+
+ <tr:table var="row"
+ emptyText="No Data"
+ value="#{dynamicTable}"
+ rows="#{dynamicTable.blockSize}"
+ summary="Dynamic Table">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Row"/>
+ </f:facet>
+ <tr:outputText value="#{empty row ? 'NULL - This is bad!' : row}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Number"/>
+ </f:facet>
+ <tr:outputText value="#{row * 100}"/>
+ </tr:column>
+ </tr:table>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_nested.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_nested.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_nested.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_nested.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,83 @@
+<?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>
+ <tr:document title="table Demo">
+ <tr:form >
+ <tr:messages/>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator />
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+
+ <tr:outputFormatted styleUsage="instruction" value="<b>Editable table</b>"/>
+ <tr:table var="row"
+ value="#{periodicTable.tableData}" rows="10"
+ summary="Element data">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Name"/>
+ </f:facet>
+ <tr:inputText value="#{row.name}" shortDesc="#{row.name}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Symbol"/>
+ </f:facet>
+ <tr:inputText value="#{row.symbol}" shortDesc="#{row.symbol}"/>
+ </tr:column>
+ <f:facet name="detailStamp" >
+ <tr:table var="sub"
+ value="#{periodicTable.tableData}" rows="3"
+ summary="Detail element information">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="#{row.name}:Name"/>
+ </f:facet>
+ <tr:inputText value="#{sub.name}" shortDesc="#{sub.name}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Symbol"/>
+ </f:facet>
+ <tr:inputText value="#{sub.symbol}" shortDesc="#{sub.symbol}"/>
+ </tr:column>
+ </tr:table>
+ </f:facet>
+ </tr:table>
+
+
+ <tr:commandButton text="Submit"/>
+
+
+
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_selection.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_selection.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_selection.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/table_selection.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,108 @@
+<?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>
+ <tr:document title="tableSelectMany Demo">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ </tr:panelGroupLayout>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:messages/>
+ <tr:selectOneChoice value="#{sessionScope.tableSelection}"
+ autoSubmit="true"
+ id="selType"
+ label="Selection Type">
+ <tr:selectItem label="Single" value="#{null}"/>
+ <tr:selectItem label="Multiple" value="#{true}"/>
+ </tr:selectOneChoice>
+ <tr:table summary="Periodic table"
+ binding="#{tableActions.table}"
+ partialTriggers="selType"
+ rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}"
+ value="#{periodicTable.tableData}" var="row" rows="10">
+ <f:facet name="footer">
+ <tr:commandButton text="Report"
+ actionListener="#{tableActions.performReport}"/>
+ </f:facet>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Name"/>
+ </f:facet>
+ <tr:outputText value="#{row.name}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Symbol"/>
+ </f:facet>
+ <tr:outputText value="#{row.symbol}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Action Column"/>
+ </f:facet>
+ <tr:commandButton immediate="true" text="Action"
+ action="#{row.action}"/>
+ </tr:column>
+ </tr:table>
+ <tr:panelHeader text="Report Items">
+ <tr:table emptyText="Report is Empty" summary="Report"
+ value="#{tableActions.reportItems}" var="row" rows="0">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Name"/>
+ </f:facet>
+ <tr:outputText value="#{row.name}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Symbol"/>
+ </f:facet>
+ <tr:outputText value="#{row.symbol}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Number"/>
+ </f:facet>
+ <tr:outputText value="#{row.number}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Group"/>
+ </f:facet>
+ <tr:outputText value="#{row.group}"/>
+ </tr:column>
+ </tr:table>
+ </tr:panelHeader>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/template.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/template.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/template.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/template.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,47 @@
+<?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="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>
+ <trh:html>
+ <trh:head title="Demo"/>
+ <trh:body>
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator />
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:outputFormatted styleUsage="instruction" value="<b> </b>"/>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ </tr:panelGroupLayout>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,55 @@
+<?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="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>
+ <tr:document title="train Demo">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:outputFormatted styleUsage="instruction" value="<b>Link below to process using 'Plus One' described in the javadoc for org.apache.myfaces.trinidad.ProcessMenuModel</b>"/>
+ <tr:commandLink action="guide.page_p1" text="Plus One Process"/>
+ <tr:outputFormatted styleUsage="instruction" value="<b>process using 'Max Visited' described in the javadoc for org.apache.myfaces.trinidad.ProcessMenuModel</b>"/>
+
+ <tr:train binding="#{editor.component}" var="foo" value="#{processTrainMenuModel}">
+ <f:facet name="nodeStamp">
+ <tr:commandNavigationItem text="#{foo.label}"
+ action="#{foo.getOutcome}"
+ immediate="#{processTrainMenuModel.immediate}"
+ disabled="#{processTrainMenuModel.readOnly}"
+ visited="#{processTrainMenuModel.visited}"/>
+ </f:facet>
+ </tr:train>
+
+ <jsp:directive.include file="editor.jspf" />
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train2.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train2.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train2.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train2.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,50 @@
+<?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="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>
+ <tr:document title="train Demo">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:outputFormatted styleUsage="instruction" value="<b>Second Step -- train with navigation</b>"/>
+ <tr:train var="foo" value="#{processTrainMenuModel}">
+ <f:facet name="nodeStamp">
+ <tr:commandNavigationItem text="#{foo.label}"
+ action="#{foo.getOutcome}"
+ immediate="#{processTrainMenuModel.immediate}"
+ disabled="#{processTrainMenuModel.readOnly}"
+ visited="#{processTrainMenuModel.visited}"/>
+ </f:facet>
+ </tr:train>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>