incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r428248 [12/13] - in /incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp: ./ components/ components/html/ components/regions/ convertValidate/ demos/ demos/changeDemos/ demos/tableDemos/ email/ performance/ surveydemo/
Date Thu, 03 Aug 2006 05:49:00 GMT
Modified: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/messages.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/messages.jspx?rev=428248&r1=428247&r2=428248&view=diff
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/messages.jspx (original)
+++ incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/messages.jspx Wed Aug  2 22:48:53 2006
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
 <!--
   Copyright 2006 The Apache Software Foundation.
 
@@ -14,144 +14,144 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
-          xmlns:f="http://java.sun.com/jsf/core"
-          xmlns:tr="http://myfaces.apache.org/trinidad" >
-  <jsp:directive.page contentType="text/html;charset=utf-8"/>
-  <!-- 
-  Load a resource bundle localized for the Locale of the current view, 
-  and expose it (as a Map) in the request attributes of the current request. 
-  Please note that we are not localizing every string in this demo. We want
-  to show you an example of how to do this, but also make the demo an
-  example that is easy to follow.
-  -->  
-  <f:loadBundle var="nls"
-                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
-  
-  <f:view>
-    <tr:document title="Message List">
-       <tr:form>
-       
-        <tr:panelPage>
-          <tr:messages/>
-          
-          <f:facet name="branding">
-            <tr:panelGroupLayout layout="vertical">
-              <tr:panelGroupLayout>
-                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
-                <tr:image source="/email/images/pbs.gif"/>
-              </tr:panelGroupLayout>
-              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
-                                 styleUsage="inContextBranding"/>
-            </tr:panelGroupLayout>
-          </f:facet>
-          
-          <f:facet name="navigationGlobal">
-              <tr:menuButtons>
-                <tr:commandNavigationItem text="Return to Index"
-                    immediate="true"
-                    action="home"/>
-                <tr:commandNavigationItem text="Logout" 
-                                  action="#{email.logout}"/>
-                <tr:commandNavigationItem text="Preferences"
-                                  action="preferences"/>
-                <tr:commandNavigationItem text="Help"
-                                  action="action.none"/>
-              </tr:menuButtons>
-            </f:facet>
-            
-            <f:facet name="infoUser">
-              <tr:outputFormatted value="Logged in as #{email.username}"
-                                  styleUsage="pageStamp"/>
-            </f:facet>
-             <f:facet name="navigation3">
-                <tr:tree var="currentFolder" value="#{email.folderModel}">
-                  <f:facet name="nodeStamp">
-                    <tr:commandLink 
-                           disabled="#{!currentFolder.holdsMessages}"
-                           action="#{currentFolder.viewMessages}">
-                      <tr:outputText value="#{currentFolder.name}"/>
-                      <tr:outputText
-                         rendered="#{currentFolder.unreadMessageCount &gt; 0}"
-                         value=" (#{currentFolder.unreadMessageCount})"/>
-                    </tr:commandLink>
-                  </f:facet>
-                </tr:tree>
-            </f:facet>
-           <tr:panelHeader text="View Messages for Folder #{email.currentFolder.name}">
-            <tr:table rows="#{email.preferences.rowsShown}"
-                      var="currentMessage"
-                      value="#{email.currentFolder.messageListModel}"
-                      binding="#{messagesBacking.messagesTable}"
-                      first="#{email.currentFolder.startIndex}"
-                      rangeChangeListener="#{messagesBacking.saveFirst}"
-                      width="85%"
-                      summary="Messages table"
-                      emptyText="No messages."
-                      rowSelection="multiple"
-                      rowBandingInterval = "1">
-              <f:facet name="footer">
-                <tr:commandButton text="Delete"
-                        actionListener="#{messagesBacking.performDelete}"/>
-              </f:facet>
-              <tr:column  noWrap="true">
-                <f:facet name="header">
-                  <tr:outputText value="Subject"/>
-                </f:facet>
-                <tr:panelGroupLayout>
-                  <tr:image rendered="#{currentMessage.deleted}"
-                                  source="/email/images/deleted.gif"/>
-                  <tr:commandLink action="showMessage">
-                    <tr:outputText
-                       styleClass="#{currentMessage.read ? null : 'AFDataText'}"
-                       truncateAt="25" value="#{currentMessage.subject}"
-                       shortDesc="#{currentMessage.subject}"/>
-                    <tr:setActionListener from="#{currentMessage}"
-                                          to="#{pageFlowScope.message}"/>
-                  </tr:commandLink>
-                </tr:panelGroupLayout>
-              </tr:column>
-              <tr:column rendered="#{email.preferences.displaySenderColumn}">
-                <f:facet name="header">
-                  <tr:outputText value="Sender"/>
-                </f:facet>
-                <tr:outputText value="#{currentMessage.sender}">
-                  <f:converter converterId="org.apache.myfaces.trinidaddemo.email.EmailDisplay"/>
-                </tr:outputText>
-              </tr:column>
-              <tr:column noWrap="true"
-                         rendered="#{email.preferences.displayDateColumn}">
-                <f:facet name="header">
-                  <tr:outputText value="Sent"/>
-                </f:facet>
-                <tr:outputText value="#{currentMessage.sentDate}">
-                  <f:converter converterId="org.apache.myfaces.trinidaddemo.email.RelativeDate"/>
-                </tr:outputText>
-              </tr:column>
-              <tr:column rendered="#{email.preferences.displaySizeColumn}">
-                <f:facet name="header">
-                  <tr:outputText value="Size"/>
-                </f:facet>
-                <tr:outputText value="#{currentMessage.size} kB"/>
-              </tr:column>
-            </tr:table>
-           </tr:panelHeader>
-          <tr:panelButtonBar>
-            <tr:commandButton text="First"
-                              disabled="#{!messagesBacking.firstEnabled}"
-                              action="#{messagesBacking.first}"/>
-            <tr:commandButton text="Last"
-                              disabled="#{!messagesBacking.lastEnabled}"
-                              action="#{messagesBacking.last}"/>
-            <tr:commandButton text="New Message" action="newMessage"/>
-            <tr:commandButton text="Refresh"
-                              action="#{messagesBacking.refresh}"/>
-            <tr:commandButton text="Compact"
-                              action="#{messagesBacking.compact}"/>
-          </tr:panelButtonBar>
-        </tr:panelPage>
-    
-       </tr:form>
-    </tr:document>
-  </f:view>
-</jsp:root>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <!-- 
+  Load a resource bundle localized for the Locale of the current view, 
+  and expose it (as a Map) in the request attributes of the current request. 
+  Please note that we are not localizing every string in this demo. We want
+  to show you an example of how to do this, but also make the demo an
+  example that is easy to follow.
+  -->  
+  <f:loadBundle var="nls"
+                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
+  
+  <f:view>
+    <tr:document title="Message List">
+       <tr:form>
+       
+        <tr:panelPage>
+          <tr:messages/>
+          
+          <f:facet name="branding">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelGroupLayout>
+                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
+                <tr:image source="/email/images/pbs.gif"/>
+              </tr:panelGroupLayout>
+              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
+                                 styleUsage="inContextBranding"/>
+            </tr:panelGroupLayout>
+          </f:facet>
+          
+          <f:facet name="navigationGlobal">
+              <tr:menuButtons>
+                <tr:commandNavigationItem text="Return to Index"
+                    immediate="true"
+                    action="home"/>
+                <tr:commandNavigationItem text="Logout" 
+                                  action="#{email.logout}"/>
+                <tr:commandNavigationItem text="Preferences"
+                                  action="preferences"/>
+                <tr:commandNavigationItem text="Help"
+                                  action="action.none"/>
+              </tr:menuButtons>
+            </f:facet>
+            
+            <f:facet name="infoUser">
+              <tr:outputFormatted value="Logged in as #{email.username}"
+                                  styleUsage="pageStamp"/>
+            </f:facet>
+             <f:facet name="navigation3">
+                <tr:tree var="currentFolder" value="#{email.folderModel}">
+                  <f:facet name="nodeStamp">
+                    <tr:commandLink 
+                           disabled="#{!currentFolder.holdsMessages}"
+                           action="#{currentFolder.viewMessages}">
+                      <tr:outputText value="#{currentFolder.name}"/>
+                      <tr:outputText
+                         rendered="#{currentFolder.unreadMessageCount &gt; 0}"
+                         value=" (#{currentFolder.unreadMessageCount})"/>
+                    </tr:commandLink>
+                  </f:facet>
+                </tr:tree>
+            </f:facet>
+           <tr:panelHeader text="View Messages for Folder #{email.currentFolder.name}">
+            <tr:table rows="#{email.preferences.rowsShown}"
+                      var="currentMessage"
+                      value="#{email.currentFolder.messageListModel}"
+                      binding="#{messagesBacking.messagesTable}"
+                      first="#{email.currentFolder.startIndex}"
+                      rangeChangeListener="#{messagesBacking.saveFirst}"
+                      width="85%"
+                      summary="Messages table"
+                      emptyText="No messages."
+                      rowSelection="multiple"
+                      rowBandingInterval = "1">
+              <f:facet name="footer">
+                <tr:commandButton text="Delete"
+                        actionListener="#{messagesBacking.performDelete}"/>
+              </f:facet>
+              <tr:column  noWrap="true">
+                <f:facet name="header">
+                  <tr:outputText value="Subject"/>
+                </f:facet>
+                <tr:panelGroupLayout>
+                  <tr:image rendered="#{currentMessage.deleted}"
+                                  source="/email/images/deleted.gif"/>
+                  <tr:commandLink action="showMessage">
+                    <tr:outputText
+                       styleClass="#{currentMessage.read ? null : 'AFDataText'}"
+                       truncateAt="25" value="#{currentMessage.subject}"
+                       shortDesc="#{currentMessage.subject}"/>
+                    <tr:setActionListener from="#{currentMessage}"
+                                          to="#{pageFlowScope.message}"/>
+                  </tr:commandLink>
+                </tr:panelGroupLayout>
+              </tr:column>
+              <tr:column rendered="#{email.preferences.displaySenderColumn}">
+                <f:facet name="header">
+                  <tr:outputText value="Sender"/>
+                </f:facet>
+                <tr:outputText value="#{currentMessage.sender}">
+                  <f:converter converterId="org.apache.myfaces.trinidaddemo.email.EmailDisplay"/>
+                </tr:outputText>
+              </tr:column>
+              <tr:column noWrap="true"
+                         rendered="#{email.preferences.displayDateColumn}">
+                <f:facet name="header">
+                  <tr:outputText value="Sent"/>
+                </f:facet>
+                <tr:outputText value="#{currentMessage.sentDate}">
+                  <f:converter converterId="org.apache.myfaces.trinidaddemo.email.RelativeDate"/>
+                </tr:outputText>
+              </tr:column>
+              <tr:column rendered="#{email.preferences.displaySizeColumn}">
+                <f:facet name="header">
+                  <tr:outputText value="Size"/>
+                </f:facet>
+                <tr:outputText value="#{currentMessage.size} kB"/>
+              </tr:column>
+            </tr:table>
+           </tr:panelHeader>
+          <tr:panelButtonBar>
+            <tr:commandButton text="First"
+                              disabled="#{!messagesBacking.firstEnabled}"
+                              action="#{messagesBacking.first}"/>
+            <tr:commandButton text="Last"
+                              disabled="#{!messagesBacking.lastEnabled}"
+                              action="#{messagesBacking.last}"/>
+            <tr:commandButton text="New Message" action="newMessage"/>
+            <tr:commandButton text="Refresh"
+                              action="#{messagesBacking.refresh}"/>
+            <tr:commandButton text="Compact"
+                              action="#{messagesBacking.compact}"/>
+          </tr:panelButtonBar>
+        </tr:panelPage>
+    
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Propchange: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/messages.jspx
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/newMessage.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/newMessage.jspx?rev=428248&r1=428247&r2=428248&view=diff
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/newMessage.jspx (original)
+++ incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/newMessage.jspx Wed Aug  2 22:48:53 2006
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
 <!--
   Copyright 2006 The Apache Software Foundation.
 
@@ -14,99 +14,99 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
-          xmlns:f="http://java.sun.com/jsf/core"
-          xmlns:tr="http://myfaces.apache.org/trinidad" >
-  <jsp:directive.page contentType="text/html;charset=utf-8"/>
-  <!-- 
-  Load a resource bundle localized for the Locale of the current view, 
-  and expose it (as a Map) in the request attributes of the current request. 
-  Please note that we are not localizing every string in this demo. We want
-  to show you an example of how to do this, but also make the demo an
-  example that is easy to follow.
-  -->  
-  <f:loadBundle var="nls"
-                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
-  
-  <f:view>
-    <tr:document title="New Message">
-       <tr:form usesUpload="true">
-        <tr:panelPage>
-          <tr:messages/>
-
-          <f:facet name="infoStatus">
-            <tr:legend name="required" />
-          </f:facet>
-          
-          <f:facet name="branding">
-            <tr:panelGroupLayout layout="vertical">
-              <tr:panelGroupLayout>
-                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
-                <tr:image source="/email/images/pbs.gif"/>
-              </tr:panelGroupLayout>
-              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
-                                 styleUsage="inContextBranding"/>
-            </tr:panelGroupLayout>
-          </f:facet>
-          
-          <f:facet name="navigationGlobal">
-              <tr:menuButtons>
-                <tr:commandNavigationItem text="Return to Index"
-                    immediate="true"
-                    action="home"/>
-                <tr:commandNavigationItem text="Logout" 
-                                  action="#{email.logout}"/>
-                <tr:commandNavigationItem text="Preferences"
-                                  action="preferences"/>
-                <tr:commandNavigationItem text="Help"
-                                  action="action.none"/>
-              </tr:menuButtons>
-            </f:facet>
-            
-            <f:facet name="infoUser">
-              <tr:outputFormatted value="Logged in as #{email.username}"
-                             styleUsage="pageStamp"/>
-            </f:facet>
-
-         <tr:panelHeader text="New Message">
-          <tr:panelFormLayout inlineStyle="width: 100%" labelWidth="15%" fieldWidth="85%">
-            <tr:inputText label="Subject:" 
-                          required="true"
-                          value="#{newMessageBacking.subject}"/>
-            <tr:inputText label="To:" 
-                          required="true"
-                          value="#{newMessageBacking.to}"
-                          validator="#{newMessageBacking.validateEmailList}"/>
-            <tr:inputText label="Cc:" 
-                          value="#{newMessageBacking.cc}"
-                          validator="#{newMessageBacking.validateEmailList}"/>
-            <tr:inputFile label="Attachment:"
-                          value="#{newMessageBacking.attachment1}"/>
-            <tr:inputFile label="Attachment:"
-                          value="#{newMessageBacking.attachment2}"/>
-            <tr:inputFile label="Attachment:"
-                          value="#{newMessageBacking.attachment3}"/>
-            <tr:inputText label="Content:" columns="80" rows="20" wrap="soft"
-                          value="#{newMessageBacking.content}"/>
-          </tr:panelFormLayout>
-         </tr:panelHeader>
-          <!--
-          <f:facet name="infoReturn">
-            <tr:commandLink text="Return to #{email.currentFolder.name}"
-                            action="messages" immediate="true"/>
-          </f:facet>
-          -->
-          <tr:panelButtonBar>
-            <tr:commandButton textAndAccessKey="&amp;Send Message"
-                              action="#{newMessageBacking.send}"/>
-            <tr:commandButton textAndAccessKey="Save as &amp;Draft"
-                              action="#{newMessageBacking.saveAsDraft}"/>
-            <tr:commandButton textAndAccessKey="Cance&amp;l" immediate="true"
-                              action="cancel"/>                                
-          </tr:panelButtonBar>
-        </tr:panelPage>
-    
-       </tr:form>
-    </tr:document>
-  </f:view>
-</jsp:root>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <!-- 
+  Load a resource bundle localized for the Locale of the current view, 
+  and expose it (as a Map) in the request attributes of the current request. 
+  Please note that we are not localizing every string in this demo. We want
+  to show you an example of how to do this, but also make the demo an
+  example that is easy to follow.
+  -->  
+  <f:loadBundle var="nls"
+                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
+  
+  <f:view>
+    <tr:document title="New Message">
+       <tr:form usesUpload="true">
+        <tr:panelPage>
+          <tr:messages/>
+
+          <f:facet name="infoStatus">
+            <tr:legend name="required" />
+          </f:facet>
+          
+          <f:facet name="branding">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelGroupLayout>
+                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
+                <tr:image source="/email/images/pbs.gif"/>
+              </tr:panelGroupLayout>
+              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
+                                 styleUsage="inContextBranding"/>
+            </tr:panelGroupLayout>
+          </f:facet>
+          
+          <f:facet name="navigationGlobal">
+              <tr:menuButtons>
+                <tr:commandNavigationItem text="Return to Index"
+                    immediate="true"
+                    action="home"/>
+                <tr:commandNavigationItem text="Logout" 
+                                  action="#{email.logout}"/>
+                <tr:commandNavigationItem text="Preferences"
+                                  action="preferences"/>
+                <tr:commandNavigationItem text="Help"
+                                  action="action.none"/>
+              </tr:menuButtons>
+            </f:facet>
+            
+            <f:facet name="infoUser">
+              <tr:outputFormatted value="Logged in as #{email.username}"
+                             styleUsage="pageStamp"/>
+            </f:facet>
+
+         <tr:panelHeader text="New Message">
+          <tr:panelFormLayout inlineStyle="width: 100%" labelWidth="15%" fieldWidth="85%">
+            <tr:inputText label="Subject:" 
+                          required="true"
+                          value="#{newMessageBacking.subject}"/>
+            <tr:inputText label="To:" 
+                          required="true"
+                          value="#{newMessageBacking.to}"
+                          validator="#{newMessageBacking.validateEmailList}"/>
+            <tr:inputText label="Cc:" 
+                          value="#{newMessageBacking.cc}"
+                          validator="#{newMessageBacking.validateEmailList}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{newMessageBacking.attachment1}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{newMessageBacking.attachment2}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{newMessageBacking.attachment3}"/>
+            <tr:inputText label="Content:" columns="80" rows="20" wrap="soft"
+                          value="#{newMessageBacking.content}"/>
+          </tr:panelFormLayout>
+         </tr:panelHeader>
+          <!--
+          <f:facet name="infoReturn">
+            <tr:commandLink text="Return to #{email.currentFolder.name}"
+                            action="messages" immediate="true"/>
+          </f:facet>
+          -->
+          <tr:panelButtonBar>
+            <tr:commandButton textAndAccessKey="&amp;Send Message"
+                              action="#{newMessageBacking.send}"/>
+            <tr:commandButton textAndAccessKey="Save as &amp;Draft"
+                              action="#{newMessageBacking.saveAsDraft}"/>
+            <tr:commandButton textAndAccessKey="Cance&amp;l" immediate="true"
+                              action="cancel"/>                                
+          </tr:panelButtonBar>
+        </tr:panelPage>
+    
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Propchange: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/newMessage.jspx
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/preferences.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/preferences.jspx?rev=428248&r1=428247&r2=428248&view=diff
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/preferences.jspx (original)
+++ incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/preferences.jspx Wed Aug  2 22:48:53 2006
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
 <!--
   Copyright 2006 The Apache Software Foundation.
 
@@ -14,95 +14,95 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
-          xmlns:f="http://java.sun.com/jsf/core"
-          xmlns:tr="http://myfaces.apache.org/trinidad" >
-  <jsp:directive.page contentType="text/html;charset=utf-8"/>
-  <!-- 
-  Load a resource bundle localized for the Locale of the current view, 
-  and expose it (as a Map) in the request attributes of the current request. 
-  Please note that we are not localizing every string in this demo. We want
-  to show you an example of how to do this, but also make the demo an
-  example that is easy to follow.
-  -->  
-  <f:loadBundle var="nls"
-                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
-  
-  <f:view>
-    <tr:document title="Preferences">
-       <tr:form>
-       
-        <tr:panelPage>
-          <tr:messages/>
-
-          <f:facet name="branding">
-            <tr:panelGroupLayout layout="vertical">
-              <tr:panelGroupLayout>
-                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
-                <tr:image source="/email/images/pbs.gif"/>
-              </tr:panelGroupLayout>
-              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
-                                 styleUsage="inContextBranding"/>
-            </tr:panelGroupLayout>
-          </f:facet>
-          
-          <f:facet name="navigationGlobal">
-              <tr:menuButtons>
-                <tr:commandNavigationItem text="Return to Index"
-                    immediate="true"
-                    action="home"/>
-                <tr:commandNavigationItem text="Logout" 
-                                  action="#{email.logout}"/>
-                <tr:commandNavigationItem text="Preferences"
-                                  action="preferences" selected="true"/>
-                <tr:commandNavigationItem text="Help"
-                                  action="action.none"/>
-              </tr:menuButtons>
-            </f:facet>
-            
-            <f:facet name="infoUser">
-              <tr:outputFormatted value="Logged in as #{email.username}"
-                             styleUsage="pageStamp"/>
-            </f:facet>
-    
-        <tr:panelHeader text="Update Preferences">
-          <tr:panelFormLayout> 
-            <tr:selectOneChoice label="Skin-family:"
-                              value="#{email.preferences.skinFamily}">
-              <f:selectItems value="#{email.preferences.skinFamilyItems}"/>
-            </tr:selectOneChoice>
-            <tr:selectOneChoice label="Accessibility features:"
-                              value="#{email.preferences.accessibilityMode}">
-              <f:selectItems value="#{email.preferences.accessibilityModeItems}"/>
-            </tr:selectOneChoice>
-            <tr:inputText label="Messages per screen:"
-                          value="#{email.preferences.rowsShown}">
-              <f:facet name="help">
-                <tr:outputText value="Enter a value between 5 and 100."/>
-              </f:facet>
-              <f:validateLongRange minimum="5" maximum="100"/>
-            </tr:inputText>
-            <tr:panelLabelAndMessage label="Columns:">
-              <tr:panelGroupLayout layout="vertical">
-                <tr:selectBooleanCheckbox text="Sender"
-                     value="#{email.preferences.displaySenderColumn}"/>
-                <tr:selectBooleanCheckbox text="Date"
-                     value="#{email.preferences.displayDateColumn}"/>
-                <tr:selectBooleanCheckbox text="Size"
-                     value="#{email.preferences.displaySizeColumn}"/>
-              </tr:panelGroupLayout>
-            </tr:panelLabelAndMessage>
-          </tr:panelFormLayout>
-         </tr:panelHeader>
-          <tr:panelButtonBar>  
-            <tr:commandButton textAndAccessKey="&amp;Save"
-                              action="success"/>   
-            <tr:commandButton textAndAccessKey="Cance&amp;l"
-                              action="success" immediate="true"/>                                  
-          </tr:panelButtonBar>
-        </tr:panelPage>
-    
-       </tr:form>
-    </tr:document>
-  </f:view>
-</jsp:root>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <!-- 
+  Load a resource bundle localized for the Locale of the current view, 
+  and expose it (as a Map) in the request attributes of the current request. 
+  Please note that we are not localizing every string in this demo. We want
+  to show you an example of how to do this, but also make the demo an
+  example that is easy to follow.
+  -->  
+  <f:loadBundle var="nls"
+                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
+  
+  <f:view>
+    <tr:document title="Preferences">
+       <tr:form>
+       
+        <tr:panelPage>
+          <tr:messages/>
+
+          <f:facet name="branding">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelGroupLayout>
+                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
+                <tr:image source="/email/images/pbs.gif"/>
+              </tr:panelGroupLayout>
+              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
+                                 styleUsage="inContextBranding"/>
+            </tr:panelGroupLayout>
+          </f:facet>
+          
+          <f:facet name="navigationGlobal">
+              <tr:menuButtons>
+                <tr:commandNavigationItem text="Return to Index"
+                    immediate="true"
+                    action="home"/>
+                <tr:commandNavigationItem text="Logout" 
+                                  action="#{email.logout}"/>
+                <tr:commandNavigationItem text="Preferences"
+                                  action="preferences" selected="true"/>
+                <tr:commandNavigationItem text="Help"
+                                  action="action.none"/>
+              </tr:menuButtons>
+            </f:facet>
+            
+            <f:facet name="infoUser">
+              <tr:outputFormatted value="Logged in as #{email.username}"
+                             styleUsage="pageStamp"/>
+            </f:facet>
+    
+        <tr:panelHeader text="Update Preferences">
+          <tr:panelFormLayout> 
+            <tr:selectOneChoice label="Skin-family:"
+                              value="#{email.preferences.skinFamily}">
+              <f:selectItems value="#{email.preferences.skinFamilyItems}"/>
+            </tr:selectOneChoice>
+            <tr:selectOneChoice label="Accessibility features:"
+                              value="#{email.preferences.accessibilityMode}">
+              <f:selectItems value="#{email.preferences.accessibilityModeItems}"/>
+            </tr:selectOneChoice>
+            <tr:inputText label="Messages per screen:"
+                          value="#{email.preferences.rowsShown}">
+              <f:facet name="help">
+                <tr:outputText value="Enter a value between 5 and 100."/>
+              </f:facet>
+              <f:validateLongRange minimum="5" maximum="100"/>
+            </tr:inputText>
+            <tr:panelLabelAndMessage label="Columns:">
+              <tr:panelGroupLayout layout="vertical">
+                <tr:selectBooleanCheckbox text="Sender"
+                     value="#{email.preferences.displaySenderColumn}"/>
+                <tr:selectBooleanCheckbox text="Date"
+                     value="#{email.preferences.displayDateColumn}"/>
+                <tr:selectBooleanCheckbox text="Size"
+                     value="#{email.preferences.displaySizeColumn}"/>
+              </tr:panelGroupLayout>
+            </tr:panelLabelAndMessage>
+          </tr:panelFormLayout>
+         </tr:panelHeader>
+          <tr:panelButtonBar>  
+            <tr:commandButton textAndAccessKey="&amp;Save"
+                              action="success"/>   
+            <tr:commandButton textAndAccessKey="Cance&amp;l"
+                              action="success" immediate="true"/>                                  
+          </tr:panelButtonBar>
+        </tr:panelPage>
+    
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Propchange: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/preferences.jspx
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/replyToMessage.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/replyToMessage.jspx?rev=428248&r1=428247&r2=428248&view=diff
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/replyToMessage.jspx (original)
+++ incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/replyToMessage.jspx Wed Aug  2 22:48:53 2006
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
 <!--
   Copyright 2006 The Apache Software Foundation.
 
@@ -14,99 +14,99 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
-          xmlns:f="http://java.sun.com/jsf/core"
-          xmlns:tr="http://myfaces.apache.org/trinidad" >
-  <jsp:directive.page contentType="text/html;charset=utf-8"/>
-  <!-- 
-  Load a resource bundle localized for the Locale of the current view, 
-  and expose it (as a Map) in the request attributes of the current request. 
-  Please note that we are not localizing every string in this demo. We want
-  to show you an example of how to do this, but also make the demo an
-  example that is easy to follow.
-  -->  
-  <f:loadBundle var="nls"
-                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
-  
-  <f:view>
-    <tr:document title="New Message">
-       <tr:form usesUpload="true">
-        <tr:panelPage>
-          <tr:messages/>
-
-          <f:facet name="infoStatus">
-            <tr:legend name="required" />
-          </f:facet>
-          
-          <f:facet name="branding">
-            <tr:panelGroupLayout layout="vertical">
-              <tr:panelGroupLayout>
-                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
-                <tr:image source="/email/images/pbs.gif"/>
-              </tr:panelGroupLayout>
-              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
-                                 styleUsage="inContextBranding"/>
-            </tr:panelGroupLayout>
-          </f:facet>
-          
-          <f:facet name="navigationGlobal">
-              <tr:menuButtons>
-                <tr:commandNavigationItem text="Return to Index"
-                    immediate="true"
-                    action="home"/>
-                <tr:commandNavigationItem text="Logout" 
-                                  action="#{email.logout}"/>
-                <tr:commandNavigationItem text="Preferences"
-                                  action="preferences"/>
-                <tr:commandNavigationItem text="Help"
-                                  action="action.none"/>
-              </tr:menuButtons>
-            </f:facet>
-            
-            <f:facet name="infoUser">
-              <tr:outputFormatted value="Logged in as #{email.username}"
-                             styleUsage="pageStamp"/>
-            </f:facet>
-
-        <tr:panelHeader text="New Message">
-          <tr:panelFormLayout inlineStyle="width: 100%" labelWidth="15%" fieldWidth="85%">
-            <tr:inputText label="Subject:" 
-                          required="true"
-                          value="#{replyToMessageBacking.subject}"/>
-            <tr:inputText label="To:" 
-                          required="true"
-                          value="#{replyToMessageBacking.to}"
-                          validator="#{replyToMessageBacking.validateEmailList}"/>
-            <tr:inputText label="Cc:" 
-                          value="#{replyToMessageBacking.cc}"
-                          validator="#{replyToMessageBacking.validateEmailList}"/>
-            <tr:inputFile label="Attachment:"
-                          value="#{replyToMessageBacking.attachment1}"/>
-            <tr:inputFile label="Attachment:"
-                          value="#{replyToMessageBacking.attachment2}"/>
-            <tr:inputFile label="Attachment:"
-                          value="#{replyToMessageBacking.attachment3}"/>
-            <tr:inputText label="Content:" columns="80" rows="20" wrap="soft"
-                          value="#{replyToMessageBacking.content}"/>
-          </tr:panelFormLayout>
-        </tr:panelHeader>
-          <!--
-          <f:facet name="infoReturn">
-            <tr:commandLink text="Return to #{email.currentFolder.name}"
-                            action="messages" immediate="true"/>
-          </f:facet>
-          -->
-          <tr:panelButtonBar>
-            <tr:commandButton textAndAccessKey="&amp;Send Message"
-                              action="#{replyToMessageBacking.send}"/>
-            <tr:commandButton textAndAccessKey="Save as &amp;Draft"
-                              action="#{replyToMessageBacking.saveAsDraft}"/>
-            <tr:commandButton textAndAccessKey="Cance&amp;l" immediate="true"
-                              action="cancel"/>                                
-          </tr:panelButtonBar>
-        </tr:panelPage>
-    
-       </tr:form>
-    </tr:document>
-  </f:view>
-</jsp:root>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <!-- 
+  Load a resource bundle localized for the Locale of the current view, 
+  and expose it (as a Map) in the request attributes of the current request. 
+  Please note that we are not localizing every string in this demo. We want
+  to show you an example of how to do this, but also make the demo an
+  example that is easy to follow.
+  -->  
+  <f:loadBundle var="nls"
+                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
+  
+  <f:view>
+    <tr:document title="New Message">
+       <tr:form usesUpload="true">
+        <tr:panelPage>
+          <tr:messages/>
+
+          <f:facet name="infoStatus">
+            <tr:legend name="required" />
+          </f:facet>
+          
+          <f:facet name="branding">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelGroupLayout>
+                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
+                <tr:image source="/email/images/pbs.gif"/>
+              </tr:panelGroupLayout>
+              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
+                                 styleUsage="inContextBranding"/>
+            </tr:panelGroupLayout>
+          </f:facet>
+          
+          <f:facet name="navigationGlobal">
+              <tr:menuButtons>
+                <tr:commandNavigationItem text="Return to Index"
+                    immediate="true"
+                    action="home"/>
+                <tr:commandNavigationItem text="Logout" 
+                                  action="#{email.logout}"/>
+                <tr:commandNavigationItem text="Preferences"
+                                  action="preferences"/>
+                <tr:commandNavigationItem text="Help"
+                                  action="action.none"/>
+              </tr:menuButtons>
+            </f:facet>
+            
+            <f:facet name="infoUser">
+              <tr:outputFormatted value="Logged in as #{email.username}"
+                             styleUsage="pageStamp"/>
+            </f:facet>
+
+        <tr:panelHeader text="New Message">
+          <tr:panelFormLayout inlineStyle="width: 100%" labelWidth="15%" fieldWidth="85%">
+            <tr:inputText label="Subject:" 
+                          required="true"
+                          value="#{replyToMessageBacking.subject}"/>
+            <tr:inputText label="To:" 
+                          required="true"
+                          value="#{replyToMessageBacking.to}"
+                          validator="#{replyToMessageBacking.validateEmailList}"/>
+            <tr:inputText label="Cc:" 
+                          value="#{replyToMessageBacking.cc}"
+                          validator="#{replyToMessageBacking.validateEmailList}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{replyToMessageBacking.attachment1}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{replyToMessageBacking.attachment2}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{replyToMessageBacking.attachment3}"/>
+            <tr:inputText label="Content:" columns="80" rows="20" wrap="soft"
+                          value="#{replyToMessageBacking.content}"/>
+          </tr:panelFormLayout>
+        </tr:panelHeader>
+          <!--
+          <f:facet name="infoReturn">
+            <tr:commandLink text="Return to #{email.currentFolder.name}"
+                            action="messages" immediate="true"/>
+          </f:facet>
+          -->
+          <tr:panelButtonBar>
+            <tr:commandButton textAndAccessKey="&amp;Send Message"
+                              action="#{replyToMessageBacking.send}"/>
+            <tr:commandButton textAndAccessKey="Save as &amp;Draft"
+                              action="#{replyToMessageBacking.saveAsDraft}"/>
+            <tr:commandButton textAndAccessKey="Cance&amp;l" immediate="true"
+                              action="cancel"/>                                
+          </tr:panelButtonBar>
+        </tr:panelPage>
+    
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Propchange: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/replyToMessage.jspx
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/showMessage.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/showMessage.jspx?rev=428248&r1=428247&r2=428248&view=diff
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/showMessage.jspx (original)
+++ incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/showMessage.jspx Wed Aug  2 22:48:53 2006
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
 <!--
   Copyright 2006 The Apache Software Foundation.
 
@@ -14,150 +14,150 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
-          xmlns:f="http://java.sun.com/jsf/core"
-          xmlns:trh="http://myfaces.apache.org/trinidad/html" 
-          xmlns:tr="http://myfaces.apache.org/trinidad" >
-  <jsp:directive.page contentType="text/html;charset=utf-8"/>
-  <!-- 
-  Load a resource bundle localized for the Locale of the current view, 
-  and expose it (as a Map) in the request attributes of the current request. 
-  Please note that we are not localizing every string in this demo. We want
-  to show you an example of how to do this, but also make the demo an
-  example that is easy to follow.
-  -->
-  <f:loadBundle var="nls"
-                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>  
-  <f:view>
-    <tr:document title="Message">
-       <tr:form>
-        <tr:panelPage>
-          <tr:messages/>
-          
-          <f:facet name="branding">
-            <tr:panelGroupLayout layout="vertical">
-              <tr:panelGroupLayout>
-                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
-                <tr:image source="/email/images/pbs.gif"/>
-              </tr:panelGroupLayout>
-              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
-                                 styleUsage="inContextBranding"/>
-            </tr:panelGroupLayout>
-          </f:facet>
-          
-          <f:facet name="navigationGlobal">
-            <tr:menuButtons>
-              <tr:commandNavigationItem text="Return to Index"
-                  immediate="true"
-                  action="home"/>
-              <tr:commandNavigationItem text="Logout" 
-                                action="#{email.logout}"/>
-              <tr:commandNavigationItem text="Preferences"
-                                action="preferences"/>
-              <tr:commandNavigationItem text="Help"
-                                action="action.none"/>
-            </tr:menuButtons>
-           </f:facet>
-              
-          <f:facet name="infoUser">
-            <tr:outputFormatted value="Logged in as #{email.username}"
-                           styleUsage="pageStamp"/>
-          </f:facet>
-          
-        <tr:panelHeader text="Message">
-          <tr:panelBorderLayout>
-            <!-- Top section: include the headers -->
-            <f:facet name="innerTop">
-              <tr:panelFormLayout inlineStyle="width: 100%" labelWidth="15%" fieldWidth="85%">
-                <tr:panelLabelAndMessage label="From:">
-                  <tr:outputText value="#{showMessageBacking.message.sender}"/>
-                </tr:panelLabelAndMessage>
-                <tr:panelLabelAndMessage label="To:">
-                  <tr:panelGroupLayout layout="vertical">
-                    <tr:forEach items="#{showMessageBacking.message.tos}"
-                                var="address">  
-                      <tr:outputText value="#{address}"/>
-                    </tr:forEach>
-                 </tr:panelGroupLayout>
-                </tr:panelLabelAndMessage>
-                <tr:panelLabelAndMessage label="Cc:"
-                  labelStyle="vertical-align: top;">
-                  <tr:panelGroupLayout layout="vertical">
-                    <tr:forEach items="#{showMessageBacking.message.ccs}"
-                                var="address">
-                      <tr:outputText value="#{address}"/>
-                    </tr:forEach>
-                  </tr:panelGroupLayout>
-                </tr:panelLabelAndMessage>
-                <tr:inputText label="Subject:" readOnly="true"
-                              value="#{showMessageBacking.message.subject}"/>
-                <tr:inputText label="Sent:" readOnly="true"
-                              value="#{showMessageBacking.message.sentDate}"/>
-                <!-- Commented out: content type
-                <tr:inputText label="Content type:" readOnly="true"
-                              value="#{showMessageBacking.message.contentType}"/>
-                -->
-              </tr:panelFormLayout>
-
-            </f:facet>
-
-            <!-- Main content -->
-            <tr:panelHeader text="Content:">
-              <!-- For plain text, show in a readOnly inputText -->
-              <tr:inputText rendered="#{showMessageBacking.message.contentType == 'TEXT/PLAIN'}"
-                            readOnly="true" columns="80"
-                            rows="#{showMessageBacking.message.lineCount &gt; 30
-                                ? 30 : showMessageBacking.message.lineCount}"
-                            value="#{showMessageBacking.message.content}"/>
-              <!-- HTML content: run through our "outputFormatted" filter -->
-              <trh:rowLayout rendered="#{showMessageBacking.message.contentType != 'TEXT/PLAIN'}"
-                          width="75%">
-                <tr:outputFormatted
-                          value="#{showMessageBacking.message.content}"/>
-              </trh:rowLayout>
-            </tr:panelHeader>
-  
-            <!-- Side content for the secondary layer: show attachments -->
-            <f:facet name="auxiliary2">
-              <tr:panelBox text="Attachments"
-                    rendered="#{showMessageBacking.message.attachmentPresent}">
-                <tr:panelGroupLayout layout="vertical">
-                  <tr:forEach items="#{showMessageBacking.message.attachments}"
-                              var="attachment">
-                    <tr:commandLink text="#{attachment.fileName}"
-                        action="#{showMessageBacking.downloadAttachment}">
-                      <tr:setActionListener from="#{attachment}"
-                         to="#{showMessageBacking.attachmentToDownload}"/>
-                    </tr:commandLink>
-                  </tr:forEach>
-                </tr:panelGroupLayout>
-              </tr:panelBox>
-            </f:facet>
-          </tr:panelBorderLayout>
-        </tr:panelHeader>
-          <!--
-          <f:facet name="infoReturn">
-            <tr:commandLink text="Return to #{email.currentFolder.name}"
-                            action="messages"/>
-          </f:facet>
-          -->
-          <tr:panelButtonBar>
-            <tr:commandButton textAndAccessKey="&amp;Reply" 
-                              action="reply">
-              <tr:setActionListener from="#{'false'}"
-                                    to="#{pageFlowScope.replyToAll}"/>
-            </tr:commandButton>  
-            <tr:commandButton textAndAccessKey="&amp;Reply to &amp;All" 
-                              action="reply">
-              <tr:setActionListener from="#{'true'}"
-                                    to="#{pageFlowScope.replyToAll}"/>
-            </tr:commandButton>                   
-            <tr:commandButton textAndAccessKey="Cance&amp;l" immediate="true"
-                              action="messages"/>                                
-          </tr:panelButtonBar>
-        </tr:panelPage>
-    
-       </tr:form>
-    </tr:document>
-  </f:view>
-</jsp:root>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html" 
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <!-- 
+  Load a resource bundle localized for the Locale of the current view, 
+  and expose it (as a Map) in the request attributes of the current request. 
+  Please note that we are not localizing every string in this demo. We want
+  to show you an example of how to do this, but also make the demo an
+  example that is easy to follow.
+  -->
+  <f:loadBundle var="nls"
+                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>  
+  <f:view>
+    <tr:document title="Message">
+       <tr:form>
+        <tr:panelPage>
+          <tr:messages/>
+          
+          <f:facet name="branding">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelGroupLayout>
+                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
+                <tr:image source="/email/images/pbs.gif"/>
+              </tr:panelGroupLayout>
+              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
+                                 styleUsage="inContextBranding"/>
+            </tr:panelGroupLayout>
+          </f:facet>
+          
+          <f:facet name="navigationGlobal">
+            <tr:menuButtons>
+              <tr:commandNavigationItem text="Return to Index"
+                  immediate="true"
+                  action="home"/>
+              <tr:commandNavigationItem text="Logout" 
+                                action="#{email.logout}"/>
+              <tr:commandNavigationItem text="Preferences"
+                                action="preferences"/>
+              <tr:commandNavigationItem text="Help"
+                                action="action.none"/>
+            </tr:menuButtons>
+           </f:facet>
+              
+          <f:facet name="infoUser">
+            <tr:outputFormatted value="Logged in as #{email.username}"
+                           styleUsage="pageStamp"/>
+          </f:facet>
+          
+        <tr:panelHeader text="Message">
+          <tr:panelBorderLayout>
+            <!-- Top section: include the headers -->
+            <f:facet name="innerTop">
+              <tr:panelFormLayout inlineStyle="width: 100%" labelWidth="15%" fieldWidth="85%">
+                <tr:panelLabelAndMessage label="From:">
+                  <tr:outputText value="#{showMessageBacking.message.sender}"/>
+                </tr:panelLabelAndMessage>
+                <tr:panelLabelAndMessage label="To:">
+                  <tr:panelGroupLayout layout="vertical">
+                    <tr:forEach items="#{showMessageBacking.message.tos}"
+                                var="address">  
+                      <tr:outputText value="#{address}"/>
+                    </tr:forEach>
+                 </tr:panelGroupLayout>
+                </tr:panelLabelAndMessage>
+                <tr:panelLabelAndMessage label="Cc:"
+                  labelStyle="vertical-align: top;">
+                  <tr:panelGroupLayout layout="vertical">
+                    <tr:forEach items="#{showMessageBacking.message.ccs}"
+                                var="address">
+                      <tr:outputText value="#{address}"/>
+                    </tr:forEach>
+                  </tr:panelGroupLayout>
+                </tr:panelLabelAndMessage>
+                <tr:inputText label="Subject:" readOnly="true"
+                              value="#{showMessageBacking.message.subject}"/>
+                <tr:inputText label="Sent:" readOnly="true"
+                              value="#{showMessageBacking.message.sentDate}"/>
+                <!-- Commented out: content type
+                <tr:inputText label="Content type:" readOnly="true"
+                              value="#{showMessageBacking.message.contentType}"/>
+                -->
+              </tr:panelFormLayout>
+
+            </f:facet>
+
+            <!-- Main content -->
+            <tr:panelHeader text="Content:">
+              <!-- For plain text, show in a readOnly inputText -->
+              <tr:inputText rendered="#{showMessageBacking.message.contentType == 'TEXT/PLAIN'}"
+                            readOnly="true" columns="80"
+                            rows="#{showMessageBacking.message.lineCount &gt; 30
+                                ? 30 : showMessageBacking.message.lineCount}"
+                            value="#{showMessageBacking.message.content}"/>
+              <!-- HTML content: run through our "outputFormatted" filter -->
+              <trh:rowLayout rendered="#{showMessageBacking.message.contentType != 'TEXT/PLAIN'}"
+                          width="75%">
+                <tr:outputFormatted
+                          value="#{showMessageBacking.message.content}"/>
+              </trh:rowLayout>
+            </tr:panelHeader>
+  
+            <!-- Side content for the secondary layer: show attachments -->
+            <f:facet name="auxiliary2">
+              <tr:panelBox text="Attachments"
+                    rendered="#{showMessageBacking.message.attachmentPresent}">
+                <tr:panelGroupLayout layout="vertical">
+                  <tr:forEach items="#{showMessageBacking.message.attachments}"
+                              var="attachment">
+                    <tr:commandLink text="#{attachment.fileName}"
+                        action="#{showMessageBacking.downloadAttachment}">
+                      <tr:setActionListener from="#{attachment}"
+                         to="#{showMessageBacking.attachmentToDownload}"/>
+                    </tr:commandLink>
+                  </tr:forEach>
+                </tr:panelGroupLayout>
+              </tr:panelBox>
+            </f:facet>
+          </tr:panelBorderLayout>
+        </tr:panelHeader>
+          <!--
+          <f:facet name="infoReturn">
+            <tr:commandLink text="Return to #{email.currentFolder.name}"
+                            action="messages"/>
+          </f:facet>
+          -->
+          <tr:panelButtonBar>
+            <tr:commandButton textAndAccessKey="&amp;Reply" 
+                              action="reply">
+              <tr:setActionListener from="#{'false'}"
+                                    to="#{pageFlowScope.replyToAll}"/>
+            </tr:commandButton>  
+            <tr:commandButton textAndAccessKey="&amp;Reply to &amp;All" 
+                              action="reply">
+              <tr:setActionListener from="#{'true'}"
+                                    to="#{pageFlowScope.replyToAll}"/>
+            </tr:commandButton>                   
+            <tr:commandButton textAndAccessKey="Cance&amp;l" immediate="true"
+                              action="messages"/>                                
+          </tr:panelButtonBar>
+        </tr:panelPage>
+    
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Propchange: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/email/showMessage.jspx
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/performance/editForm_adf.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/performance/editForm_adf.jspx?rev=428248&r1=428247&r2=428248&view=diff
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/performance/editForm_adf.jspx (original)
+++ incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/performance/editForm_adf.jspx Wed Aug  2 22:48:53 2006
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml version="1.0" encoding="iso-8859-1"?>
 <!--
   Copyright 2006 The Apache Software Foundation.
 
@@ -14,44 +14,44 @@
   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>
-   <html>
-    <head>
-     <title>Editable form ADF</title>
-     <trh:styleSheet/>
-    </head>
-    <body>
-      <tr:form >
-        <tr:messages/>
-        <tr:panelFormLayout>
-          <tr:inputText label="First:" value="1"/>
-          <tr:inputText label="Second:" value="2"/>
-          <tr:inputText label="Third:" value="3"/>
-          <tr:inputText label="Fourth:" value="4"/>
-          <tr:inputText label="Fifth:" value="5"/>
-          <tr:selectOneRadio label="Radio:" value="3">
-            <f:selectItem itemValue="1" itemLabel="1"/>
-            <f:selectItem itemValue="2" itemLabel="2"/>
-            <f:selectItem itemValue="3" itemLabel="3"/>
-          </tr:selectOneRadio>
-          <tr:selectOneListbox label="List:" value="2">
-            <f:selectItem itemValue="1" itemLabel="1"/>
-            <f:selectItem itemValue="2" itemLabel="2"/>
-            <f:selectItem itemValue="3" itemLabel="3"/>
-          </tr:selectOneListbox>
-          <tr:inputText label="Textarea:" value="Long text" rows="5" />
-          <tr:selectBooleanCheckbox label="Checked:" selected="true"
-               text="True or false"/>
-        </tr:panelFormLayout>
-        <tr:commandButton text="Submit"/>
-      </tr:form>
-     </body>
-    </html>
-  </f:view>
-</jsp:root>
+<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>
+   <html>
+    <head>
+     <title>Editable form ADF</title>
+     <trh:styleSheet/>
+    </head>
+    <body>
+      <tr:form >
+        <tr:messages/>
+        <tr:panelFormLayout>
+          <tr:inputText label="First:" value="1"/>
+          <tr:inputText label="Second:" value="2"/>
+          <tr:inputText label="Third:" value="3"/>
+          <tr:inputText label="Fourth:" value="4"/>
+          <tr:inputText label="Fifth:" value="5"/>
+          <tr:selectOneRadio label="Radio:" value="3">
+            <f:selectItem itemValue="1" itemLabel="1"/>
+            <f:selectItem itemValue="2" itemLabel="2"/>
+            <f:selectItem itemValue="3" itemLabel="3"/>
+          </tr:selectOneRadio>
+          <tr:selectOneListbox label="List:" value="2">
+            <f:selectItem itemValue="1" itemLabel="1"/>
+            <f:selectItem itemValue="2" itemLabel="2"/>
+            <f:selectItem itemValue="3" itemLabel="3"/>
+          </tr:selectOneListbox>
+          <tr:inputText label="Textarea:" value="Long text" rows="5" />
+          <tr:selectBooleanCheckbox label="Checked:" selected="true"
+               text="True or false"/>
+        </tr:panelFormLayout>
+        <tr:commandButton text="Submit"/>
+      </tr:form>
+     </body>
+    </html>
+  </f:view>
+</jsp:root>

Propchange: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/performance/editForm_adf.jspx
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/performance/editForm_jsf.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/performance/editForm_jsf.jspx?rev=428248&r1=428247&r2=428248&view=diff
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/performance/editForm_jsf.jspx (original)
+++ incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/performance/editForm_jsf.jspx Wed Aug  2 22:48:53 2006
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml version="1.0" encoding="iso-8859-1"?>
 <!--
   Copyright 2006 The Apache Software Foundation.
 
@@ -14,101 +14,101 @@
   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>
-   <html>
-    <head>
-     <title>Editable form JSF</title>
-     <style>
-.PlainText { font-family:Arial,Helvetica,Geneva,sans-serif;font-size:10pt;font-weight:normal;color:#000000}
-.LabelClass {width:37%; text-align:right; padding-right: 6px}
-.FieldClass {width:63%; text-align:left; padding-left: 6px}
-.Prompt { font-family:Arial,Helvetica,Geneva,sans-serif;font-size:10pt;font-weight:normal;text-align:right;color:#000000}
-     </style>
-    </head>
-    <body>
-      <h:form >
-        <h:messages/>
-        <h:panelGrid width="100%" columns="2"
-             border="0" cellpadding="0" cellspacing="0"
-             summary=""
-             columnClasses="LabelClass,FieldClass">
-
-          <h:outputLabel styleClass="Prompt" value="First:" for="inputField"/>
-          <h:panelGroup>
-            <h:inputText id="inputField" value="1"/>
-            <h:message for="inputField"/>
-          </h:panelGroup>
-
-          <h:outputLabel styleClass="Prompt" value="Second:" for="inputField2"/>
-          <h:panelGroup>
-            <h:inputText id="inputField2" value="2"/>
-            <h:message for="inputField2"/>
-          </h:panelGroup>
-
-          <h:outputLabel styleClass="Prompt" value="Third:" for="inputField3"/>
-          <h:panelGroup>
-            <h:inputText id="inputField3" value="3"/>
-            <h:message for="inputField3"/>
-          </h:panelGroup>
-
-          <h:outputLabel styleClass="Prompt" value="Fourth:" for="inputField4"/>
-          <h:panelGroup>
-            <h:inputText id="inputField4" value="4"/>
-            <h:message for="inputField4"/>
-          </h:panelGroup>
-
-          <h:outputLabel styleClass="Prompt" value="Fifth:" for="inputField5"/>
-          <h:panelGroup>
-            <h:inputText id="inputField5" value="5"/>
-            <h:message for="inputField5"/>
-          </h:panelGroup>
-
-          <!-- Use outputText, not label:  radios have an implicit label -->
-          <h:outputText styleClass="Prompt" value="Radio:"/>
-          <h:panelGroup>
-            <h:selectOneRadio id="radioButtons" styleClass="PlainText" value="3" layout="pageDirection">
-              <f:selectItem itemValue="1" itemLabel="1"/>
-              <f:selectItem itemValue="2" itemLabel="2"/>
-              <f:selectItem itemValue="3" itemLabel="3"/>
-            </h:selectOneRadio>
-            <h:message for="radioButtons"/>
-          </h:panelGroup>
-
-          <h:outputLabel styleClass="Prompt" value="List:" for="listbox"/>
-          <h:panelGroup>
-            <h:selectOneListbox value="2" id="listbox">
-              <f:selectItem itemValue="1" itemLabel="1"/>
-              <f:selectItem itemValue="2" itemLabel="2"/>
-              <f:selectItem itemValue="3" itemLabel="3"/>
-            </h:selectOneListbox>
-            <h:message for="listbox"/>
-          </h:panelGroup>
-
-          <h:outputLabel styleClass="Prompt" value="Textarea:" for="textarea"/>
-          <h:panelGroup>
-            <h:inputTextarea id="textarea" value="Long text" rows="5"/>
-            <h:message for="textarea"/>
-          </h:panelGroup>
-
-          <!-- Use outputText, not label:  the text after the check is -->
-          <!-- the label -->
-          <h:outputText styleClass="Prompt" value="Checked:"/>
-          <h:panelGroup>
-            <h:selectBooleanCheckbox value="true" id="checkbox"/>
-            <h:outputLabel styleClass="PlainText"
-                  for="checkbox" value="True or false"/>
-            <h:message for="checkbox"/>
-          </h:panelGroup>
-        </h:panelGrid>
-        <h:commandButton value="Submit"/>
-      </h:form>
-     </body>
-    </html>
-  </f:view>
-</jsp:root>
+<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>
+   <html>
+    <head>
+     <title>Editable form JSF</title>
+     <style>
+.PlainText { font-family:Arial,Helvetica,Geneva,sans-serif;font-size:10pt;font-weight:normal;color:#000000}
+.LabelClass {width:37%; text-align:right; padding-right: 6px}
+.FieldClass {width:63%; text-align:left; padding-left: 6px}
+.Prompt { font-family:Arial,Helvetica,Geneva,sans-serif;font-size:10pt;font-weight:normal;text-align:right;color:#000000}
+     </style>
+    </head>
+    <body>
+      <h:form >
+        <h:messages/>
+        <h:panelGrid width="100%" columns="2"
+             border="0" cellpadding="0" cellspacing="0"
+             summary=""
+             columnClasses="LabelClass,FieldClass">
+
+          <h:outputLabel styleClass="Prompt" value="First:" for="inputField"/>
+          <h:panelGroup>
+            <h:inputText id="inputField" value="1"/>
+            <h:message for="inputField"/>
+          </h:panelGroup>
+
+          <h:outputLabel styleClass="Prompt" value="Second:" for="inputField2"/>
+          <h:panelGroup>
+            <h:inputText id="inputField2" value="2"/>
+            <h:message for="inputField2"/>
+          </h:panelGroup>
+
+          <h:outputLabel styleClass="Prompt" value="Third:" for="inputField3"/>
+          <h:panelGroup>
+            <h:inputText id="inputField3" value="3"/>
+            <h:message for="inputField3"/>
+          </h:panelGroup>
+
+          <h:outputLabel styleClass="Prompt" value="Fourth:" for="inputField4"/>
+          <h:panelGroup>
+            <h:inputText id="inputField4" value="4"/>
+            <h:message for="inputField4"/>
+          </h:panelGroup>
+
+          <h:outputLabel styleClass="Prompt" value="Fifth:" for="inputField5"/>
+          <h:panelGroup>
+            <h:inputText id="inputField5" value="5"/>
+            <h:message for="inputField5"/>
+          </h:panelGroup>
+
+          <!-- Use outputText, not label:  radios have an implicit label -->
+          <h:outputText styleClass="Prompt" value="Radio:"/>
+          <h:panelGroup>
+            <h:selectOneRadio id="radioButtons" styleClass="PlainText" value="3" layout="pageDirection">
+              <f:selectItem itemValue="1" itemLabel="1"/>
+              <f:selectItem itemValue="2" itemLabel="2"/>
+              <f:selectItem itemValue="3" itemLabel="3"/>
+            </h:selectOneRadio>
+            <h:message for="radioButtons"/>
+          </h:panelGroup>
+
+          <h:outputLabel styleClass="Prompt" value="List:" for="listbox"/>
+          <h:panelGroup>
+            <h:selectOneListbox value="2" id="listbox">
+              <f:selectItem itemValue="1" itemLabel="1"/>
+              <f:selectItem itemValue="2" itemLabel="2"/>
+              <f:selectItem itemValue="3" itemLabel="3"/>
+            </h:selectOneListbox>
+            <h:message for="listbox"/>
+          </h:panelGroup>
+
+          <h:outputLabel styleClass="Prompt" value="Textarea:" for="textarea"/>
+          <h:panelGroup>
+            <h:inputTextarea id="textarea" value="Long text" rows="5"/>
+            <h:message for="textarea"/>
+          </h:panelGroup>
+
+          <!-- Use outputText, not label:  the text after the check is -->
+          <!-- the label -->
+          <h:outputText styleClass="Prompt" value="Checked:"/>
+          <h:panelGroup>
+            <h:selectBooleanCheckbox value="true" id="checkbox"/>
+            <h:outputLabel styleClass="PlainText"
+                  for="checkbox" value="True or false"/>
+            <h:message for="checkbox"/>
+          </h:panelGroup>
+        </h:panelGrid>
+        <h:commandButton value="Submit"/>
+      </h:form>
+     </body>
+    </html>
+  </f:view>
+</jsp:root>

Propchange: incubator/adffaces/trunk/trinidad/trinidad-demo/src/main/webapp/performance/editForm_jsf.jspx
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message