You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by aw...@apache.org on 2007/07/31 00:40:03 UTC

svn commit: r561168 - in /myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp: WEB-INF/faces-config.xml WEB-INF/web.xml components/statusIndicator.jspx demos/pprDemos.jspx

Author: awiner
Date: Mon Jul 30 15:40:03 2007
New Revision: 561168

URL: http://svn.apache.org/viewvc?view=rev&rev=561168
Log:
Add missing demo of statusIndicator component, and add config so extension element testing is enabled

Added:
    myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/statusIndicator.jspx
Modified:
    myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml
    myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml
    myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx

Modified: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml?view=diff&rev=561168&r1=561167&r2=561168
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml Mon Jul 30 15:40:03 2007
@@ -868,6 +868,7 @@
         <value>panelRadio.jspx</value>
         <value>panelTabbed.jspx</value>
         <value>singleStepButtonBar.jspx</value>
+        <value>statusIndicator.jspx</value>
         <value>styleSheet.jspx</value>
         <value>table.jspx</value>
         <value>table_selection.jspx</value>
@@ -2431,6 +2432,12 @@
     <navigation-case>
       <from-outcome>guide.singleStepButtonBar</from-outcome>
       <to-view-id>/components/singleStepButtonBar.jspx</to-view-id>
+      <redirect/>
+    </navigation-case>
+
+    <navigation-case>
+      <from-outcome>guide.statusIndicator</from-outcome>
+      <to-view-id>/components/statusIndicator.jspx</to-view-id>
       <redirect/>
     </navigation-case>
 

Modified: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml?view=diff&rev=561168&r1=561167&r2=561168
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml Mon Jul 30 15:40:03 2007
@@ -31,6 +31,11 @@
     <!--param-value>server</param-value-->
   </context-param>
 
+  <context-param>
+    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+    <param-value>.jspx</param-value>
+  </context-param>
+
   <!-- Parameter to set the maximum number of client view state tokens.
        Uncomment this to test low-token-count scenarios.
   <context-param>
@@ -152,7 +157,12 @@
     <servlet-name>faces</servlet-name>
     <url-pattern>/faces/*</url-pattern>
   </servlet-mapping>
-  
+
+  <servlet-mapping>
+    <servlet-name>faces</servlet-name>
+    <url-pattern>*.faces</url-pattern>
+  </servlet-mapping>
+    
   <servlet-mapping>
     <servlet-name>resources</servlet-name>
     <url-pattern>/adf/*</url-pattern>

Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/statusIndicator.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/statusIndicator.jspx?view=auto&rev=561168
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/statusIndicator.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/components/statusIndicator.jspx Mon Jul 30 15:40:03 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>
+<tr:document title="StatusIndicator Component">
+        <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>
+            <tr:outputFormatted styleUsage="instruction"
+                               value="&lt;b>A basic statusIndicator&lt;/b>"/> 
+            <tr:statusIndicator binding="#{editor.component}"/>
+
+            <tr:showDetail>
+              <h:outputText value="Content of the showDetail"/>
+            </tr:showDetail>
+
+            <jsp:directive.include file="editor.jspf" />
+
+            <tr:outputFormatted styleUsage="instruction"
+                               value="&lt;b>A second statusIndicator&lt;/b>"/>
+            <tr:statusIndicator/>
+          </tr:panelGroupLayout>
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Modified: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx?view=diff&rev=561168&r1=561167&r2=561168
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx Mon Jul 30 15:40:03 2007
@@ -41,21 +41,13 @@
       <tr:outputFormatted styleUsage="instruction"
                           value="These demos illustrate Partial Page Refresh capabilities using the autoSubmit attribute of various input components."/>
       <tr:panelGroupLayout layout="vertical">
-       <!--tr:panelHeader text="Globally updated">
-        <tr:outputFormatted styleUsage="instruction"
-                            value="This text gets updated on ANY partial update of the page."/>
-        <tr:panelGroupLayout>
-         <tr:panelLabelAndMessage label="last PPR update: ">
-          <tr:outputFormatted id="globalUpdate"
-                              partialTriggers="*"
-                              styleUsage="instruction"
-                              binding="#{partialDemoUtil.globalUpdate}"
-                              value="never">
-           <f:convertDateTime pattern="HH:mm:ss"/>
-          </tr:outputFormatted>
-         </tr:panelLabelAndMessage>
-        </tr:panelGroupLayout>
-       </tr:panelHeader-->
+
+       <tr:panelHeader text="Status Indicator">
+       <tr:outputFormatted styleUsage="instruction"
+                           value="This demo contains a statusIndicator component.  It will spin while a PPR request fires, and can be placed anywhere on a page (or in multiple places if needed).  The image can be replaced with skinning."/>
+       <tr:statusIndicator/>
+       </tr:panelHeader>
+
        <tr:panelHeader text="Radio Buttons">
        <tr:outputFormatted styleUsage="instruction"
                            value="This demo shows a two sets of radio buttons which use autoSubmit. There is also an output component which is listening on updates to the radio buttons and displaying status text accordingly."/>