# HG changeset patch # User smith@nwoca.org # Date 1352737751 0 # Node ID f4f8570d1c56b55a870b2734713b8c6485247598 initial OTP form diff -r 000000000000 -r f4f8570d1c56 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,21 @@ +\.orig$ +\.orig\..*$ +\.chg\..*$ +\.rej$ +\.conflict\~$ +.*~$ +glob:out/* +glob:lib/* +glob:build/* +glob:dist/* +glob:nbproject/* +glob:.idea/workspace.* +glob:*.log +glob:.gradle/* +glob:.idea/* +glob:*.iml +glob:*.iws +glob:*.ipr +glob:gradle-app.* +glob:build.xml +glob:private*.* diff -r 000000000000 -r f4f8570d1c56 build.gradle --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build.gradle Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,86 @@ +apply from: "${gradle.ext.has('ssdtDevelkitLocation') ? gradle.ssdtDevelkitLocation : 'http://hg.ssdt-ohio.org/browse/public/develkit'}/init.gradle" + +description = "ssdt.forms application" + +apply plugin: "war" +apply plugin: "java" +apply plugin: "groovy" +apply plugin: "jetty" +apply plugin: "idea" + + +sourceCompatibility = "1.5" +targetCompatibility = "1.5" + +group = "org.ssdt_ohio" +version = "1.0-SNAPSHOT" + +/* +repositories { + mavenCentral() + + // All things JBoss/Hibernate + mavenRepo name: "JBoss", url: "http://repository.jboss.org/nexus/content/groups/public/" + + // For stable versions of the tapx libraries + mavenRepo name: "HLS", url: "http://howardlewisship.com/repository/" + + // For non-stable versions of the tapx libraries + mavenRepo name: "HLS Snapshots", url: "http://howardlewisship.com/snapshot-repository/" + + // For access to Apache Staging (Preview) packages + mavenRepo name: "Apache Staging", url: "https://repository.apache.org/content/groups/staging" +} +*/ + +// This simulates Maven's "provided" scope, until it is officially supported by Gradle +// See http://jira.codehaus.org/browse/GRADLE-784 + +configurations { + provided +} + +sourceSets { + main { + compileClasspath += configurations.provided + } + test { + compileClasspath += configurations.provided + runtimeClasspath += configurations.provided + } +} + +dependencies { + + groovy 'org.codehaus.groovy:groovy-all:2.0.1' + compile "org.apache.tapestry:tapestry-core:5.3.6" + compile(group: 'me.davesmith', name: 'tapestry-bootstrap', version: '2.1-SNAPSHOT') + compile group: 'org.got5', name: 'tapestry5-jquery', version: '3.2.0' + compile "org.apache.tapestry:tapestry-yuicompressor:5.3.6" + + // Uncomment this to add support for file uploads: + // compile "org.apache.tapestry:tapestry-upload:5.3.6" + + provided "javax.servlet:servlet-api:2.5" +} + +test { + useTestNG() + + options.suites("src/test/conf/testng.xml") + + systemProperties["tapestry.service-reloading-enabled"] = "false" + systemProperties["tapestry.execution-mode"] = "development" + + maxHeapSize = "600M" + + jvmArgs("-XX:MaxPermSize=256M") + + enableAssertions = true +} + + +jettyRun { + webAppSourceDirectory = file("src/main/webapp") + httpPort = 8086 +} diff -r 000000000000 -r f4f8570d1c56 gradle/wrapper/gradle-wrapper.jar Binary file gradle/wrapper/gradle-wrapper.jar has changed diff -r 000000000000 -r f4f8570d1c56 gradle/wrapper/gradle-wrapper.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gradle/wrapper/gradle-wrapper.properties Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,6 @@ +#Fri Nov 09 14:45:30 EST 2012 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=http\://services.gradle.org/distributions/gradle-1.2-bin.zip diff -r 000000000000 -r f4f8570d1c56 gradlew --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gradlew Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,164 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched. +if $cygwin ; then + [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" +APP_HOME="`pwd -P`" +cd "$SAVED" + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff -r 000000000000 -r f4f8570d1c56 gradlew.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gradlew.bat Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff -r 000000000000 -r f4f8570d1c56 src/main/java/org/ssdt_ohio/devel/forms/components/Layout.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/org/ssdt_ohio/devel/forms/components/Layout.java Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,47 @@ +package org.ssdt_ohio.devel.forms.components; + +import com.trsvax.bootstrap.annotations.Exclude; +import org.apache.tapestry5.*; +import org.apache.tapestry5.annotations.*; +import org.apache.tapestry5.ioc.annotations.*; +import org.apache.tapestry5.BindingConstants; +import org.apache.tapestry5.SymbolConstants; + +@Exclude(stylesheet = {"core"}) +@Import(stylesheet = {"classpath:/com/trsvax/bootstrap/assets/bootstrap/css/bootstrap.css", + "classpath:/com/trsvax/bootstrap/assets/bootstrap/css/bootstrap-responsive.css", + "context:layout/layout.css"}, + library = {"classpath:/com/trsvax/bootstrap/assets/bootstrap/js/bootstrap.js"}) +public class Layout +{ + /** + * The page title, for the element and the <h1> element. + */ + @Property + @Parameter(required = true, defaultPrefix = BindingConstants.LITERAL) + private String title; + + @Property + private String pageName; + + @Inject + private ComponentResources resources; + + @Property + @Inject + @Symbol(SymbolConstants.APPLICATION_VERSION) + private String appVersion; + + + public String getClassForPageName() + { + return resources.getPageName().equalsIgnoreCase(pageName) + ? "current_page_item" + : null; + } + + public String[] getPageNames() + { + return new String[]{"Index", "OneTwentyPayment"}; + } +} diff -r 000000000000 -r f4f8570d1c56 src/main/java/org/ssdt_ohio/devel/forms/pages/Index.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/org/ssdt_ohio/devel/forms/pages/Index.java Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,17 @@ +package org.ssdt_ohio.devel.forms.pages; + +import com.trsvax.bootstrap.annotations.Exclude; +import org.apache.tapestry5.SymbolConstants; +import org.apache.tapestry5.annotations.Import; +import org.apache.tapestry5.annotations.Property; +import org.apache.tapestry5.ioc.annotations.Inject; +import org.apache.tapestry5.ioc.annotations.Symbol; + + +public class Index { + @Property + @Inject + @Symbol(SymbolConstants.TAPESTRY_VERSION) + private String tapestryVersion; + +} diff -r 000000000000 -r f4f8570d1c56 src/main/java/org/ssdt_ohio/devel/forms/pages/OneTwentyPayment.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/org/ssdt_ohio/devel/forms/pages/OneTwentyPayment.java Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,11 @@ +package org.ssdt_ohio.devel.forms.pages; + +import java.text.SimpleDateFormat; +import java.util.Date; + +public class OneTwentyPayment { + + public String getDate() { + return new SimpleDateFormat("MM/dd/yyyy").format(new Date()); + } +} \ No newline at end of file diff -r 000000000000 -r f4f8570d1c56 src/main/java/org/ssdt_ohio/devel/forms/services/AppModule.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/org/ssdt_ohio/devel/forms/services/AppModule.java Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,114 @@ +package org.ssdt_ohio.devel.forms.services; + +import org.apache.tapestry5.SymbolConstants; +import org.apache.tapestry5.ioc.MappedConfiguration; +import org.apache.tapestry5.ioc.OrderedConfiguration; +import org.apache.tapestry5.ioc.ServiceBinder; +import org.apache.tapestry5.ioc.annotations.Local; +import org.apache.tapestry5.services.Request; +import org.apache.tapestry5.services.RequestFilter; +import org.apache.tapestry5.services.RequestHandler; +import org.apache.tapestry5.services.Response; +import org.slf4j.Logger; + +import java.io.IOException; + +/** + * This module is automatically included as part of the Tapestry IoC Registry, it's a good place to configure and extend + * Tapestry, or to place your own service definitions. + */ +public class AppModule { + public static void bind(ServiceBinder binder) { + // binder.bind(MyServiceInterface.class, MyServiceImpl.class); + + // Make bind() calls on the binder object to define most IoC services. + // Use service builder methods (example below) when the implementation + // is provided inline, or requires more initialization than simply + // invoking the constructor. + } + + public static void contributeFactoryDefaults( + MappedConfiguration<String, Object> configuration) { + // The application version number is incorprated into URLs for some + // assets. Web browsers will cache assets because of the far future expires + // header. If existing assets are changed, the version number should also + // change, to force the browser to download new versions. This overrides Tapesty's default + // (a random hexadecimal number), but may be further overriden by DevelopmentModule or + // QaModule. + configuration.override(SymbolConstants.APPLICATION_VERSION, "1.0-SNAPSHOT"); + } + + public static void contributeApplicationDefaults( + MappedConfiguration<String, Object> configuration) { + // Contributions to ApplicationDefaults will override any contributions to + // FactoryDefaults (with the same key). Here we're restricting the supported + // locales to just "en" (English). As you add localised message catalogs and other assets, + // you can extend this list of locales (it's a comma separated series of locale names; + // the first locale name is the default when there's no reasonable match). + configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en"); + + // The factory default is true but during the early stages of an application + // overriding to false is a good idea. In addition, this is often overridden + // on the command line as -Dtapestry.production-mode=false + configuration.add(SymbolConstants.PRODUCTION_MODE, false); + + // The application version number is incorprated into URLs for some + // assets. Web browsers will cache assets because of the far future expires + // header. If existing assets are changed, the version number should also + // change, to force the browser to download new versions. + configuration.add(SymbolConstants.APPLICATION_VERSION, "1.0-SNAPSHOT-DEV"); + } + + + /** + * This is a service definition, the service will be named "TimingFilter". The interface, RequestFilter, is used + * within the RequestHandler service pipeline, which is built from the RequestHandler service configuration. + * Tapestry IoC is responsible for passing in an appropriate Logger instance. Requests for static resources are + * handled at a higher level, so this filter will only be invoked for Tapestry related requests. + * <p/> + * <p/> + * Service builder methods are useful when the implementation is inline as an inner class (as here) or require some + * other kind of special initialization. In most cases, use the static bind() method instead. + * <p/> + * <p/> + * If this method was named "build", then the service id would be taken from the service interface and would be + * "RequestFilter". Since Tapestry already defines a service named "RequestFilter" we use an explicit service id + * that we can reference inside the contribution method. + */ + public RequestFilter buildTimingFilter(final Logger log) { + return new RequestFilter() { + public boolean service(Request request, Response response, RequestHandler handler) + throws IOException { + long startTime = System.currentTimeMillis(); + + try { + // The responsibility of a filter is to invoke the corresponding method + // in the handler. When you chain multiple filters together, each filter + // received a handler that is a bridge to the next filter. + + return handler.service(request, response); + } finally { + long elapsed = System.currentTimeMillis() - startTime; + + log.info(String.format("Request time: %d ms", elapsed)); + } + } + }; + } + + /** + * This is a contribution to the RequestHandler service configuration. This is how we extend Tapestry using the + * timing filter. A common use for this kind of filter is transaction management or security. The @Local annotation + * selects the desired service by type, but only from the same module. Without @Local, there would be an error due + * to the other service(s) that implement RequestFilter (defined in other modules). + */ + public void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration, + @Local + RequestFilter filter) { + // Each contribution to an ordered configuration has a name, When necessary, you may + // set constraints to precisely control the invocation order of the contributed filter + // within the pipeline. + + configuration.add("Timing", filter); + } +} diff -r 000000000000 -r f4f8570d1c56 src/main/java/org/ssdt_ohio/devel/forms/services/DevelopmentModule.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/org/ssdt_ohio/devel/forms/services/DevelopmentModule.java Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,36 @@ +package org.ssdt_ohio.devel.forms.services; + +import java.io.IOException; + +import org.apache.tapestry5.*; +import org.apache.tapestry5.ioc.MappedConfiguration; +import org.apache.tapestry5.ioc.OrderedConfiguration; +import org.apache.tapestry5.ioc.ServiceBinder; +import org.apache.tapestry5.ioc.annotations.Local; +import org.apache.tapestry5.services.Request; +import org.apache.tapestry5.services.RequestFilter; +import org.apache.tapestry5.services.RequestHandler; +import org.apache.tapestry5.services.Response; +import org.slf4j.Logger; + +/** + * This module is automatically included as part of the Tapestry IoC Registry if <em>tapestry.execution-mode</em> + * includes <code>development</code>. + */ +public class DevelopmentModule +{ + public static void contributeApplicationDefaults( + MappedConfiguration<String, Object> configuration) + { + // The factory default is true but during the early stages of an application + // overriding to false is a good idea. In addition, this is often overridden + // on the command line as -Dtapestry.production-mode=false + configuration.add(SymbolConstants.PRODUCTION_MODE, false); + + // The application version number is incorprated into URLs for some + // assets. Web browsers will cache assets because of the far future expires + // header. If existing assets are changed, the version number should also + // change, to force the browser to download new versions. + configuration.add(SymbolConstants.APPLICATION_VERSION, "1.0-SNAPSHOT-DEV"); + } +} diff -r 000000000000 -r f4f8570d1c56 src/main/java/org/ssdt_ohio/devel/forms/services/QaModule.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/org/ssdt_ohio/devel/forms/services/QaModule.java Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,43 @@ +package org.ssdt_ohio.devel.forms.services; + +import java.io.IOException; + +import org.apache.tapestry5.*; +import org.apache.tapestry5.ioc.MappedConfiguration; +import org.apache.tapestry5.ioc.OrderedConfiguration; +import org.apache.tapestry5.ioc.ServiceBinder; +import org.apache.tapestry5.ioc.annotations.Local; +import org.apache.tapestry5.services.Request; +import org.apache.tapestry5.services.RequestFilter; +import org.apache.tapestry5.services.RequestHandler; +import org.apache.tapestry5.services.Response; +import org.slf4j.Logger; + +/** + * This module is automatically included as part of the Tapestry IoC Registry if <em>tapestry.execution-mode</em> + * includes <code>qa</code> ("quality assurance"). + */ +public class QaModule +{ + public static void bind(ServiceBinder binder) + { + // Bind any services needed by the QA team to produce their reports + // binder.bind(MyServiceMonitorInterface.class, MyServiceMonitorImpl.class); + } + + + public static void contributeApplicationDefaults( + MappedConfiguration<String, Object> configuration) + { + // The factory default is true but during the early stages of an application + // overriding to false is a good idea. In addition, this is often overridden + // on the command line as -Dtapestry.production-mode=false + configuration.add(SymbolConstants.PRODUCTION_MODE, false); + + // The application version number is incorprated into URLs for some + // assets. Web browsers will cache assets because of the far future expires + // header. If existing assets are changed, the version number should also + // change, to force the browser to download new versions. + configuration.add(SymbolConstants.APPLICATION_VERSION, "1.0-SNAPSHOT-QA"); + } +} diff -r 000000000000 -r f4f8570d1c56 src/main/resources/log4j.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/resources/log4j.properties Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,44 @@ +# Default to info level output; this is very handy if you eventually use Hibernate as well. +log4j.rootCategory=info, A1 + +# A1 is set to be a ConsoleAppender. +log4j.appender.A1=org.apache.log4j.ConsoleAppender + +# A1 uses PatternLayout. +log4j.appender.A1.layout=org.apache.log4j.PatternLayout +log4j.appender.A1.layout.ConversionPattern=[%p] %c{2} %m%n + +# Service category names are the name of the defining module class +# and then the service id. +log4j.category.org.ssdt_ohio.devel.forms.services.AppModule.TimingFilter=info + +# Outputs a list of pages, components and mixins at startup. +log4j.category.org.apache.tapestry5.services.TapestryModule.ComponentClassResolver=info + +# Outputs startup statistics; elapsed time to setup and initialize the registry, a list of +# available services, and a launch banner that includes the Tapestry version number. +log4j.category.org.apache.tapestry5.TapestryFilter=info + + +# Turning on debug mode for a page's or component's transformer logger +# will show all of the code changes that occur when the +# class is loaded. + +# log4j.category.tapestry.transformer.org.ssdt_ohio.devel.forms.pages.Index=debug + +# Turning on debug mode for a component's events logger will show all the events triggered on the +# component, and which component methods are invoked as a result. + +# log4j.category.tapestry.events.org.ssdt_ohio.devel.forms.pages.Index=debug + +# Turning on trace mode for a page's render logger provides extended information about every step +# in rendering (this is not generally helpful). Turning on debug mode will add a one-line +# summary that includes the elapsed render time, which can be useful in tracking down +# performance issues. + +# log4j.category.tapestry.render.org.ssdt_ohio.devel.forms.pages.Index=debug + +# Turn on some verbose debugging about everything in the application. This is nice initially, +# while getting everything set up. You'll probably want to remove this once you are +# up and running, replacing it with more selective debugging output. +log4j.category.org.ssdt_ohio.devel.forms=debug diff -r 000000000000 -r f4f8570d1c56 src/main/resources/org/ssdt_ohio/devel/forms/components/Layout.tml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/resources/org/ssdt_ohio/devel/forms/components/Layout.tml Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,54 @@ +<!-- +<!DOCTYPE html> + +Design by Free CSS Templates +http://www.freecsstemplates.org +Released for free under a Creative Commons Attribution 2.5 License + +Title : Concrete (modified for Tapestry) +Version : 1.0 +Released : 20080825 +Description: A Web 2.0 design with fluid width suitable for blogs and small websites. +--> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" + xmlns:p="tapestry:parameter"> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"/> + <title>${title} + + +
+ +
+
+ org.ssdt_ohio:ssdt.forms +   + version ${appVersion} +
+
+ +
+
+ + +
+ +
+
+ +
+
+
+ + + + +
+ + diff -r 000000000000 -r f4f8570d1c56 src/main/resources/org/ssdt_ohio/devel/forms/pages/Index.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/resources/org/ssdt_ohio/devel/forms/pages/Index.properties Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,1 @@ +greeting=Welcome to SSDT Forms diff -r 000000000000 -r f4f8570d1c56 src/main/resources/org/ssdt_ohio/devel/forms/pages/Index.tml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/resources/org/ssdt_ohio/devel/forms/pages/Index.tml Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,13 @@ + + + +

${message:greeting}

+ + + + + diff -r 000000000000 -r f4f8570d1c56 src/main/resources/org/ssdt_ohio/devel/forms/pages/OneTwentyPayment.tml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/resources/org/ssdt_ohio/devel/forms/pages/OneTwentyPayment.tml Mon Nov 12 16:29:11 2012 +0000 @@ -0,0 +1,140 @@ + + +

SSDT One Twenty Project Payment Form

+
+ +

Instructions:

+ +

Complete the form below and use the browser to print it and submit to supervisor for approval.

+

Note: This is not a proper web application. The values will not be recorded.

+
+ +
+ + +
+ + +
${date} +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+