You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/06/19 18:47:38 UTC
svn commit: r548795 [14/19] - in /myfaces/trinidad/trunk/trinidad: ./
trinidad-demo/ trinidad-examples/ trinidad-examples/trinidad-demo/
trinidad-examples/trinidad-demo/src/
trinidad-examples/trinidad-demo/src/conf/
trinidad-examples/trinidad-demo/src/...
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4.jspx Tue Jun 19 09:46:57 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="train 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>Fourth 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:commandLink action="guide.train4a" text="Go to subprocess"/>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4a.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4a.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4a.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4a.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,53 @@
+<?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="train 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>SubTrain A</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>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4b.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4b.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4b.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4b.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,53 @@
+<?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="train 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>SubTrain B</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>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4c.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4c.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4c.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train4c.jspx Tue Jun 19 09:46:57 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="train 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>SubTrain C</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:commandLink action="guide.train4" text="back to main process"/>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train5.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train5.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train5.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train5.jspx Tue Jun 19 09:46:57 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="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>Fifth 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>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train6.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train6.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train6.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train6.jspx Tue Jun 19 09:46:57 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="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>Sixth 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>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train7.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train7.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train7.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train7.jspx Tue Jun 19 09:46:57 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="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>Seventh 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>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train8.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train8.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train8.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/train8.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,53 @@
+<?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="train 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>Eighth 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>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/tree.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/tree.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/tree.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/tree.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,62 @@
+<?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="Tree 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 Tree</b>"/>
+<!--
+ <tr:tree value="#{tree.model}" binding="#{editor.component}" />
+
+ <jsp:directive.include file="editor.jspf" />
+-->
+ <tr:outputFormatted styleUsage="instruction" value="<b>Tree with TreeModel</b>"/>
+ <tr:tree binding="#{editor.component}"
+ var="foo" value="#{tree.model}">
+ <f:facet name="nodeStamp">
+ <tr:inputText value="#{foo.text}" shortDesc="Enter text"/>
+ </f:facet>
+ </tr:tree>
+
+ <jsp:directive.include file="editor.jspf" />
+ <tr:outputFormatted styleUsage="instruction" value="<b>Tree with CollectionModel</b>"/>
+ <tr:tree var="foo" value="#{periodicTable.tableData}">
+ <f:facet name="nodeStamp">
+ <tr:commandLink text="#{foo.name}" action="#{foo.action}"/>
+ </f:facet>
+ </tr:tree>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/treeTable.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/treeTable.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/treeTable.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/treeTable.jspx Tue Jun 19 09:46:57 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="TreeTable 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:treeTable var="foo" value="#{tree.model}" binding="#{editor.component}">
+ <f:facet name="nodeStamp">
+ <tr:outputText value="#{foo.text}"/>
+ </f:facet>
+ </tr:treeTable>
+
+
+ <jsp:directive.include file="editor.jspf" />
+-->
+
+
+ <tr:outputFormatted styleUsage="instruction"
+ value="<b>Editable treeTable with Record Set Navigation</b>"/>
+ <tr:treeTable binding="#{editor.component}" var="foo" value="#{tree.model}" rendered="true"
+ rowsByDepth="3" summary="Demo of treeTable"
+ >
+ <f:facet name="nodeStamp">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Text"/>
+ </f:facet>
+ <tr:outputFormatted value="<b>text:#{foo.text}</b>"/>
+ </tr:column>
+ </f:facet>
+ <f:facet name="pathStamp">
+ <tr:outputFormatted value="<b>text:#{foo.text}</b>"/>
+ </f:facet>
+
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Foo Column"/>
+ </f:facet>
+ <tr:inputText value="#{foo.text}" shortDesc="Enter text"/>
+ </tr:column>
+
+ <tr:column>
+ <f:facet name="header">
+ <h:outputText value="Bar Column"/>
+ </f:facet>
+ <h:outputText value="#{foo.text} Bar"/>
+ </tr:column>
+ </tr:treeTable>
+
+ <jsp:directive.include file="editor.jspf" />
+ <tr:outputFormatted styleUsage="instruction" value="<b>No Focus Column</b>"/>
+ <tr:treeTable var="foo" value="#{tree.model}" rendered="true"
+ summary="Second treeTable" >
+ <f:facet name="nodeStamp">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Text"/>
+ </f:facet>
+ <tr:outputText value="#{foo.text}"/>
+ </tr:column>
+ </f:facet>
+
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Text"/>
+ </f:facet>
+ <tr:outputText value="#{foo.text}"/>
+ </tr:column>
+
+ </tr:treeTable>
+
+ <tr:commandButton text="Submit"/>
+
+ <tr:outputFormatted styleUsage="instruction" value="<b>Giant treeTable</b>"/>
+ <tr:treeTable var="foo" value="#{largeTree.model}"
+ summary="Giant treeTable"
+ rendered='true'>
+ <f:facet name="nodeStamp">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Label"/>
+ </f:facet>
+ <tr:outputFormatted value="<b>#{foo.label}</b>"/>
+ </tr:column>
+ </f:facet>
+ <f:facet name="pathStamp">
+ <tr:outputFormatted value="<b>#{foo.label}</b>"/>
+ </f:facet>
+
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Parent"/>
+ </f:facet>
+ <tr:outputText value="#{foo.parentLabel}"/>
+ </tr:column>
+
+ <tr:column>
+ <f:facet name="header">
+ <h:outputText value="Index"/>
+ </f:facet>
+ <h:outputText value="#{foo.index}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <h:outputText value="Depth"/>
+ </f:facet>
+ <h:outputText value="#{foo.depth}"/>
+ </tr:column>
+ </tr:treeTable>
+
+ <tr:outputFormatted styleUsage="instruction" value="<b>Empty treeTable</b>"/>
+ <tr:treeTable var="foo" rendered="true"
+ summary="Empty treeTable"
+ emptyText="no records found"
+ >
+ <f:facet name="nodeStamp">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Text"/>
+ </f:facet>
+ <tr:outputFormatted value="<b>text:#{foo.text}</b>"/>
+ </tr:column>
+ </f:facet>
+
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Foo Column"/>
+ </f:facet>
+ <tr:outputText value="foo #{foo.text}"/>
+ </tr:column>
+
+ <tr:column>
+ <f:facet name="header">
+ <h:outputText value="Bar Column"/>
+ </f:facet>
+ <h:outputText value="#{foo.text} Bar"/>
+ </tr:column>
+ </tr:treeTable>
+ </tr:panelGroupLayout>
+
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/treeTable_selection.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/treeTable_selection.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/treeTable_selection.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/treeTable_selection.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,124 @@
+<?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="tableSelectMany Demo"/>
+ <trh:body>
+ <tr:form >
+ <tr:panelGroupLayout layout="vertical">
+ <tr:commandLink immediate="true" text="Component Guide"
+ action="guide"/>
+ </tr:panelGroupLayout>
+ <tr:panelPage>
+ <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:treeTable var="foo" value="#{largeTree.model}"
+ binding="#{tableActions.table}"
+ summary="Demo of TreeTable selection"
+ partialTriggers="selType"
+ rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}">
+ <f:facet name="footer">
+ <tr:commandButton text="Report"
+ actionListener="#{tableActions.performReport}"/>
+ </f:facet>
+ <f:facet name="nodeStamp">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Label"/>
+ </f:facet>
+ <tr:outputFormatted value="<b>#{foo.label}</b>"/>
+ </tr:column>
+ </f:facet>
+ <f:facet name="pathStamp">
+ <tr:outputFormatted value="<b>#{foo.label}</b>"/>
+ </f:facet>
+
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Parent"/>
+ </f:facet>
+ <tr:outputText value="#{foo.parentLabel}"/>
+ </tr:column>
+
+ <tr:column>
+ <f:facet name="header">
+ <h:outputText value="Index"/>
+ </f:facet>
+ <h:outputText value="#{foo.index}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <h:outputText value="Depth"/>
+ </f:facet>
+ <h:outputText value="#{foo.depth}"/>
+ </tr:column>
+ </tr:treeTable>
+
+ <tr:panelHeader text="Report Items">
+ <tr:table var="foo" value="#{tableActions.reportItems}"
+ emptyText="Report is Empty"
+ summary="Report">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Label"/>
+ </f:facet>
+ <tr:outputText value="#{foo.label}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Parent"/>
+ </f:facet>
+ <tr:outputText value="#{foo.parentLabel}"/>
+ </tr:column>
+
+ <tr:column>
+ <f:facet name="header">
+ <h:outputText value="Index"/>
+ </f:facet>
+ <h:outputText value="#{foo.index}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <h:outputText value="Depth"/>
+ </f:facet>
+ <h:outputText value="#{foo.depth}"/>
+ </tr:column>
+ </tr:table>
+ </tr:panelHeader>
+
+ </tr:panelPage>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/clientConvert.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/clientConvert.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/clientConvert.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/clientConvert.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,176 @@
+<?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:tr="http://myfaces.apache.org/trinidad"
+ xmlns:trdemo="http://myfaces.apache.org/trinidaddemo">
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Client-side Converters and Validators">
+ <tr:form usesUpload="true">
+ <tr:panelPage>
+ <tr:messages/>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Converters and Validators"
+ action="convertValidateDemos"
+ immediate="true"/>
+ </tr:navigationPane>
+ </f:facet>
+ <tr:panelHeader text="Client-side Converters and Validators">
+ <tr:outputText styleClass="AFInstructionText"
+ value="In the following examples, converters and validators run on the client, avoiding a round trip."/>
+ <tr:spacer height="10"/>
+ <tr:panelHeader text="Client Converters"/>
+ <tr:panelFormLayout>
+ <tr:inputText value="#{clientValidation.integer}"
+ label="integer converter">
+ <f:facet name="help">
+ <tr:outputText value="examples of unconvertable values: 'a' or '11111111111'"/>
+ </f:facet>
+ </tr:inputText>
+ <tr:inputText value="#{clientValidation.longValue}"
+ label="long converter">
+ <f:facet name="help">
+ <tr:outputText value="examples of unconvertable values: 'a' or '11111111111111111111'"/>
+ </f:facet>
+ </tr:inputText>
+ <tr:inputText value="#{clientValidation.short}"
+ label="short converter">
+ <f:facet name="help">
+ <tr:outputText value="examples of unconvertable values: 'a' or '111111'"/>
+ </f:facet>
+ </tr:inputText>
+ <tr:inputText value="#{clientValidation.byte}"
+ label="byte converter">
+ <f:facet name="help">
+ <tr:outputText value="examples of unconvertable values: 'a' or '1111'"/>
+ </f:facet>
+ </tr:inputText>
+ <tr:inputText value="#{clientValidation.float}"
+ label="float converter">
+ <f:facet name="help">
+ <tr:outputText value="examples of unconvertable values: 'a' or 'cat'"/>
+ </f:facet>
+ </tr:inputText>
+ <tr:inputText value="#{clientValidation.double}"
+ label="double converter">
+ <f:facet name="help">
+ <tr:outputText value="examples of unconvertable values: 'a' or 'cat'"/>
+ </f:facet>
+ </tr:inputText>
+ <!--tr:inputText value="#{clientValidation.double2}"
+ label="number converter">
+ <f:facet name="help">
+ <tr:outputText value="must have 2 decimal places, examples of unconvertable values: '1.1' or '1.111'"/>
+ </f:facet>
+ <f:convertNumber maxFractionDigits="2" minFractionDigits="2"/>
+ </tr:inputText-->
+ <tr:inputColor label="color converter">
+ <f:facet name="help">
+ <tr:outputText value="examples of unconvertable values: '9/05' or 'cat'"/>
+ </f:facet>
+ </tr:inputColor>
+ <tr:inputDate label="date converter">
+ <f:facet name="help">
+ <tr:outputText value="examples of unconvertable values: '#FFFF' or 'cat'"/>
+ </f:facet>
+ </tr:inputDate>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Client Validators"/>
+ <tr:spacer height="10"/>
+ <tr:panelFormLayout>
+ <tr:inputText value="#{clientValidation.long2}"
+ label="long range validator">
+ <f:facet name="help">
+ <tr:outputText value="examples of values that will fail validation: '4' or '7'"/>
+ </f:facet>
+ <tr:validateLongRange minimum="5" maximum="6"/>
+ </tr:inputText>
+ <tr:inputText value="#{clientValidation.double3}"
+ label="double range validator">
+ <f:facet name="help">
+ <tr:outputText value="examples of values that will fail validation: '5.1' or '6.8'"/>
+ </f:facet>
+ <tr:validateDoubleRange minimum="5.2" maximum="6.7"/>
+ </tr:inputText>
+ <tr:inputText value="#{clientValidation.regExpValue}"
+ label="reg exp validator">
+ <f:facet name="help">
+ <tr:outputText value="examples of values that will fail validation: 1','2','4' all values other than '9'"/>
+ </f:facet>
+ <tr:validateRegExp pattern="[9]"/>
+ </tr:inputText>
+ <tr:inputText value="#{clientValidation.lengthValue}"
+ label="length validator">
+ <f:facet name="help">
+ <tr:outputText value="values longer than 4 will fail, for example: '44444444' or 'Seven'"/>
+ </f:facet>
+ <tr:validateLength maximum="4"/>
+ </tr:inputText>
+ <tr:inputText value="#{clientValidation.byteLengthValue}"
+ label="byte length validator">
+ <f:facet name="help">
+ <tr:outputText value="values longer than 4 bytes will fail, for example: '44444444' or 'Seven'"/>
+ </f:facet>
+ <tr:validateByteLength encoding="ISO-8859-1" maximum="4"/>
+ </tr:inputText>
+ <tr:inputText value="#{clientValidation.date}"
+ label="date range validator">
+ <f:facet name="help">
+ <tr:outputText value="examples of values that will fail validation: any date which is not in 2007"/>
+ </f:facet>
+ <tr:validateDateTimeRange minimum="2007-01-01"
+ maximum="2007-12-31"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Required"/>
+ <tr:spacer height="10"/>
+ <tr:panelFormLayout>
+ <tr:inputText required="true" label="required field"/>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Example of 3rd party Converter and Validator"/>
+ <tr:spacer height="10"/>
+ <tr:panelFormLayout>
+ <tr:inputText value="#{clientValidation.ssn}"
+ label="ssn converter">
+ <f:facet name="help">
+ <tr:outputText value="examples of unconvertable values: 'a' or 'cat'"/>
+ </f:facet>
+ <trdemo:convertSSN/>
+ </tr:inputText>
+ <tr:inputText required="true" secret="true"
+ label="password validator">
+ <f:facet name="help">
+ <tr:outputText value="examples of unconvertable values: 'a' or 'cat'"/>
+ </f:facet>
+ <trdemo:validatePassword/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <tr:panelButtonBar>
+ <tr:commandButton text="Submit"/>
+ </tr:panelButtonBar>
+ </tr:panelPage>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/clientDateRestrictionValidate.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/clientDateRestrictionValidate.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/clientDateRestrictionValidate.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/clientDateRestrictionValidate.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,73 @@
+<?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:tr="http://myfaces.apache.org/trinidad"
+ xmlns:trdemo="http://myfaces.apache.org/trinidaddemo">
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Client-side Date Restriction Validator">
+ <tr:form usesUpload="true">
+ <tr:panelPage>
+ <tr:messages/>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Converters and Validators"
+ action="convertValidateDemos"
+ immediate="true"/>
+ </tr:navigationPane>
+ </f:facet>
+ <tr:panelHeader text="Client-side Date Restriction Validator">
+ <tr:outputText styleClass="AFInstructionText"
+ value="In the following examples, the date Restriction validator runs on the client, avoiding a round trip."/>
+ <tr:spacer height="10"/>
+ <tr:panelHeader text="Client Validators"/>
+ <tr:spacer height="10"/>
+ <tr:panelFormLayout>
+
+ <tr:inputDate id="month" value="#{dateRestrictionValidator.testInvalidMonth}"
+ label="Select a date!">
+ <f:facet name="help">
+ <tr:outputText value="November/December dates are not allowed here!"/>
+ </f:facet>
+ <tr:convertDateTime pattern="yyyy-MM-dd"/>
+ <tr:validateDateRestriction invalidMonths="Nov Dec" />
+ </tr:inputDate>
+
+ <tr:inputDate id="daysOfWeek" value="#{dateRestrictionValidator.testInvalidDaysOfWeek}"
+ label="Select a date!">
+ <f:facet name="help">
+ <tr:outputText value="Please no Mondays...!"/>
+ </f:facet>
+ <tr:convertDateTime pattern="yyyy-MM-dd"/>
+ <tr:validateDateRestriction invalidDaysOfWeek="Mon"/>
+ </tr:inputDate>
+
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <tr:panelButtonBar>
+ <tr:commandButton text="Submit"/>
+ </tr:panelButtonBar>
+ </tr:panelPage>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/convertValidate.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/convertValidate.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/convertValidate.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/convertValidate.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,118 @@
+<?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 version="1.2" xmlns:tr="http://myfaces.apache.org/trinidad"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:jsp="http://java.sun.com/JSP/Page">
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title=" Trinidad Converters and Validators">
+ <tr:form>
+ <tr:panelPage>
+ <tr:messages/>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Validators and Converters"
+ action="convertValidateDemos"
+ immediate="true"/>
+ </tr:navigationPane>
+ </f:facet>
+ <tr:panelHeader text="Converters and Validators">
+ <tr:panelHeader text="Server Side Number Converter"/>
+ <tr:panelFormLayout>
+ <tr:inputText value="99.99" label="number converter1">
+ <f:facet name="help">
+ <tr:outputText value="type='number' integerOnly='true' - This will result in fraction part to be omitted"/>
+ </f:facet>
+ <f:convertNumber type="number" integerOnly="true"/>
+ </tr:inputText>
+ <tr:inputText value="#{converterValidator.currencyValue}"
+ label="number converter2" readOnly="true">
+ <f:facet name="help">
+ <tr:outputText value="type='currency' locale='en_US' currencyCode='EUR' - This results in EUR prefix before value"/>
+ </f:facet>
+ <f:convertNumber type="currency" locale="en_US"
+ currencyCode="EUR"/>
+ </tr:inputText>
+ <tr:inputText value="#{converterValidator.percentValue}"
+ label="number converter3">
+ <f:facet name="help">
+ <tr:outputText value="type='percent' locale='en_US' - This results in fraction displayed as integer value with % symbol"/>
+ </f:facet>
+ <f:convertNumber type="percent" locale="en_US"/>
+ </tr:inputText>
+ <tr:inputText value="#{converterValidator.groupValue}"
+ label="number converter4">
+ <f:facet name="help">
+ <tr:outputText value="type='number' locale='en_US'"/>
+ </f:facet>
+ <f:convertNumber type="number" locale="en_US"/>
+ </tr:inputText>
+ <tr:inputText value="#{converterValidator.currencyValue}"
+ label="number converter5" readOnly="true">
+ <f:facet name="help">
+ <tr:outputText value="type='currency' locale='en_US' currencySymbol='#' - This results in # as prefix for value"/>
+ </f:facet>
+ <f:convertNumber type="currency" locale="en_US"
+ currencySymbol="#"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Validators"/>
+ <tr:panelFormLayout>
+ <tr:inputText value="9999" label="reg exp validator">
+ <f:facet name="help">
+ <tr:outputText value="pattern='[9]*'"/>
+ </f:facet>
+ <tr:validateRegExp pattern="[9]*"/>
+ </tr:inputText>
+ <tr:inputText value="Four" label="byte length validator">
+ <f:facet name="help">
+ <tr:outputText value="maximum='4' encoding='ISO-8859-1'"/>
+ </f:facet>
+ <tr:validateByteLength encoding="ISO-8859-1" maximum="4"/>
+ </tr:inputText>
+ <tr:inputText value="424" label="multiple validators">
+ <f:facet name="help">
+ <tr:outputText value="Attached reg exp and long range validator. Allow three digit value with middle number being '2' and value not exceeding 920"/>
+ </f:facet>
+ <tr:validateRegExp pattern="[1-9][2][0-9]"/>
+ <f:validateLongRange maximum="920"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Date time range validator with ISO date format support"/>
+ <tr:panelFormLayout>
+ <tr:inputDate id="mdf3" value="2004-11-25"
+ label="Submission period">
+ <f:facet name="help">
+ <tr:outputText value="min=2004-11-16 max=2004-12-16"/>
+ </f:facet>
+ <tr:convertDateTime pattern="yyyy-MM-dd"/>
+ <tr:validateDateTimeRange minimum="2004-11-16"
+ maximum="2004-12-16"
+ messageDetailNotInRange='Date "{1}" does not fall within {2} : {3}'/>
+ </tr:inputDate>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <tr:commandButton text="Submit"/>
+ </tr:panelPage>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/convertValidateMessageCustomization.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/convertValidateMessageCustomization.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/convertValidateMessageCustomization.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/convertValidateMessageCustomization.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,178 @@
+<?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:tr="http://myfaces.apache.org/trinidad">
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title=" Trinidad Converters and Validators message customization">
+ <tr:form>
+ <tr:panelPage>
+ <tr:messages/>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Converters and Validators"
+ action="convertValidateDemos"
+ immediate="true"/>
+ </tr:navigationPane>
+ </f:facet>
+ <tr:panelHeader text="Custom messages for conversion and validation failures">
+ <tr:panelHeader text="Message customization on input component for 'required' validation"/>
+ <tr:panelFormLayout>
+ <tr:inputDate id="mdf1"
+ value="#{messageCustomization.date1}"
+ label="Date of birth" required="true"
+ requiredMessageDetail="#{messageCustomization.messages.DOB_REQD_ID}"></tr:inputDate>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Message customization on reg exp validator"/>
+ <tr:panelFormLayout>
+ <tr:inputText value="#{messageCustomization.regExpValue}"
+ label="Pin" >
+ <f:facet name="help">
+ <tr:outputText value="Enter your three digit pin"/>
+ </f:facet>
+ <tr:validateRegExp pattern="[1-9][0-9][0-9]"
+ messageDetailNoMatch="#{messageCustomization.messages.PIN_NO_MATCH_ID}"/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Message customization on byte length validator"/>
+ <tr:panelFormLayout>
+ <tr:inputText value="#{messageCustomization.byteLengthValue}"
+ label="Name">
+ <f:facet name="help">
+ <tr:outputText value="Enter your name. It should not exceed 4 characters"/>
+ </f:facet>
+ <tr:validateByteLength encoding="ISO-8859-1" maximum="4"
+ messageDetailMaximum='The "{0}" "{1}" exceeds {2} characters'/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Message customization on date time range validator"/>
+ <tr:panelFormLayout>
+ <tr:inputDate id="mdf3"
+ value="#{messageCustomization.date1}"
+ label="Start date for submission">
+ <f:facet name="help">
+ <tr:outputText value="min=#{messageCustomization.minDateTip}"/>
+ </f:facet>
+ <tr:validateDateTimeRange minimum="#{messageCustomization.minDate}"
+ messageDetailMaximum='Date "{1}" in "{0}" is farther than {2}'
+ messageDetailMinimum='Date "{1}" in "{0}" is before the accepted date - {2} for receving forms. '
+ messageDetailNotInRange='Date "{1}" in "{0}" not within minimum {2} and maximum range {3}'/>
+ </tr:inputDate>
+ <tr:inputDate id="mdf4"
+ value="#{messageCustomization.date1}"
+ label="Last date">
+ <f:facet name="help">
+ <tr:outputText value="max=#{messageCustomization.maxDateTip}"/>
+ </f:facet>
+ <tr:validateDateTimeRange maximum="#{date.maxDate}"
+ messageDetailMaximum='The date "{1}" in "{0}" which you have chosen, falls after the final acceptable date - {2}.'
+ messageDetailMinimum='Date "{1}" in "{0}" is less than the minimum acceptable: {2}.'
+ messageDetailNotInRange='Date "{1}" in "{0}" not within minimum {2} and maximum range {3}.'/>
+ </tr:inputDate>
+ <tr:inputDate id="mdf5"
+ value="#{messageCustomization.date1}"
+ label="Submission period">
+ <f:facet name="help">
+ <tr:outputText value="min=#{messageCustomization.minDateTip} max=#{messageCustomization.maxDateTip}"/>
+ </f:facet>
+ <tr:validateDateTimeRange minimum="#{messageCustomization.minDate}"
+ maximum="#{messageCustomization.maxDate}"
+ messageDetailNotInRange='Submission date "{1}" in "{0}" is not with in the specified period {2}-{3}.'/>
+ </tr:inputDate>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Message customization on color converter"/>
+ <tr:panelFormLayout>
+ <tr:inputColor id="sicConvx" label="Enter or choose color"
+ value="#{messageCustomization.color}">
+ <f:facet name="help">
+ <tr:outputText value="HTML hex color pattern:#RRGGBB"/>
+ </f:facet>
+ <tr:convertColor patterns="#RRGGBB" transparentAllowed="true"
+ messageDetailConvert='The color "{1}" you have chosen in "{0}" is not a valid HTML hex pattern {2}.'/>
+ </tr:inputColor>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Message customization on date time converter"/>
+ <tr:panelFormLayout>
+ <tr:inputDate id="mdf6" value="2004/09/06"
+ label="Date of birth">
+ <f:facet name="help">
+ <tr:outputText value="1/20/1972 or 1972/20/2"/>
+ </f:facet>
+ <!--All custom messages need not be set. It is just enough if we set 'convertDateMessageDetail' -->
+ <tr:convertDateTime secondaryPattern="d/M/yyyy"
+ pattern="yyyy/M/d"
+ messageDetailConvertDate='"{1}" in "{0}" is not a valid date. Example is {2}'
+ messageDetailConvertTime='"{1}" in "{0}", is not valid date. Example is {2}.'
+ messageDetailConvertBoth='"{1}" in "{0}", is not valid Date and time. The format is {2}.'/>
+ </tr:inputDate>
+ <tr:inputDate id="mdf7" value="11:36:15 AM"
+ label="Time of birth">
+ <f:facet name="help">
+ <tr:outputText value="11:36:15 AM"/>
+ </f:facet>
+ <tr:convertDateTime type="time" timeStyle="medium"
+ messageDetailConvertTime='"{1}" in "{0}", is not a valid time. Example: {2}.'/>
+ </tr:inputDate>
+ <tr:inputDate id="mdf8" value="12/20/2004 8:11 AM"
+ label="Date and time of birth">
+ <f:facet name="help">
+ <tr:outputText value="2/26/2005 8:11 AM"/>
+ </f:facet>
+ <tr:convertDateTime type="both"
+ messageDetailConvertBoth='"{1}" in "{0}", is not a valid Date and time. Example: {2}.'/>
+ </tr:inputDate>
+ </tr:panelFormLayout>
+ <tr:panelHeader text="Message customization on number converter"/>
+ <tr:panelFormLayout>
+ <tr:inputText value="555" label="Your lucky number">
+ <f:facet name="help">
+ <tr:outputText value="type='number' locale='en_US' Valid input=44444456 Invalid value=555o"/>
+ </f:facet>
+ <tr:convertNumber type="number" locale="en_US"
+ messageDetailConvertCurrency='"{1}" in "{0}" is not a valid currency value.'
+ messageDetailConvertNumber='"{1}" in "{0}" is not valid. Please choose a number.'
+ messageDetailConvertPattern='"{1}" in "{0}" does not match the pattern {2}'
+ messageDetailConvertPercent='"{1}" in "{0}" is not a valid percentile.'/>
+ </tr:inputText>
+ <tr:inputText value="5%" label="Machine efficieny"
+ readOnly="false">
+ <f:facet name="help">
+ <tr:outputText value="type='percent' locale='en_US' Valid value=75% Invalid value=75"/>
+ </f:facet>
+ <tr:convertNumber type="percent" locale="en_US"
+ messageDetailConvertPercent='"{1}" in "{0}" is not a valid efficiency value.'/>
+ </tr:inputText>
+ <tr:inputText value="10.88" label="Pattern based number">
+ <f:facet name="help">
+ <tr:outputText value="'pattern=##.000' locale='en_US' Invalid value=10e.88"/>
+ </f:facet>
+ <tr:convertNumber pattern="##.000" locale="en_US"
+ messageDetailConvertPattern='"{1}" in "{0}" does not match pattern {2}.'/>
+ </tr:inputText>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <tr:commandButton text="Submit"/>
+ </tr:panelPage>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,72 @@
+<?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 version="1.2" xmlns:tr="http://myfaces.apache.org/trinidad"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:jsp="http://java.sun.com/JSP/Page">
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Trinidad DateRestrictionValidator">
+ <tr:form>
+ <tr:panelPage>
+ <tr:messages/>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Validators and Converters"
+ action="convertValidateDemos"
+ immediate="true"/>
+ </tr:navigationPane>
+ </f:facet>
+ <tr:panelHeader text="Date Restriction Validator">
+ <tr:panelFormLayout>
+ <tr:inputDate id="days" value="#{dateRestrictionValidator.testInvalidDays}"
+ label="Select a date!">
+ <f:facet name="help">
+ <tr:outputText value="Ensures, that #{dateRestrictionValidator.country} holidays are not selectable"/>
+ </f:facet>
+ <tr:convertDateTime pattern="yyyy-MM-dd"/>
+ <tr:validateDateRestriction invalidDays="#{dateRestrictionValidator.nationalHolidays}" />
+ </tr:inputDate>
+
+ <tr:inputDate id="month" value="#{dateRestrictionValidator.testInvalidMonth}"
+ label="Select a date!">
+ <f:facet name="help">
+ <tr:outputText value="November/December dates are not allowed here!"/>
+ </f:facet>
+ <tr:convertDateTime pattern="yyyy-MM-dd"/>
+ <tr:validateDateRestriction invalidMonths="Nov Dec" />
+ </tr:inputDate>
+
+ <tr:inputDate id="daysOfWeek" value="#{dateRestrictionValidator.testInvalidDaysOfWeek}"
+ label="Select a date!">
+ <f:facet name="help">
+ <tr:outputText value="Please no Mondays...!"/>
+ </f:facet>
+ <tr:convertDateTime pattern="yyyy-MM-dd"/>
+ <tr:validateDateRestriction invalidDaysOfWeek="Mon"/>
+ </tr:inputDate>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <tr:commandButton text="Submit"/>
+ </tr:panelPage>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
\ No newline at end of file
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx Tue Jun 19 09:46:57 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:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Converter and Validator Demos">
+ <tr:form>
+ <tr:panelPage>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Return to Feature Demos page"
+ immediate="true"
+ action="demos"/>
+ </tr:navigationPane>
+ </f:facet>
+ <tr:panelHeader text="Converter and Validator Demos">
+ <tr:panelGroupLayout layout="vertical">
+ <tr:commandLink text="client converters and validators" action="clientConvert"/>
+ <tr:commandLink text="converters and validators" action="convertValidate"/>
+ <tr:commandLink text="client Date Restriction Validator" action="clientDateRestrictionValidate" />
+ <tr:commandLink text="Date Restriction Validator" action="dateRestrictionValidate" />
+ <tr:commandLink text="message customization on validators and converters" action="messageCustomization"/>
+ </tr:panelGroupLayout>
+ </tr:panelHeader>
+ </tr:panelPage>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css Tue Jun 19 09:46:57 2007
@@ -0,0 +1,172 @@
+/** Table portlet styles */
+.portlet-table-header {
+ border-color:#999999;
+ border-style:solid;
+ border-width:1px 1px 0px;
+ font-family:Helvetica;
+ font-size:10pt;
+ font-weight:bold;
+ background-color: lightgray;
+ color:#000000;
+ padding:1px 2px}
+
+.portlet-table-body {
+ border-color:red;
+ white-space:nowrap;
+ border-style:solid;
+ border-width:1px;
+ font-family:Helvetica;
+ font-size:10pt;
+ text-align:left;
+ background-color:#DFE0FD;
+ color:#000000;
+ vertical-align:baseline}
+
+.portlet-table-alternate {
+ border-color:red;
+ white-space:nowrap;
+ border-style:solid;
+ border-width:1px;
+ font-family:Helvetica;
+ font-size:10pt;
+ text-align:left;
+ background-color:#FFFFC0;
+ color:#000000;
+ vertical-align:baseline}
+
+.portlet-table-footer {
+ border-color:#999999;
+ border-style:solid;
+ border-width:1px 1px 0px;
+ font-family:Helvetica;
+ font-size:10pt;
+ font-weight:bold;
+ text-align:left;
+ background-color:#FF40FF;
+ color:#000000;
+ padding:1px 2px}
+
+.portlet-table-text {
+ border-color:#999999;
+ border-style:solid;
+ border-width:1px 1px 0px;
+ font-family:Helvetica;
+ font-size:10pt;
+ background-color:#e9e8e8;
+ color:#000000;
+ padding:1px 2px}
+
+.portlet-form-label {
+ font-size: 10pt;
+ font-weight: bold;
+ font-family:Helvetica;
+ color:blue;
+ text-align:right;
+}
+
+.portlet-form-field-label {
+ font-family:Helvetica;
+ font-size: 10pt;
+ color:Navy;
+}
+
+.portlet-form-field {
+ font-family:Helvetica;
+ font-size: 10pt;
+ color:aqua;
+}
+
+.portlet-form-input-field {
+ font-family:Helvetica;
+ font-size: 10pt;
+ color:red;
+}
+
+.portlet-msg-error {
+ font-family:Helvetica;
+ font-size: 18pt;
+ color:red;
+}
+
+.portlet-msg-alert {
+ font-family:Helvetica;
+ font-size: 10pt;
+ color:Fuchsia;
+}
+
+.portlet-msg-info {
+ font-family:Helvetica;
+ font-size: 10pt;
+ color:gray;
+}
+
+.portlet-font {
+ font-family:Helvetica;
+ font-size: 10pt;
+ color:blue;
+}
+
+.portlet-font-dim {
+ font-family:Helvetica;
+ font-size: 10pt;
+ color:lightgray;
+}
+
+.portlet-section-header {
+ font-family:Helvetica;
+ color:purple;
+ font-size:14pt;
+}
+.portlet-section-subheader {
+ font-family:Helvetica;
+ color:purple;
+ font-size: 12pt;
+}
+.portlet-menu {
+ font-family:Helvetica;
+ font-size: 10pt;
+ font-weight: normal;
+}
+.portlet-menu-item-selected {
+ background-color:pink;
+}
+.portlet-menu-item {
+ background-color:#C0FFFF;
+}
+.portlet-menu-cascade {
+ font-family:Helvetica;
+ font-size: 10pt;
+ font-weight: normal;
+ background-color:pink;
+ color:#ffffff;
+ min-height:4px;
+ padding:2px;
+}
+/* nothing */
+.portlet-menu-cascade-item {
+}
+
+.portlet-menu-cascade-item-selected {
+ font-weight:bold;
+}
+/* color doesn't show up on links unless I do this */
+.portlet-menu-cascade-item-selected A {
+ color:purple;
+}
+
+.portlet-menu-cascade-separator
+{
+ color:#ffffff;
+}
+
+.portlet-menu-separator
+{
+ width:0px;
+}
+
+A
+{
+ font-family:Helvetica;
+ font-size: 10pt;
+}
+
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/cancelledDialog.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/cancelledDialog.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/cancelledDialog.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/cancelledDialog.jspx Tue Jun 19 09:46:57 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: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="Cancelled">
+ <tr:form>
+ <tr:panelPage>
+ <tr:panelHeader text="Cancelled">
+ <tr:outputText value="The dialog was cancelled."/>
+ <tr:panelButtonBar>
+ <tr:commandButton text="Done" immediate="true">
+ <tr:returnActionListener/>
+ </tr:commandButton>
+ </tr:panelButtonBar>
+ </tr:panelHeader>
+ </tr:panelPage>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>