Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/resources/org/apache/shale/examples/mailreaderjpa/Bundle.properties
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/resources/org/apache/shale/examples/mailreaderjpa/Bundle.properties?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/resources/org/apache/shale/examples/mailreaderjpa/Bundle.properties
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/resources/org/apache/shale/examples/mailreaderjpa/Bundle.properties
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,101 @@
+# Localized messages for this application
+
+button.add=Add New
+button.back=Back
+button.cancel=Cancel
+button.confirm=Confirm
+button.create=Create
+button.delete=Delete
+button.display=Display
+button.edit=Edit
+button.logon=Log On
+button.reset=Reset
+button.save=Save
+button.update=Update
+change.message=Your password has expired. Please ask the system administrator
to change it.
+change.try=Try Again
+change.title=Password Has Expired
+database.load=Cannot load database from {0}
+error.database.missing=<li>User database is missing, cannot validate logon
credentials</li>
+error.fromAddress.format=<li>Invalid format for From Address</li>
+error.fromAddress.required=<li>From Address is required</li>
+error.fullName.required=<li>Full Name is required</li>
+error.host.required=<li>Mail Server is required</li>
+error.noSubscription=<li>No Subscription bean in user session</li>
+error.password.expired=Your password has expired for username {0}
+error.password.required=<li>Password is required</li>
+error.password2.required=<li>Confirmation password is required</li>
+error.password.match=<li>Password and confirmation password must match</li>
+error.password.mismatch=<li>Invalid username and/or password, please try
again</li>
+error.replyToAddress.format=<li>Invalid format for Reply To Address</li>
+error.transaction.token=<li>Cannot submit this form out of order</li>
+error.type.invalid=<li>Server Type must be 'imap' or 'pop3'</li>
+error.type.required=<li>Server Type is required</li>
+error.username.required=<li>Username is required</li>
+error.username.unique=<li>That username is already in use - please select
another</li>
+errors.footer=</ul><hr>
+errors.header=<h3><font color="red">Validation Error</font></h3>You must
correct the following error(s) before proceeding:<ul>
+errors.ioException=I/O exception rendering error messages: {0}
+expired.password=User Password has expired for {0}
+heading.autoConnect=Auto
+heading.subscriptions=Current Subscriptions
+heading.host=Host Name
+heading.user=User Name
+heading.type=Server Type
+heading.action=Action
+welcome.heading=MailReader Demonstration Application Options
+welcome.logon=Log on to the MailReader Demonstration Application
+welcome.registration=Register with the MailReader Demonstration Application
+welcome.title=MailReader Demonstration Application
+index.tour=A Walking Tour of the Example Application
+linkSubscription.io=I/O Error: {0}
+linkSubscription.noSubscription=No subscription under attribute {0}
+linkUser.io=I/O Error: {0}
+linkUser.noUser=No user under attribute {0}
+logon.footer=Enter your username and password, and press the Log On button
+logon.header=Logon Form
+logon.title=MailReader Demonstration Application - Logon
+mainMenu.heading=Main Menu Options for
+mainMenu.logoff=Log off MailReader Demonstration Application
+mainMenu.registration=Edit your user registration profile
+mainMenu.title=MailReader Demonstration Application - Main Menu
+option.imap=IMAP Protocol
+option.pop3=POP3 Protocol
+prompt.autoConnect=Auto Connect:
+prompt.fromAddress=From Address:
+prompt.fullName=Full Name:
+prompt.mailHostname=Mail Server:
+prompt.mailPassword=Mail Password:
+prompt.mailServerType=Server Type:
+prompt.mailUsername=Mail Username:
+prompt.password=Password:
+prompt.password2=(Repeat) Password:
+prompt.replyToAddress=Reply To Address:
+prompt.username=Username:
+registration.addSubscription=Add
+registration.deleteSubscription=Delete
+registration.editSubscription=Edit
+registration.header.create=Enter Registration Information
+registration.header.edit=Edit Your Registration Information
+registration.title.create=Register for the MailReader Demonstration Application
+registration.title.edit=Edit Registration for the MailReader Demonstration
Application
+subscription.title.create=Create New Mail Subscription
+subscription.title.delete=Delete Existing Mail Subscription
+subscription.title.display=Display Existing Mail Subscription
+subscription.title.edit=Edit Existing Mail Subscription
+
+# Standard error messages for validator framework checks
+errors.required={0} is required.
+errors.minlength={0} cannot be less than {1} characters.
+errors.maxlength={0} cannot be greater than {1} characters.
+errors.invalid={0} is invalid.
+errors.byte={0} must be an byte.
+errors.short={0} must be an short.
+errors.integer={0} must be an integer.
+errors.long={0} must be an long.
+errors.float={0} must be an float.
+errors.double={0} must be an double.
+errors.date={0} is not a date.
+errors.range={0} is not in the range {1} through {2}.
+errors.creditcard={0} is not a valid credit card number.
+errors.email={0} is an invalid e-mail address.
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/resources/org/apache/shale/examples/mailreaderjpa/Bundle.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/resources/org/apache/shale/examples/mailreaderjpa/Bundle.properties
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/META-INF/context.xml
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/META-INF/context.xml?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/META-INF/context.xml
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/META-INF/context.xml
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Context path=""/>
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/META-INF/context.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/META-INF/context.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/faces-config.xml
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/faces-config.xml?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/faces-config.xml
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/faces-config.xml
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,179 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * 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.
+ *
+ * $Id$
+ */
+-->
+<faces-config version="1.2"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
+
+ <!-- ========== /welcome.jsp ========== -->
+
+ <!-- No managed bean declaration because no backing bean is required -->
+
+ <!-- No navigation rules because navigation is done with links -->
+
+ <!-- ========== /logon.jsp ========== -->
+
+ <managed-bean>
+ <managed-bean-name>logon</managed-bean-name>
+
<managed-bean-class>org.apache.shale.examples.mailreaderjpa.Logon</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>logic</property-name>
+ <value>#{logic}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>state</property-name>
+ <value>#{state}</value>
+ </managed-property>
+ </managed-bean>
+
+ <navigation-rule>
+ <from-view-id>/logon.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>success</from-outcome>
+ <to-view-id>/mainMenu.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <!-- ========== /mainMenu.jsp ========== -->
+
+ <managed-bean>
+ <managed-bean-name>mainMenu</managed-bean-name>
+
<managed-bean-class>org.apache.shale.examples.mailreaderjpa.MainMenu</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <navigation-rule>
+ <from-view-id>/mainMenu.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>registration</from-outcome>
+ <to-view-id>/master.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>welcome</from-outcome>
+ <to-view-id>/welcome.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <!-- ========== /master.jsp ========== -->
+
+ <managed-bean>
+ <managed-bean-name>master</managed-bean-name>
+
<managed-bean-class>org.apache.shale.examples.mailreaderjpa.Master</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>logic</property-name>
+ <value>#{logic}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>state</property-name>
+ <value>#{state}</value>
+ </managed-property>
+ </managed-bean>
+
+ <navigation-rule>
+ <from-view-id>/master.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>menu</from-outcome>
+ <to-view-id>/mainMenu.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>welcome</from-outcome>
+ <to-view-id>/welcome.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <!-- ========== /detail.jsp ========== -->
+
+ <managed-bean>
+ <managed-bean-name>detail</managed-bean-name>
+
<managed-bean-class>org.apache.shale.examples.mailreaderjpa.Detail</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>domains</property-name>
+ <value>#{domains}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>logic</property-name>
+ <value>#{logic}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>state</property-name>
+ <value>#{state}</value>
+ </managed-property>
+ </managed-bean>
+
+ <navigation-rule>
+ <from-view-id>/detail.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>registration</from-outcome>
+ <to-view-id>/master.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+ <!-- ========== Other Managed Beans ========== -->
+
+ <managed-bean>
+ <description>
+ Application scope bean containing static domains that are global
+ to all users of the application.
+ </description>
+ <managed-bean-name>domains</managed-bean-name>
+
<managed-bean-class>org.apache.shale.examples.mailreaderjpa.Domains</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ <managed-property>
+ <property-name>logic</property-name>
+ <value>#{logic}</value>
+ </managed-property>
+ </managed-bean>
+
+ <managed-bean>
+ <description>
+ Application scoped bean containing non-visual business logic
methods
+ pertaining to all users of the application.
+ </description>
+ <managed-bean-name>logic</managed-bean-name>
+
<managed-bean-class>org.apache.shale.examples.mailreaderjpa.Logic</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <description>
+ Session scope bean containing state information for the currently
+ logged in user.
+ </description>
+ <managed-bean-name>state</managed-bean-name>
+
<managed-bean-class>org.apache.shale.examples.mailreaderjpa.State</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <!-- ========== Other JSF Artifacts ========== -->
+
+ <converter>
+ <description>
+ Convert between a Protocol instance and the corresponding
+ string representation.
+ </description>
+
<converter-for-class>org.apache.mailreaderjpa.Protocol</converter-for-class>
+
<converter-class>org.apache.shale.examples.mailreaderjpa.ProtocolConverter</converter-class>
+ </converter>
+
+</faces-config>
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/sun-web.xml
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/sun-web.xml?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/sun-web.xml
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/sun-web.xml
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application
Server 9.0 Servlet 2.5//EN"
"http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
+
+<!--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * 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.
+ *
+ * $Id$
+ */
+-->
+
+<sun-web-app error-url="">
+ <context-root>/shale-mailreader-jpa</context-root>
+ <class-loader delegate="true"/>
+ <jsp-config>
+ <property name="classdebuginfo" value="true">
+ <description>Enable debug info compilation in the generated servlet
class</description>
+ </property>
+ <property name="mappedfile" value="true">
+ <description>Maintain a one-to-one correspondence between static content
and the generated servlet class' java code</description>
+ </property>
+ </jsp-config>
+</sun-web-app>
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/sun-web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/sun-web.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/web.xml
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/web.xml?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/web.xml
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/web.xml
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * 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.
+ *
+ * $Id$
+ */
+-->
+
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <context-param>
+ <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.faces</url-pattern>
+ </servlet-mapping>
+ <session-config><session-timeout>
+ 30
+ </session-timeout></session-config>
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/detail.jsp
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/detail.jsp?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/detail.jsp
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/detail.jsp
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,185 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+
+<%--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * 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.
+ */
+--%>
+
+<f:view>
+<f:loadBundle var="messages"
basename="org.apache.shale.examples.mailreaderjpa.Bundle"/>
+<html>
+<head>
+ <title>
+ <h:outputText value="#{messages['subscription.title.create']}"
+ rendered="#{detail.mode == 'CREATE'}"/>
+ <h:outputText value="#{messages['subscription.title.delete']}"
+ rendered="#{detail.mode == 'DELETE'}"/>
+ <h:outputText value="#{messages['subscription.title.display']}"
+ rendered="#{detail.mode == 'DISPLAY'}"/>
+ <h:outputText value="#{messages['subscription.title.edit']}"
+ rendered="#{detail.mode == 'EDIT'}"/>
+ </title>
+</head>
+<body>
+
+<h:messages globalOnly="true"/>
+
+<h:form id="subscription">
+
+ <h:panelGrid columns="3">
+
+ <%-- Grid header element --%>
+
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText
+ value="#{messages['subscription.title.create']}"
+ rendered="#{detail.mode == 'CREATE'}"/>
+ <h:outputText
+ value="#{messages['subscription.title.delete']}"
+ rendered="#{detail.mode == 'DELETE'}"/>
+ <h:outputText
+ value="#{messages['subscription.title.display']}"
+ rendered="#{detail.mode == 'DISPLAY'}"/>
+ <h:outputText
+ value="#{messages['subscription.title.edit']}"
+ rendered="#{detail.mode == 'EDIT'}"/>
+ </h:panelGroup>
+ </f:facet>
+
+ <%-- First row --%>
+
+ <h:outputLabel for="host">
+ <h:outputText value="#{messages['prompt.mailHostname']}"/>
+ </h:outputLabel>
+
+ <h:inputText id="host"
+ size="50"
+ readonly="#{detail.readOnly}"
+ required="true"
+ value="#{detail.subscription.host}"/>
+
+ <h:message for="host"/>
+
+ <%-- Second row --%>
+
+ <h:outputLabel for="username">
+ <h:outputText value="#{messages['prompt.mailUsername']}"/>
+ </h:outputLabel>
+
+ <h:inputText id="username"
+ readonly="#{detail.readOnly}"
+ required="true"
+ size="16"
+ value="#{detail.subscription.username}"/>
+
+ <h:message for="username"/>
+
+ <%-- Third row --%>
+
+ <h:outputLabel for="password">
+ <h:outputText value="#{messages['prompt.mailPassword']}"/>
+ </h:outputLabel>
+
+ <h:inputSecret id="password"
+ size="16"
+ readonly="#{detail.readOnly}"
+ redisplay="true"
+ required="true"
+ value="#{detail.subscription.password}"/>
+
+ <h:message for="password"/>
+
+ <%-- Fourth row --%>
+
+ <h:outputLabel for="protocol">
+ <h:outputText value="#{messages['prompt.mailServerType']}"/>
+ </h:outputLabel>
+
+ <h:selectOneMenu id="protocol"
+ readonly="#{detail.readOnly}"
+ value="#{detail.subscription.protocol}">
+ <f:selectItems value="#{domains.protocols}"/>
+ </h:selectOneMenu>
+
+ <h:message for="protocol"/>
+
+ <%-- Fifth row --%>
+
+ <h:outputLabel for="autoConnect">
+ <h:outputText value="#{messages['prompt.autoConnect']}"/>
+ </h:outputLabel>
+
+ <h:selectBooleanCheckbox
+ id="autoConnect"
+ readonly="#{detail.readOnly}"
+ value="#{detail.subscription.autoConnect}"/>
+
+ <h:message for="autoConnect"/>
+
+ <%-- Sixth row --%>
+
+ <h:outputText value=""/>
+
+ <h:panelGroup>
+
+ <h:commandButton id="create"
+ action="#{detail.save}"
+ type="SUBMIT"
+ rendered="#{detail.mode == 'CREATE'}"
+ value="#{messages['button.create']}"/>
+ <h:commandButton id="delete"
+ action="#{detail.save}"
+ type="SUBMIT"
+ rendered="#{detail.mode == 'DELETE'}"
+ value="#{messages['button.delete']}"/>
+ <h:commandButton id="edit"
+ action="#{detail.save}"
+ type="SUBMIT"
+ rendered="#{detail.mode == 'EDIT'}"
+ value="#{messages['button.edit']}"/>
+
+ <h:commandButton id="reset"
+ type="RESET"
+ rendered="#{!detail.readOnly}"
+ value="#{messages['button.reset']}"/>
+
+ <h:commandButton id="back"
+ type="SUBMIT"
+ action="#{detail.cancel}"
+ immediate="true"
+ rendered="#{detail.mode == 'DISPLAY'}"
+ value="#{messages['button.back']}"/>
+ <h:commandButton id="cancel"
+ type="SUBMIT"
+ action="#{detail.cancel}"
+ immediate="true"
+ rendered="#{detail.mode != 'DISPLAY'}"
+ value="#{messages['button.cancel']}"/>
+
+ </h:panelGroup>
+
+ <h:outputText value=""/>
+
+ </h:panelGrid>
+
+</h:form>
+
+</body>
+</html>
+</f:view>
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/detail.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/detail.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/index.jsp
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/index.jsp?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/index.jsp
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/index.jsp
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,19 @@
+<%--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * 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.
+ */
+--%>
+
+<jsp:forward page="/welcome.faces"/>
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/index.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/logon.jsp
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/logon.jsp?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/logon.jsp
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/logon.jsp
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,100 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+
+<%--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * 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.
+ */
+--%>
+
+<f:view>
+<f:loadBundle var="messages"
basename="org.apache.shale.examples.mailreaderjpa.Bundle"/>
+<html>
+<head>
+ <title>
+ <h:outputText value="#{messages['logon.title']}"/>
+ </title>
+</head>
+<body>
+
+<h:messages globalOnly="true"/>
+
+<h:form id="logon">
+
+ <h:panelGrid columns="3">
+
+ <%-- Form header --%>
+
+ <f:facet name="header">
+ <h:outputText value="#{messages['logon.header']}"/>
+ </f:facet>
+
+ <%-- First row --%>
+
+ <h:outputLabel for="username">
+ <h:outputText value="#{messages['prompt.username']}"/>
+ </h:outputLabel>
+
+ <h:inputText id="username"
+ required="true"
+ size="16"
+ value="#{logon.username}"/>
+
+ <h:message for="username"/>
+
+ <%-- Second row --%>
+
+ <h:outputLabel for="password">
+ <h:outputText value="#{messages['prompt.password']}"/>
+ </h:outputLabel>
+
+ <h:inputSecret id="password"
+ required="true"
+ size="16"
+ value="#{logon.password}"/>
+
+ <h:message for="password"/>
+
+ <%-- Third row --%>
+
+ <h:outputText value=""/>
+
+ <h:panelGroup>
+ <h:commandButton id="submit"
+ type="SUBMIT"
+ action="#{logon.logon}"
+ value="#{messages['button.logon']}"/>
+
+ <h:commandButton id="reset"
+ type="RESET"
+ value="#{messages['button.reset']}"/>
+ </h:panelGroup>
+
+ <h:outputText value=""/>
+
+ <%-- Form footer --%>
+
+ <f:facet name="footer">
+ <h:outputText value="#{messages['logon.footer']}"/>
+ </f:facet>
+
+ </h:panelGrid>
+
+</h:form>
+
+</body>
+</html>
+</f:view>
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/logon.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/logon.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/mainMenu.jsp
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/mainMenu.jsp?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/mainMenu.jsp
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/mainMenu.jsp
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,62 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+
+<%--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * 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.
+ */
+--%>
+
+<f:view>
+<f:loadBundle var="messages"
basename="org.apache.shale.examples.mailreaderjpa.Bundle"/>
+<html>
+<head>
+ <title><h:outputText value="#{messages['mainMenu.title']}"/></title>
+</head>
+<body>
+<h:form id="mainMenuForm">
+
+ <h:messages globalOnly="true"/>
+
+ <h:panelGrid columns="1">
+
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText
+ value="#{messages['mainMenu.heading']}"/>
+ <h:outputText
+ value="#{state.user.username}"/>
+ </h:panelGroup>
+ </f:facet>
+
+ <h:commandLink id="edit"
+ action="#{mainMenu.edit}"
+ immediate="true">
+ <h:outputText value="#{messages['mainMenu.registration']}"/>
+ </h:commandLink>
+
+ <h:commandLink id="logoff"
+ action="#{mainMenu.logoff}"
+ immediate="true">
+ <h:outputText value="#{messages['mainMenu.logoff']}"/>
+ </h:commandLink>
+
+ </h:panelGrid>
+
+</h:form>
+</body>
+</html>
+</f:view>
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/mainMenu.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/mainMenu.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/master.jsp
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/master.jsp?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/master.jsp
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/master.jsp
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,244 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+
+<%--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * 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.
+ */
+--%>
+
+<f:view>
+<f:loadBundle var="messages"
basename="org.apache.shale.examples.mailreaderjpa.Bundle"/>
+<html>
+<head>
+ <title>
+ <h:outputText value="#{messages['registration.title.create']}"
+ rendered="#{master.mode == 'CREATE'}"/>
+ <h:outputText value="#{messages['registration.title.edit']}"
+ rendered="#{master.mode == 'EDIT'}"/>
+ </title>
+</head>
+<body>
+
+<h:messages globalOnly="true"/>
+
+<h:form id="registration">
+
+ <h:panelGrid columns="3">
+
+ <%-- Grid header element --%>
+
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText
+ value="#{messages['registration.header.create']}"
+ rendered="#{master.mode == 'CREATE'}"/>
+ <h:outputText
+ value="#{messages['registration.header.edit']}"
+ rendered="#{master.mode == 'EDIT'}"/>
+ </h:panelGroup>
+ </f:facet>
+
+ <%-- First row --%>
+
+ <h:outputLabel for="username">
+ <h:outputText value="#{messages['prompt.username']}"/>
+ </h:outputLabel>
+
+ <h:panelGroup>
+ <h:inputText id="username"
+ rendered="#{master.mode == 'CREATE'}"
+ required="true"
+ size="16"
+ value="#{master.user.username}"/>
+ <h:outputText value="#{master.user.username}"
+ rendered="#{master.mode == 'EDIT'}"/>
+ </h:panelGroup>
+
+ <h:panelGroup>
+ <h:message for="username"
+ rendered="#{master.mode == 'CREATE'}"/>
+ <h:outputText value=""
+ rendered="#{master.mode == 'EDIT'}"/>
+ </h:panelGroup>
+
+ <%-- Second row --%>
+
+ <h:outputLabel for="password">
+ <h:outputText value="#{messages['prompt.password']}"/>
+ </h:outputLabel>
+
+ <h:inputSecret id="password"
+ size="16"
+ required="#{master.mode == 'CREATE'}"
+ value="#{master.password}"/>
+
+ <h:message for="password"/>
+
+ <%-- Third row --%>
+
+ <h:outputLabel for="password2">
+ <h:outputText value="#{messages['prompt.password2']}"/>
+ </h:outputLabel>
+
+ <h:inputSecret id="password2"
+ size="16"
+ required="#{master.mode == 'CREATE'}"
+ value="#{master.password2}"/>
+
+ <h:message for="password2"/>
+
+ <%-- Fourth row --%>
+
+ <h:outputLabel for="fullName">
+ <h:outputText value="#{messages['prompt.fullName']}"/>
+ </h:outputLabel>
+
+ <h:inputText id="fullName"
+ size="50"
+ required="true"
+ value="#{master.user.fullName}"/>
+
+ <h:message for="fullName"/>
+
+ <%-- Fifth row --%>
+
+ <h:outputLabel for="fromAddress">
+ <h:outputText value="#{messages['prompt.fromAddress']}"/>
+ </h:outputLabel>
+
+ <h:inputText id="fromAddress"
+ size="50"
+ required="true"
+ value="#{master.user.fromAddress}"/>
+
+ <h:message for="fromAddress"/>
+
+ <%-- Sixth row --%>
+
+ <h:outputLabel for="replyToAddress">
+ <h:outputText value="#{messages['prompt.replyToAddress']}"/>
+ </h:outputLabel>
+
+ <h:inputText id="replyToAddress"
+ size="50"
+ value="#{master.user.replyToAddress}"/>
+
+ <h:message for="replyToAddress"/>
+
+ <%-- Seventh row --%>
+
+ <h:outputText value=""/>
+
+ <h:panelGroup>
+ <h:commandButton id="submit"
+ action="#{master.save}"
+ type="SUBMIT"
+ value="#{messages['button.save']}"/>
+ <h:commandButton id="reset"
+ type="RESET"
+ value="#{messages['button.reset']}"/>
+ <h:commandButton id="cancel"
+ type="SUBMIT"
+ action="#{master.cancel}"
+ immediate="true"
+ value="#{messages['button.cancel']}"/>
+ </h:panelGroup>
+
+ <h:outputText value=""/>
+
+ </h:panelGrid>
+
+ <h:dataTable id="table"
+ rendered="#{master.mode == 'EDIT'}"
+ value="#{master.user.subscriptions}"
+ var="current">
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{messages['heading.host']}"/>
+ </f:facet>
+ <h:outputText id="subHost"
+ value="#{current.host}"/>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{messages['heading.user']}"/>
+ </f:facet>
+ <h:outputText id="subUsername"
+ value="#{current.username}"/>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{messages['heading.type']}"/>
+ </f:facet>
+ <h:outputText id="subType"
+ value="#{current.protocol.description}"/>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{messages['heading.autoConnect']}"/>
+ </f:facet>
+ <h:outputText id="subAutoConnect"
+ value="#{current.autoConnect}"/>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{messages['heading.action']}"/>
+ </f:facet>
+ <h:outputLink id="display"
+ value="detail.faces">
+ <f:param name="id"
+ value="#{current.id}"/>
+ <h:outputText value="#{messages['button.display']}"/>
+ </h:outputLink>
+ <h:outputLink id="delete"
+ value="detail.faces">
+ <f:param name="id"
+ value="#{current.id}"/>
+ <f:param name="mode"
+ value="DELETE"/>
+ <h:outputText value="#{messages['button.delete']}"/>
+ </h:outputLink>
+ <h:outputLink id="edit"
+ value="detail.faces">
+ <f:param name="id"
+ value="#{current.id}"/>
+ <f:param name="mode"
+ value="EDIT"/>
+ <h:outputText value="#{messages['button.edit']}"/>
+ </h:outputLink>
+ </h:column>
+
+ </h:dataTable>
+
+ <h:outputLink id="create"
+ value="detail.faces">
+ <f:param name="mode"
+ value="CREATE"/>
+ <h:outputText value="#{messages['button.create']}"/>
+ </h:outputLink>
+
+
+</h:form>
+
+</body>
+</html>
+</f:view>
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/master.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/master.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/welcome.jsp
URL:
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/welcome.jsp?rev=425177&view=auto
==============================================================================
---
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/welcome.jsp
(added)
+++
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/welcome.jsp
Mon Jul 24 13:29:52 2006
@@ -0,0 +1,55 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+
+<%--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * 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.
+ */
+--%>
+
+<f:view>
+<f:loadBundle var="messages"
basename="org.apache.shale.examples.mailreaderjpa.Bundle"/>
+<html>
+<head>
+ <title><h:outputText value="#{messages['welcome.title']}"/></title>
+</head>
+<body>
+<h:form id="welcome">
+
+ <h:panelGrid columns="1">
+
+ <f:facet name="header">
+ <h:outputText value="#{messages['welcome.heading']}"/>
+ </f:facet>
+
+ <h:outputLink id="create"
+ value="registration.faces">
+ <f:param name="mode"
+ value="CREATE"/>
+ <h:outputText value="#{messages['welcome.registration']}"/>
+ </h:outputLink>
+
+ <h:outputLink id="logon"
+ value="logon.faces">
+ <h:outputText value="#{messages['welcome.logon']}"/>
+ </h:outputLink>
+
+ </h:panelGrid>
+
+</h:form>
+</body>
+</html>
+</f:view>
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/welcome.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
shale/framework/trunk/shale-apps/shale-mailreader-jpa/src/main/webapp/welcome.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL