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 [11/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/panelRadio.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelRadio.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelRadio.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelRadio.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,117 @@
+<?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="panelRadio 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 panelRadio component - takes default selection among showDetailItem children</b>"/>
+
+ <tr:panelRadio binding="#{editor.component}"
+ alignment="center"
+ position="start"
+ id="someId"
+ label="Sales Data">
+
+ <tr:showDetailItem id="showDetailItem2"
+ text="Monthly Sales Distribution"
+ accessKey="M">
+ <tr:panelHeader text="Monthly Sales Distribution">
+ <tr:image source="images/monthlySalesDistribution.gif"
+ shortDesc="Koenigsegg CCR"
+ inlineStyle="height:200px; width:300px;"
+ id="monthlySalesImage"/>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+
+ <tr:showDetailItem id="showDetailItem3"
+ text="Sales by Geography"
+ accessKey="S">
+ <tr:panelHeader text="Sales by Geography">
+ <tr:image source="images/salesByGeography.gif"
+ inlineStyle="height:200px; width:300px;"
+ id="salesByGeographyImage"
+ shortDesc="Sales information"/>
+
+ </tr:panelHeader>
+ </tr:showDetailItem>
+
+ <tr:showDetailItem text="This page data"
+ accessKey="T"
+ disclosureListener="#{toggle.onDisclosure}">
+ <tr:panelHeader text="Page refresh status">
+ <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 shown/ hidden this page data option a total of #{toggle.totalCount} times"/>
+
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ </tr:showDetailItem>
+
+ </tr:panelRadio>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>A standard panelRadio component - Update its properties from the table below </b>"/>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ <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:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelSideBar.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelSideBar.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelSideBar.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelSideBar.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,51 @@
+<?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="PanelSideBar 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> </b>"/>
+ <tr:panelSideBar binding="#{editor.component}">
+ <tr:panelList>
+ <tr:commandLink text="item 1" action="guide.commandLink" />
+ <tr:commandLink text="item 2" action="guide.commandLink" />
+ <tr:commandLink text="item 3" action="guide.commandLink" />
+ </tr:panelList>
+ </tr:panelSideBar>
+
+ <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/panelTabbed.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelTabbed.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelTabbed.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelTabbed.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,175 @@
+<?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="panelTabbed 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 position set to 'above' and takes default selection among showDetailItem children</b>"/>
+ <tr:panelTabbed position="above">
+ <tr:showDetailItem text="Tab 1" disabled="true"/>
+ <tr:showDetailItem text="Tab 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="Tab 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="Tab 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: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>
+
+ <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 panelTabbed component - Update its properties from the table below </b>"/>
+ <tr:panelTabbed binding="#{editor.component}">
+ <tr:showDetailItem 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">
+ <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="Tab 3" 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="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/panelTip.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelTip.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelTip.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/panelTip.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>
+ <trh:html>
+ <trh:head title="PanelTip 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:panelTip binding="#{editor.component}">
+ <tr:goLink text="link inside panelTip"
+ destination="http://www.apache.org"/>
+ </tr:panelTip>
+
+ <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/poll.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/poll.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/poll.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/poll.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,84 @@
+<?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="Poll Demo">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide" actionListener="#{poll.resetPoll}"/>
+
+ <tr:commandButton text="Submit"/>
+
+ <tr:panelGroupLayout layout="vertical">
+ <tr:poll binding="#{editor.component}" interval="2000"
+ pollListener="#{poll.onPoll}" id="pollid"/>
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>Poll component with a poll listener that updates the poll count</b>"/>
+ </tr:panelGroupLayout>
+ <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:panelGroupLayout layout="vertical">
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>InputText linked to Poll component being updated in partial page mode</b>"/>
+ <tr:inputText readOnly="true" label="Poll Count: "
+ value="#{poll.pollCount}"
+ styleClass="AFDataText" partialTriggers="pollid"/>
+ </tr:panelGroupLayout>
+
+ <tr:panelGroupLayout layout="vertical">
+ <tr:panelHeader text="When modal dialogs are launched from the
+ following components, poll pauses until the dialog is dismissed"/>
+ <f:facet name="separator">
+ <tr:spacer height="5"/>
+ </f:facet>
+ <tr:inputColor id="sic3" label="The color picker dialog"
+ value="#{color.colorValue3}" compact="true"/>
+ <tr:inputDate id="sid1" value="#{date.date1}"
+ label="The date picker dialog"/>
+ <tr:commandButton text="Using dialog framework"
+ action="dialog:simpleDialog" useWindow="true"
+ windowWidth="150" windowHeight="150"
+ immediate="true" partialSubmit="true"/>
+ <tr:goButton
+ text="Using openWindow() API in Trinidad Javascript library"
+ onclick="openWindow(window,'poll_window_page.jspx','',{width:200, height:100},true,'dialog','');"/>
+ </tr:panelGroupLayout>
+
+ <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/poll_window_page.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/poll_window_page.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/poll_window_page.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/poll_window_page.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,38 @@
+<?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="Apache Logo">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <tr:image
+ source="http://www.apache.org/images/asf_logo_wide.gif"
+ shortDesc="Apache Logo"/>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,56 @@
+<?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="processChoiceBar 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>Step 1 -- processChoiceBar with navigation</b>"/>
+
+ <tr:processChoiceBar binding="#{editor.component}"
+ var="foo" value="#{processMenuModel}"
+ shortDesc="Select step">
+ <f:facet name="nodeStamp">
+ <tr:commandNavigationItem text="#{foo.label}"
+ action="#{foo.getOutcome}"
+ immediate="#{processMenuModel.immediate}"
+ disabled="#{processMenuModel.readOnly}"/>
+ </f:facet>
+ </tr:processChoiceBar>
+ <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/processChoiceBar2.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar2.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar2.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar2.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,52 @@
+<?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="processChoiceBar 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>Step 2 -- processChoiceBar with navigation</b>"/>
+
+ <tr:processChoiceBar var="foo"
+ value="#{processMenuModel}"
+ shortDesc="Select step">
+ <f:facet name="nodeStamp">
+ <tr:commandNavigationItem text="#{foo.label}"
+ action="#{foo.getOutcome}"
+ immediate="#{processMenuModel.immediate}"
+ disabled="#{processMenuModel.readOnly}"/>
+ </f:facet>
+ </tr:processChoiceBar>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar3.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar3.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar3.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/processChoiceBar3.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>
+ <trh:html>
+ <trh:head title="processChoiceBar 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>Step 3 -- processChoiceBar with navigation</b>"/>
+
+ <tr:processChoiceBar var="foo" value="#{processMenuModel}"
+ shortDesc="Select step">
+ <f:facet name="nodeStamp">
+ <tr:commandNavigationItem text="#{foo.label}"
+ action="#{foo.getOutcome}"
+ immediate="#{processMenuModel.immediate}"
+ disabled="#{processMenuModel.readOnly}"/>
+ </f:facet>
+ </tr:processChoiceBar>
+
+ </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/progressEnd.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/progressEnd.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/progressEnd.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/progressEnd.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,42 @@
+<?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="Task Ended">
+ <tr:form>
+ <tr:panelPage>
+ <tr:panelHeader text="Background Task #{param.taskStatus}">
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ <tr:commandLink immediate="true" text="Feature Demos"
+ action="demos"/>
+ </tr:panelHeader>
+ </tr:panelPage>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
+
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/progressIndicator.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/progressIndicator.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/progressIndicator.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/progressIndicator.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,71 @@
+<?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="ProgressIndicator Demo">
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide" actionListener="#{progress.cancelProcess}"/>
+
+ <tr:commandButton text="Submit"/>
+
+ <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:panelGroupLayout layout="vertical">
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>ProgressIndicator component linked to a Poll
+ component - Navigates to a different page once the background
+ task is complete</b>"/>
+ <tr:poll interval="2000" id="pollid"/>
+ <tr:progressIndicator binding="#{editor.component}" id="progressid"
+ action="progressEnd" value="#{progress.progressModel}"
+ partialTriggers="pollid">
+ <tr:outputFormatted styleUsage="instruction"
+ value="Task status not known"
+ rendered="#{progress.progressModel.value == -1 or progress.progressModel.value == -1}"/>
+ <tr:outputFormatted styleUsage="instruction"
+ value="#{progress.progressModel.value} of #{progress.progressModel.maximum} files copied"
+ rendered="#{progress.progressModel.value > -1 and progress.progressModel.value > -1}"/>
+ </tr:progressIndicator>
+ </tr:panelGroupLayout>
+
+ <tr:commandButton text="Cancel" action="progressCancel"
+ actionListener="#{progress.cancelProcess}"/>
+
+ <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/regions/stock.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/regions/stock.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/regions/stock.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/regions/stock.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,37 @@
+<?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"/>
+ <tr:componentDef var="stuff">
+ <tr:panelBox text="Symbol:#{stuff.symbol} Company:#{stuff.company}">
+ <tr:outputText value="#{stuff.description}"/>
+ <tr:outputFormatted
+ value="<br>Current Value:<b>$#{stuff.amount}</b>"/>
+ <tr:outputFormatted rendered="#{not empty bindings}"
+ value="<br>Value attribute is:#{bindings}"/>
+ <tr:facetRef facetName="action"/>
+ </tr:panelBox>
+ </tr:componentDef>
+</jsp:root>
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/resetButton.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/resetButton.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/resetButton.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/resetButton.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,46 @@
+<?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="ResetButton 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>Simple ResetButton </b>"/>
+ <tr:inputText value="some text" shortDesc="Enter text"/>
+ <tr:resetButton binding="#{editor.component}" text="Reset"/>
+
+ <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/selectBooleanCheckbox.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectBooleanCheckbox.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectBooleanCheckbox.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectBooleanCheckbox.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,46 @@
+<?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="SelectBooleanCheckbox 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>SelectBooleanCheckbox</b>"/>
+ <tr:selectBooleanCheckbox binding="#{editor.component}"
+ label="Label" text="item" value="#{data.boolean}"/>
+ <tr:commandButton text="Submit" />
+
+ <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/selectBooleanRadio.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectBooleanRadio.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectBooleanRadio.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectBooleanRadio.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,51 @@
+<?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="SelectBooleanRadio 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>SelectBooleanRadio</b>"/>
+ <tr:panelFormLayout>
+ <tr:selectBooleanRadio group="theGroup" selected="true" binding="#{editor.component}" label="Label" text="item"
+ autoSubmit="true"
+ onclick="alert('hi'); return true;"/>
+ <tr:selectBooleanRadio group="theGroup" text="item 2" />
+ <tr:selectBooleanRadio group="theGroup" text="item 3" />
+ </tr:panelFormLayout>
+ <tr:commandButton text="Submit"/>
+
+ <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/selectItem.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectItem.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectItem.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectItem.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>
+ <trh:html>
+ <trh:head title="SelectItem 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>SelectOneChoice</b>"/>
+
+ <tr:selectOneChoice label="Label" >
+ <tr:selectItem binding="#{editor.component}" label="First" value="1"/>
+ <tr:selectItem label="Second" value="2"/>
+ <tr:selectItem label="Third" value="3"/>
+ </tr:selectOneChoice>
+ <tr:commandButton text="Submit"/>
+
+ <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/selectManyCheckbox.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectManyCheckbox.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectManyCheckbox.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectManyCheckbox.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,119 @@
+<?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="SelectManyCheckbox 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>SelectManyCheckbox bound to integer array</b>"/>
+
+ <tr:selectManyCheckbox binding="#{editor.component}"
+ label="Label"
+ 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:selectManyCheckbox>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>SelectManyCheckbox bound to string array</b>"/>
+
+ <tr:selectManyCheckbox label="Label"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.stringArray}">
+ <tr:selectItem label="First" value="foo"/>
+ <tr:selectItem label="Second" value="bar"/>
+ <tr:selectItem label="Third" value="baz"/>
+ </tr:selectManyCheckbox>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>SelectManyCheckbox bound to list</b>"/>
+
+ <tr:selectManyCheckbox label="Label"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.objectList}">
+ <tr:selectItem label="First" value="foo"/>
+ <tr:selectItem label="Second" value="bar"/>
+ <tr:selectItem label="Third" value="baz"/>
+ </tr:selectManyCheckbox>
+
+ <tr:commandButton text="Submit"/>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="SelectManyCheckbox with f:selectItems bound to a List of SelectItem custom object"/>
+
+ <tr:selectManyCheckbox label="Cars"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.selectedCars}">
+ <f:selectItems value="#{list.makes}"/>
+ </tr:selectManyCheckbox>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="SelectManyCheckbox with tr:selectItem bound to SelectItem custom object"/>
+
+ <tr:selectManyCheckbox label="Cars"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.selectedCars}">
+ <tr:selectItem value="#{list.firstSelectItemCar}"/>
+ <tr:selectItem value="#{list.secondSelectItemCar}"/>
+ <tr:selectItem value="#{list.thirdSelectItemCar}"/>
+ </tr:selectManyCheckbox>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="SelectManyCheckbox with tr:selectItem bound to SelectItem Strings.
+ In this test case, the valuePassThru attribute is set to true, therefore the value is passed through
+ to the client. If you need to have the value on the client, one reason might be
+ if you are relying on the value for javascript, then set valuePassThru to true.
+ Otherwise, it defaults to false, and the client-side value will be an index, and converted
+ automatically on the server. valuePassThru=false allows the component to be bound to
+ custom Objects. valuePassThru=true works ok when the value is bound to Strings. "/>
+
+ <tr:selectManyCheckbox label="Strings, valuePassThru is true"
+ valuePassThru="true"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.selectedSelectItems}">
+ <tr:selectItem value="#{list.firstSelectItemString}"/>
+ <tr:selectItem value="#{list.secondSelectItemString}"/>
+ <tr:selectItem value="#{list.thirdSelectItemString}"/>
+ </tr:selectManyCheckbox>
+
+ <tr:commandButton text="Submit"/>
+ </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/selectManyListbox.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectManyListbox.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectManyListbox.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectManyListbox.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,119 @@
+<?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="SelectManyListbox 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>SelectManyListbox bound to integer array</b>"/>
+
+ <tr:selectManyListbox binding="#{editor.component}"
+ label="Label"
+ 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:selectManyListbox>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>SelectManyListbox bound to string array</b>"/>
+
+ <tr:selectManyListbox label="Label"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.stringArray}">
+ <tr:selectItem label="First" value="foo"/>
+ <tr:selectItem label="Second" value="bar"/>
+ <tr:selectItem label="Third" value="baz"/>
+ </tr:selectManyListbox>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>SelectManyListbox bound to list</b>"/>
+
+ <tr:selectManyListbox label="Label"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.objectList}">
+ <tr:selectItem label="First" value="foo"/>
+ <tr:selectItem label="Second" value="bar"/>
+ <tr:selectItem label="Third" value="baz"/>
+ </tr:selectManyListbox>
+
+ <tr:commandButton text="Submit"/>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="SelectManyListbox with f:selectItems bound to a List of SelectItem custom object"/>
+
+ <tr:selectManyListbox label="Cars"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.selectedCars}">
+ <f:selectItems value="#{list.makes}"/>
+ </tr:selectManyListbox>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="SelectManyListbox with tr:selectItem bound to SelectItem custom object"/>
+
+ <tr:selectManyListbox label="Cars"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.selectedCars2}">
+ <tr:selectItem value="#{list.firstSelectItemCar}"/>
+ <tr:selectItem value="#{list.secondSelectItemCar}"/>
+ <tr:selectItem value="#{list.thirdSelectItemCar}"/>
+ </tr:selectManyListbox>
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="SelectManyListbox with tr:selectItem bound to SelectItem Strings.
+ In this test case, the valuePassThru attribute is set to true, therefore the value is passed through
+ to the client. If you need to have the value on the client, one reason might be
+ if you are relying on the value for javascript, then set valuePassThru to true.
+ Otherwise, it defaults to false, and the client-side value will be an index, and converted
+ automatically on the server. valuePassThru=false allows the component to be bound to
+ custom Objects. valuePassThru=true works ok when the value is bound to Strings. "/>
+
+ <tr:selectManyListbox label="Strings, valuePassThru is true"
+ valuePassThru="true"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.selectedSelectItems}">
+ <tr:selectItem value="#{list.firstSelectItemString}"/>
+ <tr:selectItem value="#{list.secondSelectItemString}"/>
+ <tr:selectItem value="#{list.thirdSelectItemString}"/>
+ </tr:selectManyListbox>
+
+ <tr:commandButton text="Submit"/>
+ </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/selectManyShuttle.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectManyShuttle.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectManyShuttle.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectManyShuttle.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="SelectManyShuttle 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>SelectManyShuttle bound to string array</b>"/>
+ <tr:messages/>
+ <tr:selectManyShuttle id="shuttle1"
+ leadingHeader="Available values:"
+ trailingHeader="Selected values:"
+ binding="#{editor.component}"
+ label="Selected Values"
+ 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:selectManyShuttle>
+ <tr:message for="shuttle1"/>
+
+
+
+ <jsp:directive.include file="editor.jspf" />
+
+ <tr:outputFormatted styleUsage="instruction" value="<b>SelectManyShuttle bound to list</b>"/>
+
+ <tr:selectManyShuttle id="shuttle2"
+ leadingHeader="Available values:"
+ trailingHeader="Selected values:"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.objectList}">
+ <tr:selectItem label="First" value="foo"/>
+ <tr:selectItem label="Second" value="bar"/>
+ <tr:selectItem label="Third" value="baz"/>
+ </tr:selectManyShuttle>
+ <tr:message for="shuttle2"/>
+
+
+<!--
+ <tr:outputFormatted styleUsage="instruction" value="<b>SelectManyShuttle bound to integer array</b>"/>
+
+ <tr:selectManyShuttle 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:selectManyShuttle>
+ <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/selectOneChoice.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOneChoice.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOneChoice.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOneChoice.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,52 @@
+<?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="SelectOneChoice 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>SelectOneChoice</b>"/>
+
+ <tr:selectOneChoice label="Label" binding="#{editor.component}"
+ unselectedLabel="None">
+ <tr:selectItem label="First" value="1"/>
+ <tr:selectItem label="Second" value="2"/>
+ <tr:selectItem label="Third" value="3"/>
+ </tr:selectOneChoice>
+ <tr:commandButton text="Submit"/>
+
+ <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/selectOneListbox.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOneListbox.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOneListbox.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOneListbox.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,65 @@
+<?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="SelectOneListbox 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>SelectOneListbox bound to integer</b>"/>
+
+ <tr:selectOneListbox binding="#{editor.component}"
+ label="Label"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.singleInt}">
+ <tr:selectItem label="First" value="1"/>
+ <tr:selectItem label="Second" value="2"/>
+ <tr:selectItem label="Third" value="3"/>
+ </tr:selectOneListbox>
+
+ <tr:outputFormatted styleUsage="instruction" value="<b>SelectOneListbox bound to string</b>"/>
+
+ <tr:selectOneListbox label="Label"
+ valueChangeListener="#{list.valueChanged}"
+ value="#{list.singleString}">
+ <tr:selectItem label="First" value="foo"/>
+ <tr:selectItem label="Second" value="bar"/>
+ <tr:selectItem label="Third" value="baz"/>
+ </tr:selectOneListbox>
+
+ <tr:commandButton text="Submit"/>
+
+ <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/selectOneRadio.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOneRadio.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOneRadio.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/selectOneRadio.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,51 @@
+<?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: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="SelectOneRadio 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>selectOneRadio</b>"/>
+ <tr:selectOneRadio binding="#{editor.component}" label="Label"
+ value="#{data.string}">
+ <tr:selectItem label="eagles" value="eagles" />
+ <tr:selectItem label="wolves" value="wolves" />
+ </tr:selectOneRadio>
+
+ <jsp:directive.include file="editor.jspf" />
+
+ </tr:panelGroupLayout>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>