incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r523607 [7/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/bl...
Date Thu, 29 Mar 2007 07:51:08 GMT
Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/RedirectFilter.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/RedirectFilter.java?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/RedirectFilter.java (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/RedirectFilter.java Thu Mar 29 00:50:53 2007
@@ -0,0 +1,102 @@
+/*
+ *  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.
+ */
+package org.apache.myfaces.trinidaddemo.webapp;
+
+import java.io.IOException;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * Servlet filter that ensures the FacesServlet is called before rendering
+ * the page.  Most useful for getting JSP Faces pages to work correctly.
+ * <p>
+ * @version $Name:  $ ($Revision$) $Date$
+ * @author John Fallows
+ */
+public class RedirectFilter implements Filter 
+{
+  public static final String URL_PATTERN_PARAM = "faces-servlet-url-pattern";
+  public static final String DEFAULT_URL_PATTERN = "/faces/*";
+
+  public void init(
+    FilterConfig filterConfig) throws ServletException
+  {
+    String pattern = filterConfig.getInitParameter(URL_PATTERN_PARAM);
+    
+    if (pattern == null)
+      pattern = DEFAULT_URL_PATTERN;
+      
+    int offset = pattern.indexOf('*');
+    if (offset > 1 && pattern.charAt(offset - 1) == '/')
+      offset--;
+      
+    _servletPath = pattern.substring(0, offset);
+  }
+
+  public void destroy()
+  {
+    // Technically, we should dump _servletPath.  However,
+    // OC4J is calling destroy(), then not calling init() before
+    // using the Filter again!  So ignore destroy().
+    //    _servletPath = null;
+  }
+
+  public void doFilter(
+    ServletRequest  request, 
+    ServletResponse response, 
+    FilterChain     chain) throws IOException, ServletException
+  {
+    if (request instanceof HttpServletRequest)
+    {
+      HttpServletRequest httpRequest = (HttpServletRequest) request;
+      String servletPath = httpRequest.getServletPath(); 
+      if (!servletPath.startsWith(_servletPath))
+      {
+        servletPath = _servletPath + servletPath;
+        String pathInfo = httpRequest.getPathInfo();
+        String queryString = httpRequest.getQueryString();
+        // Use a client-side redirect
+        String url =
+          (httpRequest.getContextPath() +
+           servletPath + 
+           (pathInfo == null ? "": pathInfo) +
+           (queryString == null ? "": queryString));
+        
+        // Use a client-side redirect so that filters will run
+        ((HttpServletResponse) response).sendRedirect(url);
+        /*
+          request.getRequestDispatcher(servletPath).
+          forward(request, response);
+        */
+        return;
+      }
+    }
+
+    chain.doFilter(request, response);
+  }
+
+  private String _servletPath;
+}

Propchange: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/RedirectFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/RedirectFilter.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/SourceCodeServlet.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/SourceCodeServlet.java?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/SourceCodeServlet.java (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/SourceCodeServlet.java Thu Mar 29 00:50:53 2007
@@ -0,0 +1,73 @@
+/*
+ *  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.
+ */
+package org.apache.myfaces.trinidaddemo.webapp;
+
+import java.io.BufferedInputStream;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+
+import javax.servlet.ServletException;
+import javax.servlet.ServletOutputStream;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+
+public class SourceCodeServlet extends HttpServlet
+{
+  @Override
+  public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
+  {
+  String webPage = req.getServletPath();
+  
+  // remove the '*.source' suffix that maps to this servlet
+  int source = webPage.indexOf(".source");
+  webPage = webPage.substring(0, source);
+
+  //remove "/faces" mapping
+  webPage = StringUtils.remove(webPage, "/faces");
+
+  // get the actual file location of the requested resource
+  String realPath = getServletConfig().getServletContext().getRealPath(webPage);
+
+  // output an HTML page
+  res.setContentType("text/plain");
+
+  // print some html
+  ServletOutputStream out = res.getOutputStream();
+
+  // print the file
+  InputStream in = null;
+  try 
+  {
+      in = new BufferedInputStream(new FileInputStream(realPath));
+      int ch;
+      while ((ch = in.read()) !=-1) 
+      {
+          out.print((char)ch);
+      }
+  }
+  finally {
+      if (in != null) in.close();  // very important
+  }
+}
+
+}
\ No newline at end of file

Propchange: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/SourceCodeServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/webapp/SourceCodeServlet.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/DISCLAIMER.txt
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/DISCLAIMER.txt?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/DISCLAIMER.txt (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/DISCLAIMER.txt Thu Mar 29 00:50:53 2007
@@ -0,0 +1,10 @@
+Apache Trinidad Demo is an effort undergoing incubation at the Apache Software 
+Foundation (ASF), sponsored by the Apache Incubator PMC. 
+
+Incubation is required of all newly accepted projects until a further review 
+indicates that the infrastructure, communications, and decision making process 
+have stabilized in a manner consistent with other successful ASF projects. 
+
+While incubation status is not necessarily a reflection of the completeness 
+or stability of the code, it does indicate that the project has yet to be 
+fully endorsed by the ASF.

Propchange: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/DISCLAIMER.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/DISCLAIMER.txt
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/LICENSE
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/LICENSE?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/LICENSE (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/LICENSE Thu Mar 29 00:50:53 2007
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed 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.

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/NOTICE?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/NOTICE (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/resources/META-INF/NOTICE Thu Mar 29 00:50:53 2007
@@ -0,0 +1,16 @@
+=========================================================================
+==  NOTICE file corresponding to section 4(d) of the Apache License,   ==
+==  Version 2.0, in this case for the Apache Trinidad Podling Plugins  ==
+=========================================================================
+
+This product includes software developed by 
+The Apache Software Foundation (http://www.apache.org/).
+
+Portions of this software were originally based on the following:
+
+ - software copyright (c) 2000-2006, Oracle Corp, <http://www.oracle.com/>.
+and are licensed to the Apache Software Foundation under the 
+"Software Grant and Corporate Contribution License Agreement"
+
+See the LICENSE.txt file for information on all licenses 
+associated with this software.
\ No newline at end of file

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/componentDemos.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/componentDemos.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/componentDemos.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/componentDemos.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,69 @@
+<?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="Component Demos">
+      <tr:form> 
+        <tr:panelPage>
+          <f:facet name="navigationGlobal">
+            <tr:navigationPane hint="buttons">
+              <tr:commandNavigationItem text="Return to Index"
+                  immediate="true"
+                  action="home"/>
+            </tr:navigationPane>
+          </f:facet>
+          <tr:panelHeader text="Component Demos">
+            <tr:panelHeader text="Core Components">
+              <tr:tree var="component" value="#{componentTree.model}"
+                binding="#{componentTreeBean.tree}">
+                <f:facet name="nodeStamp">
+                  <tr:panelGroupLayout>
+                    <tr:outputText value="Example:" rendered="#{component.example}"/>
+                    <tr:commandLink text="#{component.label}"
+                      disabled="#{empty component.filename}"
+                      action="#{component.view}"/>
+                  </tr:panelGroupLayout>
+                </f:facet>
+              </tr:tree>
+            </tr:panelHeader>
+  
+            <tr:panelHeader text="Html Components">
+              <tr:panelGroupLayout layout="vertical">
+                <tr:commandLink text="body" action="guide.body"/>
+                <tr:commandLink text="cellFormat" action="guide.cellFormat"/>
+                <tr:outputFormatted value="frame - see FrameBorderLayout" styleUsage="instruction"/>
+                <tr:commandLink text="frameBorderLayout" action="guide.frameBorderLayout"/>
+                <tr:commandLink text="html" action="guide.html"/>
+                <tr:commandLink text="rowLayout" action="guide.rowLayout"/>
+                <tr:commandLink text="tableLayout" action="guide.tableLayout"/>
+              </tr:panelGroupLayout>
+            </tr:panelHeader>
+          </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/breadCrumbs.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/breadCrumbs.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/breadCrumbs.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/breadCrumbs.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"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:tr="http://myfaces.apache.org/trinidad"
+          version="1.2">
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="BreadCrumbs Demo">
+      <tr:form>
+        <tr:panelGroupLayout layout="vertical">
+          <f:facet name="separator">
+            <tr:separator/>
+          </f:facet>
+          <tr:navigationPane hint="buttons">
+            <tr:commandNavigationItem immediate="true" text="Component Guide"
+              action="guide"/>
+            <tr:commandNavigationItem immediate="true" text="Page Hierarchy Demo"
+              action="guide.page"/>
+            <tr:commandNavigationItem immediate="true" text="NavigationPane Demo"
+              action="guide.navigationPane"/>
+            <tr:commandNavigationItem immediate="true" text="CommandNavigationItem Demo"
+              action="guide.commandNavigationItem"/>
+            <tr:commandNavigationItem immediate="true" text="PanelPage Demo"
+              action="guide.panelPage"/>
+          </tr:navigationPane>
+          <tr:outputFormatted styleUsage="instruction" value="&lt;b>A breadCrumbs&lt;/b>"/>
+          <tr:breadCrumbs binding="#{editor.component}">
+            <tr:commandNavigationItem text="breadCrumbs Demo" action="guide.breadCrumbs"/>
+            <tr:commandNavigationItem text="Apache.org" destination="http://www.apache.org" targetFrame="_new"/>
+            <tr:commandNavigationItem text="Disabled Item" disabled="true" action="guide.tree"/>
+            <tr:commandNavigationItem text="NavigationPane Demo" action="guide.navigationPane"/>
+            <tr:commandNavigationItem text="Current Page" action="guide.breadCrumbs"/>
+          </tr:breadCrumbs>
+          <jsp:directive.include file="editor.jspf"/>
+          <tr:outputFormatted styleUsage="instruction" value="&lt;b>A breadCrumbs with the 'orientation' attribute set to 'vertical'&lt;/b>"/>
+          <tr:breadCrumbs orientation="vertical">
+            <tr:commandNavigationItem text="Table Demo" action="guide.table"/>
+            <tr:commandNavigationItem text="Tree Demo" action="guide.tree"/>
+            <tr:commandNavigationItem text="PanelPage Demo" action="guide.panelPage"/>
+            <tr:commandNavigationItem text="BreadCrumbs Demo" action="guide.breadCrumbs"/>
+          </tr:breadCrumbs>
+        </tr:panelGroupLayout>
+      </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chart.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chart.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chart.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chart.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,101 @@
+<?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="Chart 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="&lt;b>Chart&lt;/b>"/>
+          <tr:chart chartDrillDownListener="#{chart.drillDown}" id="chart" YMajorGridLineCount="7" value="#{chart.value}" inlineStyle="width:680px; height:400px;" 
+            binding="#{chart.editor.component}"/>
+          <tr:panelGroupLayout layout="horizontal">
+            <tr:commandButton  text="Update"
+                              action="#{chart.editor.update}"/>
+            <tr:commandButton id="partialButton" partialSubmit="true" text="Update Partial"
+                              action="#{chart.updatePartial}"/>
+            
+            <tr:selectBooleanCheckbox immediate="true" label="Larger Data Set"
+                value="#{chart.largerDataSet}"/>
+
+          </tr:panelGroupLayout>
+          <tr:table var="row" rows="100" value="#{chart.editor.attributes}" 
+                    summary="Attributes">
+            <tr:column>
+              <f:facet name="header">
+                <tr:outputText value="Name"/>
+              </f:facet>
+              <tr:outputText value="#{row.name}"/>
+            </tr:column>
+            <tr:column>
+              <f:facet name="header">
+                <tr:outputText value="Value"/>
+              </f:facet>
+              <tr:inputText immediate="true"
+                             readOnly="#{row.name == 'value' ||
+                                         row.name == 'var' ||
+                                         row.name == 'currencyKey' ||
+                                         row.name == 'currencyString' ||
+                                         row.name == 'rowKey' ||
+                                         row.name == 'id' ||
+                                         row.name == 'rendererType' ||
+                                         row.name == 'submittedValue'}"
+                             rendered="#{row.type == 'string'}"
+                             value="#{row.value}"
+                             shortDesc="Type to change '#{row.name}'"/>
+              <tr:inputText immediate="true"
+                             readOnly="#{row.name == 'rowIndex'}"
+                             rendered="#{row.type == 'integer'}"
+                             value="#{row.value}"
+                             shortDesc="Type to change '#{row.name}'">
+                <f:converter converterId="javax.faces.Integer"/>
+              </tr:inputText>
+              <tr:inputText immediate="true"
+                            rendered="#{row.type == 'date'}"
+                            value="#{row.value}"
+                            shortDesc="Type to change '#{row.name}'">
+                <f:facet name="help">
+                  <tr:outputText value="Sample format: 2004-07-15"/>
+                </f:facet>
+                <f:convertDateTime pattern="yyyy-MM-dd"/>
+              </tr:inputText>
+              <tr:selectBooleanCheckbox rendered="#{row.type == 'boolean'}"
+                                         readOnly="#{row.name == 'localValueSet' ||
+                                                     row.name == 'valid' ||
+                                                     row.name == 'transient'}"
+                                         immediate="true" value="#{row.value}"
+                                         shortDesc="Click to change '#{row.name}'"/>
+            </tr:column>
+          </tr:table>
+        </tr:panelGroupLayout>
+      </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqData.txt
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqData.txt?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqData.txt (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqData.txt Thu Mar 29 00:50:53 2007
@@ -0,0 +1,53 @@
+2176.47	2142.73	2186.83
+2157.37	2093.06	2162.14
+2127.9	2107.7	2151.69
+2152.7	2069.04	2167
+2091.68	2025.58	2093.23
+2065.54	2042.03	2096.43
+2089.51	2063.81	2121.36
+2094.37	2094.37	2172.68
+2174.25	2162.65	2205.36
+2203.79	2176.54	2234.3
+2226.62	2219.25	2269.3
+2263.55	2230.19	2273.61
+2269.07	2233.74	2278.16
+2263.97	2247.32	2271.85
+2254.64	2213.52	2256.03
+2253.05	2200.51	2259.68
+2216.53	2189.91	2306.72
+2306.18	2303.13	2332.92
+2302.56	2245.2	2311.71
+2255.31	2241.02	2314.36
+2306.24	2255.99	2313.98
+2263.12	2235.41	2284.52
+2252.04	2232.68	2294.63
+2283.52	2256.75	2293.74
+2291.48	2276.74	2324.92
+2306.66	2239.54	2309.51
+2269.44	2263.68	2323.79
+2311.93	2282.38	2332.95
+2312.47	2299.56	2353.14
+2352.24	2332.67	2375.45
+2340.39	2302.19	2343.59
+2325.56	2299.42	2375.54
+2338.78	2315.12	2361.89
+2329.79	2295.03	2344.37
+2342.41	2243.32	2352.56
+2234.01	2164.54	2245.18
+2178.15	2135.81	2210.49
+2202.57	2164.74	2233.88
+2212.35	2100.43	2219.41
+2137.47	2065.11	2147.91
+2136.6	2103.77	2152.56
+2126.46	2090.78	2183.48
+2177.91	2126.64	2190.44
+2135.96	2027.11	2142.36
+2034.76	2012.78	2086.07
+2030.49	2030.49	2094.95
+2087.86	2052.75	2119.01
+2079.45	2048.22	2097.76
+2073.01	2067.69	2168.11
+2151.91	2122.65	2162.68
+2140.52	2139.57	2198.58
+2192.94	2149.36	2207.55
+2152.12	2147.44	2247.16

Propchange: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqData.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqData.txt
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqXData.txt
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqXData.txt?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqXData.txt (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqXData.txt Thu Mar 29 00:50:53 2007
@@ -0,0 +1,53 @@
+1	1	1
+2	2	2
+3	3	3
+4	4	4
+5	5	5
+6	6	6
+7	7	7
+8	8	8
+9	9	9
+10	10	10
+11	11	11
+12	12	12
+13	13	13
+14	14	14
+15	15	15
+16	16	16
+17	17	17
+18	18	18
+19	19	19
+20	20	20
+21	21	21
+22	22	22
+23	23	23
+24	24	24
+25	25	25
+26	26	26
+27	27	27
+28	28	28
+29	29	29
+30	30	30
+31	31	31
+32	32	32
+33	33	33
+34	34	34
+35	35	35
+36	36	36
+37	37	37
+38	38	38
+39	39	39
+40	40	40
+41	41	41
+42	42	42
+43	43	43
+44	44	44
+45	45	45
+46	46	46
+47	47	47
+48	48	48
+49	49	49
+50	50	50
+51	51	51
+52	52	52
+53	53	53

Propchange: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqXData.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chartData/NasdaqXData.txt
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chooseColor.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chooseColor.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chooseColor.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chooseColor.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,66 @@
+<?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="ChooseColor 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="&lt;b>A chooseColor associated with a selectInputColor&lt;/b>"/>                
+              <tr:inputColor id="sic1" chooseId="cp1"
+                shortDesc="Select color from pallette"                
+                label="Enter or select color from palette below"
+                value="#{color.colorValue1}"/>                              
+              <tr:chooseColor id="cp1" 
+                colorData="#{requestContext.colorPalette.default49}"/>
+                          
+              <tr:outputFormatted styleUsage="instruction" value="&lt;b>Color Converter with patterns &quot;rrr-ggg-bbb #RRGGBB&quot; associated with selectInputColor component&lt;/b>"/>                
+              <tr:inputColor id="sicConv" chooseId="cpConv"
+                label="Enter or select color from palette below"
+                value="#{color.colorValue1}">
+                <tr:convertColor  patterns="rrr-ggg-bbb #RRGGBB" transparentAllowed="false" />
+              </tr:inputColor>
+              <tr:chooseColor id="cpConv" 
+                colorData="#{requestContext.colorPalette.default49}"/>
+
+              <tr:outputFormatted styleUsage="instruction" value="&lt;b>A chooseColor with attribute 'colorData' bound to a list(java.util.List) of colors(java.awt.Color) and attribute 'customColorData' bound to an array of colors(java.awt.Color)&lt;/b>"/>                                
+              <tr:chooseColor id="cp2" 
+                colorData="#{color.colorList}"
+                customColorData="#{color.colorArray}"/>
+  
+              <tr:outputFormatted styleUsage="instruction" value="&lt;b>A chooseColor using standard 80 color palette(Trinidad implicit object) - Update its properties  from the table below&lt;/b>"/>                                
+              <tr:chooseColor binding="#{editor.component}" id="cp3" 
+                colorData="#{requestContext.colorPalette.default80}" width="16"/>
+              <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/chooseDate.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chooseDate.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chooseDate.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/chooseDate.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:h="http://java.sun.com/jsf/html"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+   <tr:document title="ChooseDate 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="&lt;b>Simple chooseDate &lt;/b>"/>
+            <tr:chooseDate binding="#{editor.component}" id="idp1" shortDesc="Choose Date"/>
+            <tr:inputDate id="df1a"
+                           chooseId="idp1"
+                           shortDesc="Choose Date"/>
+            <tr:inputText id="ti1a" value="Not a Date Field" shortDesc="Enter value"/>
+            <tr:inputDate id="df1b"
+                           chooseId="idp1"
+                           shortDesc="Choose Date"/>
+            <tr:inputDate id="df1c"
+                           chooseId="idp1"
+                           shortDesc="Choose Date"/>
+
+            <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/column.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:h="http://java.sun.com/jsf/html"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html" 
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+ <tr:document title="Column Demo">
+        <tr:form >
+          <tr:panelGroupLayout layout="vertical">
+            <tr:commandLink immediate="true" text="Component Guide"
+                  action="guide"/>
+            <tr:commandLink immediate="true" text="Column Demo"
+                  action="guide.column"/>
+            <tr:commandLink immediate="true" text="Column Group"
+                  action="guide.column.group"/>
+            <tr:commandLink immediate="true" text="RowHeader Column"
+                  action="guide.column.rowHeader"/>
+            <tr:commandLink immediate="true" text="Sortable Column"
+                  action="guide.column.sortable"/>
+            <tr:commandLink immediate="true" text="Column Footer"
+                  action="guide.column.footer"/>
+
+            <tr:outputFormatted styleUsage="instruction" 
+              value="&lt;br&gt;&lt;b>Column&lt;/b>"/>
+            <tr:table id="foo" value="#{table}" var="row" rows="5" 
+                      summary="Column Demo">
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Header 1"/>
+                </f:facet>
+                <tr:outputText value="#{row.int}"/>
+              </tr:column>
+              <tr:column  separateRows="true"
+                          binding="#{editor.component}">
+                <f:facet name="header">
+                  <tr:outputText value="Separate Rows"/>
+                </f:facet>
+                <tr:outputText value="#{row.int}"/>
+                <tr:outputText value="#{row.string}"/>
+              </tr:column>
+
+              <tr:column align="right">
+                <f:facet name="header">
+                  <tr:outputText value="Right"/>
+                </f:facet>
+                <tr:outputText value="#{row.int}"/>
+              </tr:column>
+              <tr:column align="center">
+                <f:facet name="header">
+                  <tr:outputText value="Center"/>
+                </f:facet>
+                <tr:outputText value="#{row.int}"/>
+              </tr:column>
+
+              <tr:column noWrap="true">
+                <f:facet name="header">
+                  <tr:outputText value="Data Does Not Wrap"/>
+                </f:facet>
+                <tr:outputText value=" #{row.string} #{row.string}"/>
+              </tr:column>
+              <tr:column headerNoWrap="true">
+                <f:facet name="header">
+                  <tr:outputText value="Header No Wrap"/>
+                </f:facet>
+                <tr:outputText value=" #{row.string} #{row.string} #{row.string}"/>
+              </tr:column>
+
+            </tr:table>
+
+            <tr:outputFormatted styleUsage="instruction" 
+              value="&lt;br&gt;This Editor controls the 'Separate Rows' Column:"/>
+            <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/column_footer.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_footer.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_footer.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_footer.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:h="http://java.sun.com/jsf/html"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html" 
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+ <tr:document title="Column Footer Demo">
+        <tr:form >
+          <tr:panelGroupLayout layout="vertical">
+            <tr:commandLink immediate="true" text="Component Guide"
+                  action="guide"/>
+            <tr:commandLink immediate="true" text="Column Demo"
+                  action="guide.column"/>
+            <tr:commandLink immediate="true" text="Column Group"
+                  action="guide.column.group"/>
+            <tr:commandLink immediate="true" text="RowHeader Column"
+                  action="guide.column.rowHeader"/>
+            <tr:commandLink immediate="true" text="Sortable Column"
+                  action="guide.column.sortable"/>
+            <tr:commandLink immediate="true" text="Column Footer"
+                  action="guide.column.footer"/>
+
+            <tr:outputFormatted styleUsage="instruction" 
+              value="&lt;br&gt;&lt;b>Columns With Footer&lt;/b>"/>
+            <tr:table value="#{table}" var="row" 
+                      rows="5" summary="Column Footer Demo">
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Header 1"/>
+                </f:facet>
+                <tr:outputText value="#{row.string}"/>
+              </tr:column>
+
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Header 2"/>
+                </f:facet>
+                <tr:outputText value="#{row.string}"/>
+              </tr:column>
+
+              <tr:column align="right">
+                <f:facet name="header">
+                  <tr:outputText value="Header 3"/>
+                </f:facet>
+                <tr:outputText value="#{10 * row.int}"/>
+                <f:facet name="footer">
+                  <tr:outputText value="999"/>
+                </f:facet>
+              </tr:column>             
+
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Header 4"/>
+                </f:facet>
+                <tr:outputText value="#{row.string}"/>
+              </tr:column>
+
+              <tr:column align="right">
+                <f:facet name="header">
+                  <tr:outputText value="Header 5"/>
+                </f:facet>
+                <tr:outputText value="#{100 * row.int}"/>
+                <f:facet name="footer">
+                  <tr:outputText value="9999"/>
+                </f:facet>
+              </tr:column>             
+
+              <f:facet name="footer">
+                <tr:outputText value="Total"/>
+              </f:facet>
+            </tr:table>
+
+
+
+          </tr:panelGroupLayout>
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_group.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_group.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_group.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_group.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:h="http://java.sun.com/jsf/html"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html" 
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+ <tr:document title="Column Group Demo">
+        <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+             <tr:commandLink immediate="true" text="Component Guide"
+                  action="guide"/>
+            <tr:commandLink immediate="true" text="Column Demo"
+                  action="guide.column"/>
+            <tr:commandLink immediate="true" text="Column Group"
+                  action="guide.column.group"/>
+            <tr:commandLink immediate="true" text="RowHeader Column"
+                  action="guide.column.rowHeader"/>
+            <tr:commandLink immediate="true" text="Sortable Column"
+                  action="guide.column.sortable"/>
+
+            <tr:outputFormatted styleUsage="instruction" value="&lt;p>&lt;b>Column Group&lt;/b>"/>
+            <tr:table value="#{periodicTable.tableData}" rows="7"
+              var="row" summary="Column Group Demo">
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Atom"/>
+                </f:facet>
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Symbol"/>
+                  </f:facet>
+                  <tr:outputText value="#{row.symbol}"/>
+                </tr:column>
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Description"/>
+                  </f:facet>
+                  <tr:column>
+                    <f:facet name="header">
+                      <tr:outputText value="Name"/>
+                    </f:facet>
+                    <tr:outputText value="#{row.name}"/>
+                  </tr:column>
+                  <tr:column>
+                    <f:facet name="header">
+                      <tr:outputText value="Number"/>
+                    </f:facet>
+                    <tr:outputText value="#{row.number}"/>
+                  </tr:column>
+                  <tr:column>
+                    <f:facet name="header">
+                      <tr:outputText value="Group"/>
+                    </f:facet>
+                    <tr:outputText value="#{row.group}"/>
+                  </tr:column>
+                </tr:column>
+              </tr:column>
+            </tr:table>
+
+
+          </tr:panelGroupLayout>
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_rowHeader.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_rowHeader.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_rowHeader.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_rowHeader.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:h="http://java.sun.com/jsf/html"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html" 
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+ <tr:document title="Row Header Column Demo">
+        <tr:form >
+          <tr:panelGroupLayout layout="vertical">
+            <tr:commandLink immediate="true" text="Component Guide"
+                  action="guide"/>
+            <tr:commandLink immediate="true" text="Column Demo"
+                  action="guide.column"/>
+            <tr:commandLink immediate="true" text="Column Group"
+                  action="guide.column.group"/>
+            <tr:commandLink immediate="true" text="RowHeader Column"
+                  action="guide.column.rowHeader"/>
+            <tr:commandLink immediate="true" text="Sortable Column"
+                  action="guide.column.sortable"/>
+            <tr:commandLink immediate="true" text="Column Footer"
+                  action="guide.column.footer"/>
+
+            <tr:outputFormatted styleUsage="instruction" 
+              value="&lt;br&gt;&lt;b>RowHeader Column&lt;/b>"/>
+            <tr:table value="#{periodicTable.tableData}" rows="7"
+              rowSelection="single"
+              var="row" summary="Row Header Column Demo">
+                <tr:column rowHeader="true"
+                    binding="#{editor.component}">
+                  <tr:outputText value="#{row.group}"/>
+                </tr:column>
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Symbol"/>
+                  </f:facet>
+                  <tr:outputText value="#{row.symbol}"/>
+                </tr:column>
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Name"/>
+                  </f:facet>
+                  <tr:outputText value="#{row.name}"/>
+                </tr:column>
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Number"/>
+                  </f:facet>
+                  <tr:outputText value="#{row.number}"/>
+                </tr:column>
+            </tr:table>
+
+            <tr:outputFormatted styleUsage="instruction" 
+              value="&lt;br&gt;This Editor controls the RowHeader Column:"/>
+            <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/column_sortable.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_sortable.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_sortable.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/column_sortable.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:h="http://java.sun.com/jsf/html"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html" 
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+ <tr:document title="table Sorting Demo">
+        <tr:form >
+          <tr:panelGroupLayout layout="vertical">
+            <tr:commandLink immediate="true" text="Component Guide"
+                  action="guide"/>
+            <tr:commandLink immediate="true" text="Column Demo"
+                  action="guide.column"/>
+            <tr:commandLink immediate="true" text="Column Group"
+                  action="guide.column.group"/>
+            <tr:commandLink immediate="true" text="RowHeader Column"
+                  action="guide.column.rowHeader"/>
+            <tr:commandLink immediate="true" text="Sortable Column"
+                  action="guide.column.sortable"/>
+
+            <tr:outputFormatted styleUsage="instruction" 
+              value="&lt;br&gt;&lt;b>Sortable Table&lt;/b>"/>
+            <tr:table value="#{periodicTable.tableData}" var="row" rows="10"
+                      summary="Element Properties"> 
+              <tr:column sortProperty="name" sortable="true">
+                <f:facet name="header">
+                  <tr:outputText value="Name"/>
+                </f:facet>
+                <tr:inputText value="#{row.name}" shortDesc="{row.name}"/>
+              </tr:column>
+              <tr:column sortProperty="symbol" sortable="true">
+                <f:facet name="header">
+                  <tr:outputText value="Symbol"/>
+                </f:facet>
+                <tr:inputText value="#{row.symbol}" shortDesc="{row.symbol}"/>
+              </tr:column>
+              <tr:column sortProperty="number" sortable="true">
+                <f:facet name="header">
+                  <tr:outputText value="Number"/>
+                </f:facet>
+                <tr:inputText value="#{row.number}" shortDesc="#{row.number}"/>
+              </tr:column>
+              <tr:column sortProperty="group" sortable="true">
+                <f:facet name="header">
+                  <tr:outputText value="Group"/>
+                </f:facet>
+                <tr:inputText value="#{row.group}" shortDesc="#{row.group}" />
+              </tr:column>
+            </tr:table>
+
+            <tr:outputFormatted styleUsage="instruction" 
+              value="&lt;br&gt;&lt;b>Empty Table&lt;/b>"/>
+            <tr:table  var="row" rows="10"
+              emptyText="No records found" summary="Empty Table">            
+              <tr:column sortProperty="int" sortable="true">
+                <f:facet name="header">
+                  <tr:outputText value="Int"/>
+                </f:facet>
+                <tr:inputText value="#{row.int}" shortDesc="#{row.int}"/>
+              </tr:column>
+              <tr:column sortProperty="string" sortable="true">
+                <f:facet name="header">
+                  <tr:outputText value="String"/>
+                </f:facet>
+                <tr:inputText value="#{row.string}" shortDesc="#{row.string}"/>
+              </tr:column>
+            </tr:table>
+            
+          </tr:panelGroupLayout>    
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/commandButton.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/commandButton.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/commandButton.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/commandButton.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,44 @@
+<?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="commandButton 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="&lt;b>Command button&lt;/b>"/>
+              <tr:commandButton binding="#{editor.component}"
+                  text="Go to breadCrumbs demo" action="guide.breadCrumbs"/>
+              <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/commandLink.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/commandLink.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/commandLink.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/commandLink.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="CommandLink 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="&lt;b>A simple commandLink &lt;/b>"/>            
+            <tr:commandLink binding="#{editor.component}" accessKey="P" text="Page 1" action="#{action.app1}"/>            
+            
+            <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/commandNavigationItem.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/commandNavigationItem.jspx?view=auto&rev=523607
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/commandNavigationItem.jspx (added)
+++ incubator/adffaces/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/commandNavigationItem.jspx Thu Mar 29 00:50:53 2007
@@ -0,0 +1,204 @@
+<?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:jsp="http://java.sun.com/JSP/Page"
+          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="commandNavigationItem Demo">
+      <tr:form>
+        <tr:panelGroupLayout layout="vertical">
+          <f:facet name="separator">
+            <tr:separator/>
+          </f:facet>
+          <tr:navigationPane hint="buttons">
+            <tr:commandNavigationItem immediate="true" text="Component Guide"
+              action="guide"/>
+            <tr:commandNavigationItem immediate="true" text="Page Hierarchy Demo"
+              action="guide.page"/>
+            <tr:commandNavigationItem immediate="true" text="NavigationPane Demo"
+              action="guide.navigationPane"/>
+            <tr:commandNavigationItem immediate="true" text="BreadCrumbs Demo"
+              action="guide.breadCrumbs"/>
+            <tr:commandNavigationItem immediate="true" text="PanelPage Demo"
+              action="guide.panelPage"/>
+          </tr:navigationPane>
+          <tr:outputFormatted styleUsage="instruction" value="&lt;b>A commandNavigationItem&lt;/b>"/>
+          <tr:panelGroupLayout layout="vertical">
+            <tr:outputFormatted
+              value="&lt;b>commandNavigationItem's inside of a navigationPane with hint=&quot;tabs&quot;&lt;/b>"/>
+            <tr:navigationPane hint="tabs" shortDesc="Select Page"
+              id="editorExample">
+              <tr:commandNavigationItem
+                binding="#{editor.component}"
+                text="Editor Item"
+                shortDesc="Item with an assigned actionListener"
+                partialSubmit="true"
+                accessKey="A"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"/>
+              <tr:commandNavigationItem text="Selected Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                partialSubmit="true"
+                selected="true"/>
+              <tr:commandNavigationItem text="Icon Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                icon="/components/images/file.gif"
+                partialSubmit="true"/>
+              <tr:commandNavigationItem text="Disabled Item"
+                disabled="true"
+                action="guide"
+                destination="http://www.apache.org/"/>
+              <tr:commandNavigationItem
+                text="Apache"
+                shortDesc="Apache's website"
+                destination="http://www.apache.org/"/>
+            </tr:navigationPane>
+          </tr:panelGroupLayout>
+          <jsp:directive.include file="editor.jspf"/>
+
+          <tr:panelGroupLayout layout="vertical">
+            <tr:outputFormatted
+              value="&lt;b>commandNavigationItem's inside of a navigationPane with hint=&quot;bar&quot;&lt;/b>"/>
+            <tr:navigationPane hint="bar" id="barExample">
+              <tr:commandNavigationItem text="Component Guide" action="guide"
+                shortDesc="Return to the component guide"/>
+              <tr:commandNavigationItem text="Selected Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                partialSubmit="true"
+                selected="true"/>
+              <tr:commandNavigationItem text="Icon Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                icon="/components/images/file.gif"
+                accessKey="B"
+                partialSubmit="true"/>
+              <tr:commandNavigationItem text="Disabled Item"
+                disabled="true"
+                action="guide"
+                destination="http://www.apache.org/"/>
+              <tr:commandNavigationItem text="Apache"
+                destination="http://www.apache.org/"/>
+            </tr:navigationPane>
+          </tr:panelGroupLayout>
+
+          <tr:panelGroupLayout layout="vertical">
+            <tr:outputFormatted
+              value="&lt;b>commandNavigationItem's inside of a navigationPane with hint=&quot;list&quot;&lt;/b>"/>
+            <tr:navigationPane hint="list" id="listExample">
+              <tr:commandNavigationItem text="Component Guide" action="guide"
+                shortDesc="Return to the component guide"/>
+              <tr:commandNavigationItem text="Selected Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                partialSubmit="true"
+                selected="true"/>
+              <tr:commandNavigationItem text="Icon Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                icon="/components/images/file.gif"
+                accessKey="C"
+                partialSubmit="true"/>
+              <tr:commandNavigationItem text="Disabled Item"
+                disabled="true"
+                action="guide"
+                destination="http://www.apache.org/"/>
+              <tr:commandNavigationItem text="Apache"
+                destination="http://www.apache.org/"/>
+            </tr:navigationPane>
+          </tr:panelGroupLayout>
+
+          <tr:panelGroupLayout layout="vertical">
+            <tr:outputFormatted
+              value="&lt;b>commandNavigationItem's inside of a navigationPane with hint=&quot;buttons&quot;&lt;/b>"/>
+            <tr:navigationPane hint="buttons" id="buttonsExample">
+              <tr:commandNavigationItem text="Component Guide" action="guide"
+                shortDesc="Return to the component guide"/>
+              <tr:commandNavigationItem text="Selected Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                partialSubmit="true"
+                selected="true"/>
+              <tr:commandNavigationItem text="Icon Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                icon="/components/images/file.gif"
+                accessKey="D"
+                partialSubmit="true"/>
+              <tr:commandNavigationItem text="Disabled Item"
+                disabled="true"
+                action="guide"
+                destination="http://www.apache.org/"/>
+              <tr:commandNavigationItem text="Apache"
+                destination="http://www.apache.org/"/>
+            </tr:navigationPane>
+          </tr:panelGroupLayout>
+
+          <tr:panelGroupLayout layout="vertical">
+            <tr:outputFormatted
+              value="&lt;b>commandNavigationItem's inside of a navigationPane with hint=&quot;choice&quot;&lt;/b>"/>
+            <tr:navigationPane hint="choice" shortDesc="Switch application"
+              id="choiceExample">
+              <tr:commandNavigationItem text="Component Guide" action="guide"
+                shortDesc="Return to the component guide"/>
+              <tr:commandNavigationItem text="Selected Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                partialSubmit="true"
+                selected="true"/>
+              <tr:commandNavigationItem text="Icon Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                icon="/components/images/file.gif"
+                accessKey="E"
+                partialSubmit="true"/>
+              <tr:commandNavigationItem text="Disabled Item"
+                disabled="true"
+                action="guide"
+                destination="http://www.apache.org/"/>
+              <tr:commandNavigationItem text="Apache"
+                destination="http://www.apache.org/"/>
+            </tr:navigationPane>
+          </tr:panelGroupLayout>
+
+          <tr:panelGroupLayout layout="vertical">
+            <tr:outputFormatted
+              value="&lt;b>commandNavigationItem's inside of a breadCrumbs&lt;/b>"/>
+            <tr:breadCrumbs id="pathExample">
+              <tr:commandNavigationItem text="Component Guide"
+                action="guide"
+                shortDesc="Return to the component guide"
+                accessKey="F"/>
+              <tr:commandNavigationItem text="Selected Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                partialSubmit="true"
+                selected="true"/>
+              <tr:commandNavigationItem text="Icon Item"
+                actionListener="#{demoCommandNavigationItem.navigationItemAction}"
+                icon="/components/images/file.gif"
+                partialSubmit="true"/>
+              <tr:commandNavigationItem text="Disabled Item"
+                disabled="true"
+                action="guide"
+                destination="http://www.apache.org/"/>
+              <tr:commandNavigationItem text="Apache"
+                destination="http://www.apache.org/"/>
+            </tr:breadCrumbs>
+          </tr:panelGroupLayout>
+
+        </tr:panelGroupLayout>
+      </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>



Mime
View raw message