INT-1434 Update to Roo 1.1.0.M3

This commit is contained in:
Gary Russell
2010-09-07 21:05:13 -04:00
parent 7df4425c41
commit e231111d80
90 changed files with 2416 additions and 1807 deletions

View File

@@ -1,6 +1,5 @@
#Fri May 28 19:48:06 CEST 2010
eclipse.preferences.version=1
#Tue Sep 07 17:11:57 EDT 2010
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.compiler.compliance=1.6

View File

@@ -1,22 +1,166 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="loanshark">
<dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/spring-integration-ip/spring-integration-ip">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/spring-integration-core/spring-integration-core">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/spring-integration-stream/spring-integration-stream">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="context-root" value="loanshark"/>
<wb-resource deploy-path="/" source-path="src/main/webapp"/>
<property name="java-output-path" value="/target/classes"/>
<dependent-module archiveName="antlr-2.7.6.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="aopalliance-1.0.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="aspectjrt-1.6.10.M1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/aspectj/aspectjrt/1.6.10.M1/aspectjrt-1.6.10.M1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="cglib-nodep-2.2.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/cglib/cglib-nodep/2.2/cglib-nodep-2.2.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="commons-beanutils-1.8.0.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="commons-collections-3.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="commons-dbcp-1.3.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="commons-digester-2.0.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-digester/commons-digester/2.0/commons-digester-2.0.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="commons-fileupload-1.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="commons-pool-1.5.4.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="dom4j-1.6.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="flexjson-2.0.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/net/sf/flexjson/flexjson/2.0/flexjson-2.0.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="hibernate-annotations-3.5.5-Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-annotations/3.5.5-Final/hibernate-annotations-3.5.5-Final.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="hibernate-commons-annotations-3.2.0.Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="hibernate-core-3.5.5-Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-core/3.5.5-Final/hibernate-core-3.5.5-Final.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="hibernate-entitymanager-3.5.5-Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-entitymanager/3.5.5-Final/hibernate-entitymanager-3.5.5-Final.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="hibernate-jpa-2.0-api-1.0.0.Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="hibernate-validator-4.1.0.Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-validator/4.1.0.Final/hibernate-validator-4.1.0.Final.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="hsqldb-2.0.0.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hsqldb/hsqldb/2.0.0/hsqldb-2.0.0.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="javassist-3.9.0.GA.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="jcl-over-slf4j-1.6.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/slf4j/jcl-over-slf4j/1.6.1/jcl-over-slf4j-1.6.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="joda-time-1.6.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/joda-time/joda-time/1.6/joda-time-1.6.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="jstl-1.2.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javax/servlet/jstl/1.2/jstl-1.2.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="jta-1.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javax/transaction/jta/1.1/jta-1.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="log4j-1.2.16.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/log4j/log4j/1.2.16/log4j-1.2.16.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="slf4j-api-1.6.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="slf4j-log4j12-1.6.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-aop-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-aop/3.0.4.RELEASE/spring-aop-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-asm-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-asm/3.0.4.RELEASE/spring-asm-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-aspects-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-aspects/3.0.4.RELEASE/spring-aspects-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-beans-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-beans/3.0.4.RELEASE/spring-beans-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-commons-serializer-1.0.0.M1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/commons/spring-commons-serializer/1.0.0.M1/spring-commons-serializer-1.0.0.M1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-context-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-context/3.0.4.RELEASE/spring-context-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-context-support-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-context-support/3.0.4.RELEASE/spring-context-support-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-core-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-core/3.0.4.RELEASE/spring-core-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-expression-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-expression/3.0.4.RELEASE/spring-expression-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-integration-core-2.0.0.M7.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/integration/spring-integration-core/2.0.0.M7/spring-integration-core-2.0.0.M7.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-integration-ip-2.0.0.M7.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/integration/spring-integration-ip/2.0.0.M7/spring-integration-ip-2.0.0.M7.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-integration-stream-2.0.0.M7.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/integration/spring-integration-stream/2.0.0.M7/spring-integration-stream-2.0.0.M7.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-jdbc-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-jdbc/3.0.4.RELEASE/spring-jdbc-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-js-2.1.1.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/webflow/spring-js/2.1.1.RELEASE/spring-js-2.1.1.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-orm-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-orm/3.0.4.RELEASE/spring-orm-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-tx-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-tx/3.0.4.RELEASE/spring-tx-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-web-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-web/3.0.4.RELEASE/spring-web-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="spring-webmvc-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-webmvc/3.0.4.RELEASE/spring-webmvc-3.0.4.RELEASE.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="tiles-api-2.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/tiles/tiles-api/2.2.1/tiles-api-2.2.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="tiles-core-2.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/tiles/tiles-core/2.2.1/tiles-core-2.2.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="tiles-jsp-2.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/tiles/tiles-jsp/2.2.1/tiles-jsp-2.2.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="tiles-servlet-2.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/tiles/tiles-servlet/2.2.1/tiles-servlet-2.2.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="tiles-template-2.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/tiles/tiles-template/2.2.1/tiles-template-2.2.1.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="validation-api-1.0.0.GA.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="xml-apis-1.0.b2.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
</wb-module>
</project-modules>

View File

@@ -1,6 +1,6 @@
<faceted-project>
<fixed facet="jst.java"/>
<fixed facet="jst.web"/>
<installed facet="jst.web" version="2.4"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="jst.java" version="6.0"/>
</faceted-project>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.integration.samples</groupId>
@@ -10,19 +9,84 @@
<artifactId>loanshark</artifactId>
<name>Spring Integration Loan Shark Sample</name>
<packaging>war</packaging>
<properties>
<roo.version>1.1.0.M3</roo.version>
<spring.version>3.0.4.RELEASE</spring.version>
<aspectj.version>1.6.10.M1</aspectj.version>
<slf4j.version>1.6.1</slf4j.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<repository>
<id>spring-maven-release</id>
<name>Spring Maven Release Repository</name>
<url>http://maven.springframework.org/release</url>
</repository>
<repository>
<id>spring-maven-milestone</id>
<name>Spring Maven Milestone Repository</name>
<url>http://maven.springframework.org/milestone</url>
</repository>
<repository>
<id>spring-roo-repository</id>
<name>Spring Roo Repository</name>
<url>http://spring-roo-repository.springsource.org/release</url>
</repository>
<repository>
<id>JBoss Repo</id>
<url>https://repository.jboss.org/nexus/content/repositories/releases</url>
<name>JBoss Repo</name>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-maven-release</id>
<name>Spring Maven Release Repository</name>
<url>http://maven.springframework.org/release</url>
</pluginRepository>
<pluginRepository>
<id>spring-maven-milestone</id>
<name>Spring Maven Milestone Repository</name>
<url>http://maven.springframework.org/milestone</url>
</pluginRepository>
<pluginRepository>
<id>spring-roo-repository</id>
<name>Spring Roo Repository</name>
<url>http://spring-roo-repository.springsource.org/release</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<!-- General dependencies for standard applications -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.3.2.GA</version>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
@@ -31,215 +95,292 @@
<scope>provided</scope>
</dependency>
<dependency>
<!-- available only in EBR. see <repositories> section at bottom -->
<groupId>net.sf.flexjson</groupId>
<artifactId>flexjson</artifactId>
<version>2.0</version>
</dependency>
<!-- ROO dependencies -->
<dependency>
<groupId>org.springframework.roo</groupId>
<artifactId>org.springframework.roo.annotations</artifactId>
<version>1.0.2.RELEASE</version>
<version>${roo.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-ip</artifactId>
</dependency>
<!-- Spring dependencies -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
</dependency>
<!-- test-scoped dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.3.1.GA</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>backport-util-concurrent</groupId>
<artifactId>backport-util-concurrent</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<!--
available only in JBoss repository. see <repositories> section below
-->
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.0.0.GA</version>
<version>${spring.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>transaction-api</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>org.springframework.webflow</groupId>
<artifactId>org.springframework.js</artifactId>
<version>2.0.8.RELEASE</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.core</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.beans</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.context</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.web</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.web.servlet</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>com.springsource.org.apache.commons.logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.tuckey</groupId>
<artifactId>urlrewritefilter</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<!--
available only in glassfish repository. see <repositories> section
below
-->
<groupId>javax.servlet.jsp.jstl</groupId>
<artifactId>jstl-api</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>el-api</artifactId>
<version>6.0.20</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-api</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-core</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
</dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.5.5-Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.5.5-Final</version>
<exclusions>
<exclusion>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
</exclusion>
<exclusion>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.1.0.Final</version>
<exclusions>
<exclusion>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>commons-pool</groupId>
<artifactId>commons-pool</artifactId>
<version>1.5.4</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.3</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>commons-pool</groupId>
<artifactId>commons-pool</artifactId>
</exclusion>
<exclusion>
<groupId>xerces</groupId>
<artifactId>xerces</artifactId>
</exclusion>
<exclusion>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
</exclusion>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-core</artifactId>
<version>2.2.1</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.webflow</groupId>
<artifactId>spring-js</artifactId>
<version>2.1.1.RELEASE</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>2.0</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.1</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-ip</artifactId>
<version>2.0.0.M7</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.2</version>
<version>2.1-beta-1</version>
<!--
<configuration> <webXml>target/web.xml</webXml> </configuration>
-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>2.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
@@ -250,19 +391,16 @@
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.0</version>
<dependencies>
<!--
NB: You must use Maven 2.0.9 or above or these are ignored (see
MNG-2972)
-->
<!-- NB: You must use Maven 2.0.9 or above or these are ignored (see MNG-2972) -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${org.aspectj.version}</version>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>${org.aspectj.version}</version>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
<executions>
@@ -285,10 +423,18 @@
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.2</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<version>2.5</version>
<configuration>
<excludes>
<exclude>**/*_Roo_*</exclude>
@@ -298,25 +444,23 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.1</version>
<version>2.2-beta-5</version>
<configuration>
<descriptorRefs>
<descriptorRef>
jar-with-dependencies
</descriptorRef>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.4</version>
<version>2.5</version>
</plugin>
<!-- IDE -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.7</version>
<version>2.7</version> <!-- Note 2.8 does not work with AspectJ aspect path -->
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>false</downloadJavadocs>
@@ -351,57 +495,18 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.0-beta-1</version>
<version>1.0</version>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.10</version>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.1.2.v20100523</version>
<configuration>
<webAppConfig>
<contextPath>/${project.name}</contextPath>
</webAppConfig>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<!-- necessary for roo.annotations dependency -->
<id>repository.springsource.release</id>
<name>SpringSource EBR</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
<repository>
<!-- necessary for hibernate-validator dependency -->
<id>repository.jboss</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<!-- necessary for jstl-api dependency -->
<id>repository.glassfish</id>
<name>Glassfish Repository</name>
<url>http://download.java.net/maven/glassfish</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>repository.springframework.maven.release</id>
<name>Spring Framework Maven Release Repository</name>
<url>http://maven.springframework.org/release</url>
</repository>
<repository>
<id>repository.springframework.maven.milestone</id>
<name>Spring Framework Maven Milestone Repository</name>
<url>http://maven.springframework.org/milestone</url>
</repository>
<repository>
<id>repository.springframework.maven.snapshot</id>
<name>Spring Framework Maven Snapshot Repository</name>
<url>http://maven.springframework.org/snapshot</url>
</repository>
</repositories>
</project>

View File

@@ -1,9 +1,9 @@
package org.springframework.integration.samples.loanbroker.loanshark.domain;
import javax.persistence.Entity;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.addon.entity.RooEntity;
@Entity
@RooJavaBean

View File

@@ -1,3 +1,6 @@
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package org.springframework.integration.samples.loanbroker.loanshark.domain;
import org.springframework.beans.factory.annotation.Configurable;

View File

@@ -1,8 +1,11 @@
package org.springframework.integration.samples.loanbroker.loanshark.domain;
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package org.springframework.integration.samples.loanbroker.loanshark.domain;
import java.lang.Integer;
import java.lang.Long;
import java.lang.SuppressWarnings;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.EntityManager;
@@ -11,7 +14,6 @@ import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PersistenceContext;
import javax.persistence.Version;
import org.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
import org.springframework.transaction.annotation.Transactional;
@@ -57,7 +59,7 @@ privileged aspect LoanShark_Roo_Entity {
if (this.entityManager.contains(this)) {
this.entityManager.remove(this);
} else {
LoanShark attached = this.entityManager.find(LoanShark.class, this.id);
LoanShark attached = this.entityManager.find(this.getClass(), this.id);
this.entityManager.remove(attached);
}
}
@@ -69,11 +71,11 @@ privileged aspect LoanShark_Roo_Entity {
}
@Transactional
public void LoanShark.merge() {
public LoanShark LoanShark.merge() {
if (this.entityManager == null) this.entityManager = entityManager();
LoanShark merged = this.entityManager.merge(this);
this.entityManager.flush();
this.id = merged.getId();
return merged;
}
public static final EntityManager LoanShark.entityManager() {
@@ -83,9 +85,10 @@ privileged aspect LoanShark_Roo_Entity {
}
public static long LoanShark.countLoanSharks() {
return (Long) entityManager().createQuery("select count(o) from LoanShark o").getSingleResult();
return ((Number) entityManager().createQuery("select count(o) from LoanShark o").getSingleResult()).longValue();
}
@SuppressWarnings("unchecked")
public static List<LoanShark> LoanShark.findAllLoanSharks() {
return entityManager().createQuery("select o from LoanShark o").getResultList();
}
@@ -95,6 +98,7 @@ privileged aspect LoanShark_Roo_Entity {
return entityManager().find(LoanShark.class, id);
}
@SuppressWarnings("unchecked")
public static List<LoanShark> LoanShark.findLoanSharkEntries(int firstResult, int maxResults) {
return entityManager().createQuery("select o from LoanShark o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();
}

View File

@@ -1,13 +1,14 @@
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package org.springframework.integration.samples.loanbroker.loanshark.domain;
import java.lang.String;
import java.lang.SuppressWarnings;
import javax.persistence.EntityManager;
import javax.persistence.Query;
privileged aspect LoanShark_Roo_Finder {
@SuppressWarnings("unchecked")
public static Query LoanShark.findLoanSharksByName(String name) {
if (name == null || name.length() == 0) throw new IllegalArgumentException("The name argument is required");
EntityManager em = LoanShark.entityManager();

View File

@@ -1,3 +1,6 @@
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package org.springframework.integration.samples.loanbroker.loanshark.domain;
import java.lang.Double;

View File

@@ -0,0 +1,32 @@
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package org.springframework.integration.samples.loanbroker.loanshark.domain;
import flexjson.JSONDeserializer;
import flexjson.JSONSerializer;
import java.lang.String;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
privileged aspect LoanShark_Roo_Json {
public String LoanShark.toJson() {
return new JSONSerializer().exclude("*.class").serialize(this);
}
public static LoanShark LoanShark.fromJsonToLoanShark(String json) {
return new JSONDeserializer<LoanShark>().use(null, LoanShark.class).deserialize(json);
}
public static String LoanShark.toJsonArray(Collection<LoanShark> collection) {
return new JSONSerializer().exclude("*.class").serialize(collection);
}
public static Collection<LoanShark> LoanShark.fromJsonArrayToLoanSharks(String json) {
return new JSONDeserializer<List<LoanShark>>().use(null, ArrayList.class).use("values", LoanShark.class).deserialize(json);
}
}

View File

@@ -1,3 +1,6 @@
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package org.springframework.integration.samples.loanbroker.loanshark.domain;
import java.lang.String;

View File

@@ -1,14 +1,12 @@
package org.springframework.integration.samples.loanbroker.loanshark.web;
import org.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
import org.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
@RooWebScaffold(path = "loanshark", automaticallyMaintainView = true, formBackingObject = LoanShark.class)
@RequestMapping("/loanshark/**")
@RooWebScaffold(path = "loansharks", formBackingObject = LoanShark.class)
@RequestMapping("/loansharks")
@Controller
public class SharkController {
}

View File

@@ -1,92 +1,140 @@
package org.springframework.integration.samples.loanbroker.loanshark.web;
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package org.springframework.integration.samples.loanbroker.loanshark.web;
import java.lang.Long;
import java.lang.String;
import javax.validation.Valid;
import org.springframework.core.convert.converter.Converter;
import org.springframework.core.convert.support.GenericConversionService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
import org.springframework.ui.ModelMap;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
privileged aspect SharkController_Roo_Controller {
@RequestMapping(value = "/loanshark", method = RequestMethod.POST)
public String SharkController.create(@Valid LoanShark loanShark, BindingResult result, ModelMap modelMap) {
if (loanShark == null) throw new IllegalArgumentException("A loanShark is required");
@RequestMapping(method = RequestMethod.POST)
public String SharkController.create(@Valid LoanShark loanShark, BindingResult result, Model model) {
if (result.hasErrors()) {
modelMap.addAttribute("loanShark", loanShark);
return "loanshark/create";
model.addAttribute("loanShark", loanShark);
return "loansharks/create";
}
loanShark.persist();
return "redirect:/loanshark/" + loanShark.getId();
return "redirect:/loansharks/" + loanShark.getId();
}
@RequestMapping(value = "/loanshark/form", method = RequestMethod.GET)
public String SharkController.createForm(ModelMap modelMap) {
modelMap.addAttribute("loanShark", new LoanShark());
return "loanshark/create";
@RequestMapping(params = "form", method = RequestMethod.GET)
public String SharkController.createForm(Model model) {
model.addAttribute("loanShark", new LoanShark());
return "loansharks/create";
}
@RequestMapping(value = "/loanshark/{id}", method = RequestMethod.GET)
public String SharkController.show(@PathVariable("id") Long id, ModelMap modelMap) {
if (id == null) throw new IllegalArgumentException("An Identifier is required");
modelMap.addAttribute("loanShark", LoanShark.findLoanShark(id));
return "loanshark/show";
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
public String SharkController.show(@PathVariable("id") Long id, Model model) {
model.addAttribute("loanshark", LoanShark.findLoanShark(id));
model.addAttribute("itemId", id);
return "loansharks/show";
}
@RequestMapping(value = "/loanshark", method = RequestMethod.GET)
public String SharkController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, ModelMap modelMap) {
@RequestMapping(method = RequestMethod.GET)
public String SharkController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model model) {
if (page != null || size != null) {
int sizeNo = size == null ? 10 : size.intValue();
modelMap.addAttribute("loansharks", LoanShark.findLoanSharkEntries(page == null ? 0 : (page.intValue() - 1) * sizeNo, sizeNo));
model.addAttribute("loansharks", LoanShark.findLoanSharkEntries(page == null ? 0 : (page.intValue() - 1) * sizeNo, sizeNo));
float nrOfPages = (float) LoanShark.countLoanSharks() / sizeNo;
modelMap.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages));
model.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages));
} else {
modelMap.addAttribute("loansharks", LoanShark.findAllLoanSharks());
model.addAttribute("loansharks", LoanShark.findAllLoanSharks());
}
return "loanshark/list";
return "loansharks/list";
}
@RequestMapping(method = RequestMethod.PUT)
public String SharkController.update(@Valid LoanShark loanShark, BindingResult result, ModelMap modelMap) {
if (loanShark == null) throw new IllegalArgumentException("A loanShark is required");
public String SharkController.update(@Valid LoanShark loanShark, BindingResult result, Model model) {
if (result.hasErrors()) {
modelMap.addAttribute("loanShark", loanShark);
return "loanshark/update";
model.addAttribute("loanShark", loanShark);
return "loansharks/update";
}
loanShark.merge();
return "redirect:/loanshark/" + loanShark.getId();
return "redirect:/loansharks/" + loanShark.getId();
}
@RequestMapping(value = "/loanshark/{id}/form", method = RequestMethod.GET)
public String SharkController.updateForm(@PathVariable("id") Long id, ModelMap modelMap) {
if (id == null) throw new IllegalArgumentException("An Identifier is required");
modelMap.addAttribute("loanShark", LoanShark.findLoanShark(id));
return "loanshark/update";
@RequestMapping(value = "/{id}", params = "form", method = RequestMethod.GET)
public String SharkController.updateForm(@PathVariable("id") Long id, Model model) {
model.addAttribute("loanShark", LoanShark.findLoanShark(id));
return "loansharks/update";
}
@RequestMapping(value = "/loanshark/{id}", method = RequestMethod.DELETE)
public String SharkController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size) {
if (id == null) throw new IllegalArgumentException("An Identifier is required");
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
public String SharkController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model model) {
LoanShark.findLoanShark(id).remove();
return "redirect:/loanshark?page=" + ((page == null) ? "1" : page.toString()) + "&size=" + ((size == null) ? "10" : size.toString());
model.addAttribute("page", (page == null) ? "1" : page.toString());
model.addAttribute("size", (size == null) ? "10" : size.toString());
return "redirect:/loansharks?page=" + ((page == null) ? "1" : page.toString()) + "&size=" + ((size == null) ? "10" : size.toString());
}
@RequestMapping(value = "find/ByName/form", method = RequestMethod.GET)
public String SharkController.findLoanSharksByNameForm(ModelMap modelMap) {
return "loanshark/findLoanSharksByName";
@RequestMapping(params = { "find=ByName", "form" }, method = RequestMethod.GET)
public String SharkController.findLoanSharksByNameForm(Model model) {
return "loansharks/findLoanSharksByName";
}
@RequestMapping(value = "find/ByName", method = RequestMethod.GET)
public String SharkController.findLoanSharksByName(@RequestParam("name") String name, ModelMap modelMap) {
if (name == null || name.length() == 0) throw new IllegalArgumentException("A Name is required.");
modelMap.addAttribute("loansharks", LoanShark.findLoanSharksByName(name).getResultList());
return "loanshark/list";
@RequestMapping(params = "find=ByName", method = RequestMethod.GET)
public String SharkController.findLoanSharksByName(@RequestParam("name") String name, Model model) {
model.addAttribute("loansharks", LoanShark.findLoanSharksByName(name).getResultList());
return "loansharks/list";
}
Converter<LoanShark, String> SharkController.getLoanSharkConverter() {
return new Converter<LoanShark, String>() {
public String convert(LoanShark loanShark) {
return new StringBuilder().append(loanShark.getName()).append(" ").append(loanShark.getCounter()).append(" ").append(loanShark.getAverageRate()).toString();
}
};
}
@InitBinder
void SharkController.registerConverters(WebDataBinder binder) {
if (binder.getConversionService() instanceof GenericConversionService) {
GenericConversionService conversionService = (GenericConversionService) binder.getConversionService();
conversionService.addConverter(getLoanSharkConverter());
}
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET, headers = "Accept=application/json")
@ResponseBody
public String SharkController.showJson(@PathVariable("id") Long id) {
return LoanShark.findLoanShark(id).toJson();
}
@RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json")
public ResponseEntity<String> SharkController.createFromJson(@RequestBody String json) {
LoanShark.fromJsonToLoanShark(json).persist();
return new ResponseEntity<String>("LoanShark created", HttpStatus.CREATED);
}
@RequestMapping(headers = "Accept=application/json")
@ResponseBody
public String SharkController.listJson() {
return LoanShark.toJsonArray(LoanShark.findAllLoanSharks());
}
@RequestMapping(value = "/jsonArray", method = RequestMethod.POST, headers = "Accept=application/json")
public ResponseEntity<String> SharkController.createFromJsonArray(@RequestBody String json) {
for (LoanShark loanshark: LoanShark.fromJsonArrayToLoanSharks(json)) {
loanshark.persist();
}
return new ResponseEntity<String>("LoanShark created", HttpStatus.CREATED);
}
}

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL">
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>

View File

@@ -1,16 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
<import resource="integrationContext.xml" />
<!--
<import resource="integrationContext.xml"/>
<!--
This will automatically locate any and all property files you have
within your classpath, provided they fall under the META-INF/spring
directory. The located property files are parsed and their values can
then be used within application context files in the form of
${propertyKey}.
-->
<context:property-placeholder location="classpath*:META-INF/spring/*.properties"/>
<!--
<context:property-placeholder location="classpath*:META-INF/spring/*.properties"/>
<!--
Turn on AspectJ @Configurable support. As a result, any time you
instantiate an object, Spring will attempt to perform dependency
injection on that object. This occurs for instantiation via the "new"
@@ -23,9 +22,8 @@
method). Roo applications use this useful feature in a number of
areas, such as @PersistenceContext injection into entities.
-->
<context:spring-configured/>
<!--
<context:spring-configured/>
<!--
This declaration will cause Spring to locate every @Component,
@Repository and @Service in your application. In practical terms this
allows you to write a POJO and then simply annotate the new POJO as an
@@ -46,12 +44,11 @@
The most commonly used annotation is @Autowired, which instructs Spring to
dependency inject an object into your class.
-->
<context:component-scan base-package="org.springframework.integration.samples.loanbroker.loanshark">
<context:exclude-filter expression=".*_Roo_.*" type="regex"/>
<context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
</context:component-scan>
<bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" id="dataSource">
<context:component-scan base-package="org.springframework.integration.samples.loanbroker.loanshark">
<context:exclude-filter expression=".*_Roo_.*" type="regex"/>
<context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
</context:component-scan>
<bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" id="dataSource">
<property name="driverClassName" value="${database.driverClassName}"/>
<property name="url" value="${database.url}"/>
<property name="username" value="${database.username}"/>

View File

@@ -1,5 +1,5 @@
#Updated at Wed Mar 24 10:09:33 PDT 2010
#Wed Mar 24 10:09:33 PDT 2010
#Updated at Tue Sep 07 17:11:44 EDT 2010
#Tue Sep 07 17:11:44 EDT 2010
database.password=
database.url=jdbc\:hsqldb\:mem\:loanshark
database.username=sa

View File

@@ -1,7 +1,7 @@
#Updated at Wed Mar 24 10:09:35 PDT 2010
#Wed Mar 24 10:09:35 PDT 2010
#Updated at Tue Sep 07 17:11:52 EDT 2010
#Tue Sep 07 17:11:52 EDT 2010
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.rootLogger=DEBUG, stdout, R
log4j.rootLogger=DEBUG, stdout
log4j.appender.R.File=application.log
log4j.appender.R.MaxFileSize=100KB
log4j.appender.R.layout=org.apache.log4j.PatternLayout

View File

@@ -1 +1 @@
styleSheet=static/styles/alt.css
styleSheet=resources/styles/alt.css

View File

@@ -1 +1 @@
styleSheet=static/styles/standard.css
styleSheet=resources/styles/standard.css

View File

@@ -1,7 +1,14 @@
#Updated at test Wed Mar 24 10:09:34 PDT 2010
#Wed Mar 24 10:09:34 PDT 2010
application.name=Loanshark
label.loanshark=Loan Shark
label.loansharks=Loan Sharks
label.name=Name
menu.category.web_mvc_jsp_loanshark_category.label=Loan Shark
#Updated at Tue Sep 07 17:11:50 EDT 2010
#Tue Sep 07 17:11:50 EDT 2010
label_org_springframework_integration_samples_loanbroker_loanshark_domain_loanshark_averagerate=Average Rate
menu_item_loanshark_new_label=Loan Shark
menu_item_loanshark_name_label=Name
label_org_springframework_integration_samples_loanbroker_loanshark_domain_loanshark_version=Version
application_name=Loanshark
label_org_springframework_integration_samples_loanbroker_loanshark_domain_loanshark_name=Name
label_org_springframework_integration_samples_loanbroker_loanshark_domain_loanshark_plural=Loan Sharks
label_org_springframework_integration_samples_loanbroker_loanshark_domain_loanshark=Loan Shark
menu_category_loanshark_label=Loan Shark
label_org_springframework_integration_samples_loanbroker_loanshark_domain_loanshark_id=Id
menu_item_loanshark_list_label=Loan Sharks
label_org_springframework_integration_samples_loanbroker_loanshark_domain_loanshark_counter=Counter

View File

@@ -1,95 +1,98 @@
#menu
global.menu.new=Create new {0}
global.menu.list=List all {0}
global.menu.find=Find by {0}
global.language.switch=Switch language to {0}
global.language=Language
global.sponsored=Sponsored by SpringSource
global.theme=Theme
global.theme.alt=alt
global.theme.standard=standard
global_menu_new=Create new {0}
global_menu_list=List all {0}
global_menu_find=Find by {0}
global_language_switch=Switch language to {0}
global_language=Language
global_sponsored=Sponsored by SpringSource
global_theme=Theme
global_theme_alt=alt
global_theme_standard=standard
global_generic={0}
#welcome page
welcome.titlepane=Welcome to {0}
welcome.h3=Welcome to {0}
welcome.text=Spring Roo provides interactive, lightweight and user customizable tooling that enables rapid delivery of high performance enterprise Java applications.
welcome_titlepane=Welcome to {0}
welcome_h3=Welcome to {0}
welcome_text=Spring Roo provides interactive, lightweight and user customizable tooling that enables rapid delivery of high performance enterprise Java applications.
#entity labels
entity.list.all=List all {0}
entity.show=Show {0}
entity.create=Create new {0}
entity.update=Update {0}
entity.delete=Delete {0}
entity.find=Find by {0}
entity.not.found=No {0} found.
entity.not.found.single=No {0} found with this id.
entity_list_all=List all {0}
entity_show=Show {0}
entity_create=Create new {0}
entity_update=Update {0}
entity_delete=Delete {0}
entity_find=Find by {0}
entity_not_found=No {0} found.
entity_not_found_single=No {0} found with this id.
entity_dependency_required=The following dependencies need to be created first:
entity_reference_not_managed=This relationship is managed from the {0} side.
#button labels
button.home=Home
button.save=Save
button.update=Update
button.find=Find
button.cancel=Cancel
button.proceed=Proceed
button.submit=Submit
button.reset=Reset
button.end=End
button.showmessage=Show Message
button.showstacktrace=Show Stack Trace
button.showcookie=Show Cookie
button_home=Home
button_save=Save
button_update=Update
button_find=Find
button_cancel=Cancel
button_proceed=Proceed
button_submit=Submit
button_reset=Reset
button_end=End
button_showmessage=Show Message
button_showstacktrace=Show Stack Trace
button_showcookie=Show Cookie
#field labels
field.simple.validation=Enter {0} {1}
field.invalid.email=Please enter a valid email
field.invalid.number=Number with \\'-\\' or \\'.\\' allowed
field.invalid.integer=Integer numbers only
field.invalid=Please enter valid {0}
field.required=required
field_simple_validation=Enter {0} {1}
field_invalid_email=Please enter a valid email
field_invalid_number=Number with \\'-\\' or \\'.\\' allowed
field_invalid_integer=Integer numbers only
field_invalid=Please enter valid {0}
field_required=required
#list labels
list.first=First Page
list.next=Next Page
list.previous=Previous Page
list.last=Last Page
list.page=Page {0} of {1}
list.size=List results per page:
list_first=First Page
list_next=Next Page
list_previous=Previous Page
list_last=Last Page
list_page=Page {0} of {1}
list_size=List results per page:
#selenium
selenium.menu.test.suite=Test Suite
selenium_menu_test_suite=Test Suite
#exception
exception.message=Exception Message
exception.stacktrace=Exception Stack Trace
exception.cookie=Cookies
exception.details=Details
exception_message=Exception Message
exception_stacktrace=Exception Stack Trace
exception_cookie=Cookies
exception_details=Details
#dataAccessFailure.jspx
error.dataaccessfailure.title=Data access failure
error.dataaccessfailure.problemdescription=Sorry, a problem occurred while accessing the database.
#dataAccessFailure_jspx
error_dataaccessfailure_title=Data access failure
error_dataaccessfailure_problemdescription=Sorry, a problem occurred while accessing the database.
#resourceNotFound.jspx
error.resourcenotfound.title=Requested Resource Not Found
error.resourcenotfound.problemdescription=Sorry, we did not find the resource you were looking for.
#resourceNotFound_jspx
error_resourcenotfound_title=Requested Resource Not Found
error_resourcenotfound_problemdescription=Sorry, we did not find the resource you were looking for.
#uncaughtException.jspx
error.uncaughtexception.title=Internal Error
error.uncaughtexception.problemdescription=Sorry, we encountered an internal error.
#uncaughtException_jspx
error_uncaughtexception_title=Internal Error
error_uncaughtexception_problemdescription=Sorry, we encountered an internal error.
#webflow
webflow.menu.enter=Enter {0} WebFlow
webflow.state1.title=Spring WebFlow - View State One
webflow.state1.message=This is a simple example to get started with Spring Web Flow. The buttons below lead you to another view state (Proceed) or to an end state.
webflow.state2.title=Spring WebFlow - View State Two
webflow.state2.message=This is a simple example to get started with Spring Web Flow. The buttons below lead you to another view state (Proceed) or to an end state.
webflow.endstate.title=Spring WebFlow - End State
webflow.endstate.message=You have now reached the end of this flow.
webflow_menu_enter=Enter {0} WebFlow
webflow_state1_title=Spring WebFlow - View State One
webflow_state1_message=This is a simple example to get started with Spring Web Flow. The buttons below lead you to another view state (Proceed) or to an end state.
webflow_state2_title=Spring WebFlow - View State Two
webflow_state2_message=This is a simple example to get started with Spring Web Flow. The buttons below lead you to another view state (Proceed) or to an end state.
webflow_endstate_title=Spring WebFlow - End State
webflow_endstate_message=You have now reached the end of this flow.
#security
security.login.title=Spring Security Login
security.login.message=You have tried to access a protected area of this application. By default you can login as "admin", with a password of "admin".
security.login.form.name=Name
security.login.form.name.message=Enter your name
security.login.form.password=Password
security.login.form.password.message=Enter your password
security.login.unsuccessful=Your login attempt was not successful, try again. Reason:
security.logout=Logout
security_login_title=Spring Security Login
security_login_message=You have tried to access a protected area of this application. By default you can login as "admin", with a password of "admin".
security_login_form_name=Name
security_login_form_name_message=Enter your name
security_login_form_password=Password
security_login_form_password_message=Enter your password
security_login_unsuccessful=Your login attempt was not successful, try again. Reason:
security_logout=Logout

View File

@@ -1,96 +0,0 @@
#menu
global.menu.new={0} erstellen
global.menu.list=Alle {0} finden
global.menu.find=Suchen: {0}
global.language.switch=Sprache nach {0} <20>ndern
global.language=Sprache
global.sponsored=Gesponsert von SpringSource
global.theme=Thema
global.theme.alt=alt
global.theme.standard=standard
#welcome page
welcome.titlepane=Willkommen zu {0}
welcome.h3=Willkommen zu {0}
welcome.text=Spring Roo bietet ein interaktives, leichtgewichtiges und vom Anwender anpassbares Tool, welches die schnelle Erstellung von performanten Enterprise Java Applikationen erm<72>glicht.
#entity labels
entity.list.all=Liste alle {0}
entity.show=Zeige {0}
entity.create={0} erstellen
entity.update={0} aktualisieren
entity.delete={0} l<>schen
entity.find=Finde {0}
entity.not.found={0} konnte nicht gefunden werden.
entity.not.found.single={0} konnte nicht gefunden werden mit dieser ID.
#button labels
button.home=Home
button.save=Speichern
button.update=Aktualisieren
button.find=Finde
button.cancel=Abbrechen
button.proceed=Fortfahren
button.submit=Absenden
button.reset=Zur<EFBFBD>cksetzen
button.end=Ende
button.showmessage=Meldung Anzeigen
button.showstacktrace=Stack Trace Anzeigen
button.showcookie=Cookie Anzeigen
#field labels
field.simple.validation=Bitte {0} eingeben {1}
field.invalid.email=E-Mail Adresse muss korrekt sein
field.invalid.number=Nummern mit \\'-\\' oder \\'.\\' erlaubt
field.invalid.integer=Nur Integer-Zahlen erlaubt
field.required=Pflichtfeld
#list labels
list.first=Erste Seite
list.next=N<EFBFBD>chste Seite
list.previous=Vorhergehende Seite
list.last=Letzte Seite
list.page=Seite {0} von {1}
list.size=Ergebnisse pro Seite:
#webflow
webflow.menu.enter= {0} WebFlow starten
#selenium
selenium.menu.test.suite=Testf<EFBFBD>lle
#exception
exception.message=Exception Meldung
exception.stacktrace=Exception Stack Trace
exception.details=Details
#dataAccessFailure.jspx
error.dataaccessfailure.title=Datenzugriff fehlgeschlagen
error.dataaccessfailure.problemdescription=Ein Problem ist aufgetreten w<>hrend des Datenzugriffs.
#resourceNotFound.jspx
error.resourcenotfound.title=Angeforderte Ressource nicht gefunden
error.resourcenotfound.problemdescription=Die angeforderte Ressource konnte leider nicht gefunden werden.
#uncaughtException.jspx
error.uncaughtexception.title=Interner Fehler
error.uncaughtexception.problemdescription=Leider ist ein interner Fehler aufgetreten.
#webflow
webflow.menu.enter=WebFlow {0} starten
webflow.state1.title=Spring WebFlow - Seite (View State) Eins
webflow.state1.message=Dies ist ein einfaches Beispiel um Spring Webflow zu demonstrieren. Die Buttons unten f<>hren Sie zum n<>chsten Schritt (Fortfahren) oder zum Ende (Ende).
webflow.state2.title=Spring WebFlow - Seite (View State) Zwei
webflow.state2.message=Dies ist ein einfaches Beispiel um Spring Webflow zu demonstrieren. Der Button unten f<>hrt Sie zum Ende (Ende) des Flows.
webflow.endstate.title=Spring WebFlow - Letzte Seite (End State)
webflow.endstate.message=Sie haben das Ende des Flows erreicht.
#security
security.login.title=Spring Security Login
security.login.message=Sie haben versucht eine gesicherte Seite aufzurufen. Standardm<64><6D>ig k<>nnen Sie als "admin", mit "admin" als Passwort einloggen.
security.login.form.name=Name
security.login.form.name.message=Geben Sie Ihren Namen ein
security.login.form.password=Passwort
security.login.form.password.message=Geben Sie Ihr Passwort ein
security.login.unsuccessful=Ihre Anmeldung war nicht erfolgreich, bitte versuchen Sie es noch einmal. Grund:
security.logout=Ausloggen

View File

@@ -1,95 +0,0 @@
#menu
global.menu.new=Crear nuevo {0}
global.menu.list=Listar {0}
global.menu.find=Buscar por {0}
global.language.switch=Cambiar idioma a {0}
global.language=Idioma
global.sponsored=Sponsored by SpringSource
global.theme=Tema
global.theme.alt=alt
global.theme.standard=estandarte
#welcome page
welcome.titlepane=Bienvenido a {0}
welcome.h3=Bienvenido a {0}
welcome.text=Spring Roo proporciona herramientas interactivas, ligeras y adaptables al usuario que permiten la r<>pida entrega de aplicaciones empresariales Java de alto rendimiento.
#entity labels
entity.list.all=Listar {0}
entity.show=Mostrar {0}
entity.create=Crear nuevo {0}
entity.update=Actualizar {0}
entity.delete=Borrar {0}
entity.find={0}
entity.not.found=No se han encontrado {0}.
entity.not.found.single=No se han encontrado {0} con este id.
#button labels
button.home=Inicio
button.save=Guardar
button.update=Actualizar
button.find=Buscar
button.cancel=Cancelar
button.proceed=Proceder
button.submit=Enviar
button.reset=Reiniciar
button.end=Fin
button.showmessage=Mostrar Mensaje
button.showstacktrace=Mostar Stack Trace
button.showcookie=Mostrar Cookie
#field labels
field.simple.validation=Introduzca {0} {1}
field.invalid.email=Por favor, introduzca un email v<>lido
field.invalid.number=N<EFBFBD>meros con \\'-\\' o \\'.\\' permitidos
field.invalid.integer=S<EFBFBD>lo n<>meros enteros
field.invalid=Por favor, introduzca un {0} v<>lido
field.required=requerido
#list labels
list.first=Primera P<>gina
list.next=P<EFBFBD>gina Siguiente
list.previous=P<EFBFBD>gina Anterior
list.last=<EFBFBD>ltima p<>gina
list.page=P<EFBFBD>gina {0} de {1}
list.size=Resultados por p<>gina:
#selenium
selenium.menu.test.suite=Bater<EFBFBD>a de pruebas
#exception
exception.message=Mensaje de la Excepci<63>n
exception.stacktrace=Stack Trace de la Excepci<63>n
exception.cookie=Cookies
exception.details=Detalles
#dataAccessFailure.jspx
error.dataaccessfailure.title=Error de acceso a datos
error.dataaccessfailure.problemdescription=Lo sentimos, ha ocurrido un problema al acceder a la base de datos.
#resourceNotFound.jspx
error.resourcenotfound.title=Recurso Solicitado No Encontrado
error.resourcenotfound.problemdescription=Lo sentimos, no hemos encontrado el recurso que buscaba.
#uncaughtException.jspx
error.uncaughtexception.title=Error Interno
error.uncaughtexception.problemdescription=Lo sentimos, ha ocurrido un error interno.
#webflow
webflow.menu.enter=Empezar WebFlow {0}
webflow.state1.title=Spring WebFlow - View State Uno
webflow.state1.message=Este es un simple ejemplo para empezar con Spring Web Flow. Los botones de abajo llevan al siguiente estado (Proceder) o a al estado final.
webflow.state2.title=Spring WebFlow - View State Dos
webflow.state2.message=Este es un simple ejemplo para empezar con Spring Web Flow. El bot<6F>n de abajo lleva al fin del flujo (end state).
webflow.endstate.title=Spring WebFlow - Estado final (End State)
webflow.endstate.message=Ha llegado al final del flujo.
#security
security.login.title=Spring Security Login
security.login.message=Ha intentado acceder a una <20>rea protegida de esta aplicaci<63>n. Por defecto, puede iniciar sesi<73>n con "admin" y contrase<73>a "admin".
security.login.form.name=Nombre
security.login.form.name.message=Introduzca su nombre
security.login.form.password=Contrase<EFBFBD>a
security.login.form.password.message=Introduzca su constrase<73>a
security.login.unsuccessful=Su intento de inicio de sesi<73>n no ha tenido <20>xito, int<6E>ntelo de nuevo. Raz<61>n:
security.logout=Cerrar sesi<73>n

View File

@@ -1,95 +0,0 @@
#menu
global.menu.new=Crea nuovo {0}
global.menu.list=Elenca tutti {0}
global.menu.find=Trova per {0}
global.language.switch=Cambia linguaggio in {0}
global.language=Lingua
global.sponsored=Sponsorizzato da SpringSource
global.theme=Tema
global.theme.alt=alt
global.theme.standard=standard
#welcome page
welcome.titlepane=Benvenuto in {0}
welcome.h3=Benvenuto in {0}
welcome.text=Spring Roo fornisce un tool interattivo, leggero e personalizzabile dall'utente, che abilita lo sviluppo rapido di applicazioni Java enterprise ad alte prestazioni.
#entity labels
entity.list.all=Elenca tutti {0}
entity.show=Mostra {0}
entity.create=Crea nuovo {0}
entity.update=Aggiorna {0}
entity.delete=Elimina {0}
entity.find={0}
entity.not.found=Nessun {0} trovato.
entity.not.found.single=Nessun {0} trovato con questo id.
#button labels
button.home=Home
button.save=Salva
button.update=Aggiorna
button.find=Trova
button.cancel=Cancella
button.proceed=Procedi
button.submit=Invia
button.reset=Azzera
button.end=Fine
button.showmessage=Mostra Messaggio
button.showstacktrace=Mostra Stack Trace
button.showcookie=Mostra Cookie
#field labels
field.simple.validation=Inserisci {0} {1}
field.invalid.email=Si prega di inserire un indirizzo email valido
field.invalid.number=Numero con \\'-\\' o \\'.\\' ammesso
field.invalid.integer=Solo numeri interi
field.invalid=Si prega di inserire dei validi {0}
field.required=richiesto
#list labels
list.first=Prima pagina
list.next=Prossima Pagina
list.previous=Pagina Precedente
list.last=Ultima Pagina
list.page=Pagina {0} di {1}
list.size=Elenco risultati per pagina:
#selenium
selenium.menu.test.suite=Test Suite
#exception
exception.message=Messaggio Eccezione
exception.stacktrace=Stack Trace Eccezione
exception.cookie=Cookies
exception.details=Dettagli
#dataAccessFailure.jspx
error.dataaccessfailure.title=Fallito l'accesso ai dati
error.dataaccessfailure.problemdescription=Spiacente, si <20> verificato un problema durante l'accesso al database.
#resourceNotFound.jspx
error.resourcenotfound.title=Risorsa richiesta non trovata
error.resourcenotfound.problemdescription=Spiacente, non troviamo la risorsa che stai cercando.
#uncaughtException.jspx
error.uncaughtexception.title=Errore Interno
error.uncaughtexception.problemdescription=Spiacente, abbiamo incontrato un errore interno.
#webflow
webflow.menu.enter=Inserire {0} WebFlow
webflow.state1.title=Spring WebFlow - Stato View Uno
webflow.state1.message=Questo <20> un semplice esempio con Spring Web Flow. I pulsanti sotto conducono ad un altro view state (Procedi) o ad uno stato finale.
webflow.state2.title=Spring WebFlow - Stato View Due
webflow.state2.message=Questo <20> un semplice esempio per iniziare con Spring Web Flow. I pulsanti sotto conducono ad un altro stato view (Procedi) o ad uno stato finale.
webflow.endstate.title=Spring WebFlow - Stato finale
webflow.endstate.message=Hai raggiunto la fine di questo flusso.
#security
security.login.title=Spring Security Login
security.login.message=Hai provato ad accedere ad un area protetta di questa applicazione. Di default puoi fare il login come "admin", con password "admin".
security.login.form.name=Nome
security.login.form.name.message=Inserisci il tuo nome
security.login.form.password=Password
security.login.form.password.message=Inserisci la password
security.login.unsuccessful=Il tentativo di login non ha avuto successo, prova ancora. Motivo:
security.logout=Logout

View File

@@ -1,96 +0,0 @@
#menu
global.menu.new={0} maken
global.menu.list=Toon alle {0}
global.menu.find=Vind op {0}
global.language.switch=Wissel taal naar: {0}
global.language=Taal
global.sponsored=Gesponsord door SpringSource
global.theme=Thema
global.theme.alt=alt
global.theme.standard=standaard
#welcome page
welcome.titlepane=Welkom bij {0}
welcome.h3=Welkom bij {0}
welcome.text=Spring Roo levert interactieve, lichtgewicht en door de gebruiker aanpasbare tools waarmee snel hoogwaardige Enterprise Java applicaties gemaakt kunnen worden.
#entity labels
entity.list.all=Toon alle {0}
entity.show=Toon {0}
entity.create={0} maken
entity.update=Bewerk {0}
entity.delete=Verwijder {0}
entity.find=Zoek {0}
entity.not.found=Geen {0} gevonden.
entity.not.found.single=Geen {0} gevonden met dit id.
#button labels
button.home=Home
button.save=Sla op
button.update=Bewerk
button.find=Zoek
button.cancel=Annuleer
button.proceed=Ga door
button.submit=Verstuur
button.reset=Herstel
button.end=Einde
button.showmessage=Toon bericht
button.showstacktrace=Toon stack trace
button.showcookie=Toon cookie
#field labels
field.simple.validation=Voer {0} {1} in
field.invalid.email=Voer een geldig email adres in
field.invalid.number=Getal met \\'-\\' or \\',\\' toegestaan
field.invalid.integer=Alleen gehele getallen
field.invalid=Voer een geldige {0} in
field.required=verplicht
#list labels
list.first=Eerste pagina
list.next=Volgende pagina
list.previous=Vorige pagina
list.last=Laatste pagina
list.page=Pagina {0} van {1}
list.size=Resultaten per pagina:
#selenium
selenium.menu.test.suite=Test Suite
#exception
#intentionally left the two exception entries below in English as Dutch translations of technical terms are confusing to Dutch developers
exception.message=Exception Message
exception.stacktrace=Exception Stack Trace
exception.cookie=Cookies
exception.details=Details
#dataAccessFailure.jspx
error.dataaccessfailure.title=Data toegang gefaald
error.dataaccessfailure.problemdescription=Sorry, er heeft zich een probleem voorgedaan bij het benaderen van de database.
#resourceNotFound.jspx
error.resourcenotfound.title=Gevraagde bron is niet gevonden
error.resourcenotfound.problemdescription=Sorry, de gevraagde bron is niet gevonden
#uncaughtException.jspx
error.uncaughtexception.title=Interne fout
error.uncaughtexception.problemdescription=Sorry, het systeem heeft een intern probleem aangetroffen
#webflow
webflow.menu.enter=Ga webflow {0} in
webflow.state1.title=Spring WebFlow - Bekijk eerste status
webflow.state1.message=Dit is een simpel voorbeeld van hoe met Spring Web Flow te beginnen. De knoppen hieronder leiden je naar een andere view state (Proceed), of naar een eind state.
webflow.state2.title=Spring WebFlow - Bekijk tweede status
webflow.state2.message=Dit is een simpel voorbeeld van hoe met Spring Web Flow te beginnen. De knoppen hieronder leiden je naar een andere view state (Proceed), of naar een eind state.
webflow.endstate.title=Spring WebFlow - status einde
webflow.endstate.message=U heeft het einde van deze flow bereikt.
#security
security.login.title=Spring Security Login
security.login.message=U hebt geprobeerd een beveiligd gedeelte van de applicatie te benaderen. De standaard login is "admin", met wachtwoord "admin".
security.login.form.name=Naam
security.login.form.name.message=Voer uw naam in
security.login.form.password=Wachtwoord
security.login.form.password.message=Voer uw wachtwoord in
security.login.unsuccessful=Uw login poging was niet succesvoal, probeer het nogmaals. Reden:
security.logout=Afmelden

View File

@@ -1,96 +0,0 @@
#menu
global.menu.new=Skapa ny {0}
global.menu.list=Visa alla {0}
global.menu.find=S<EFBFBD>k p<> {0}
global.language.switch=Byt spr<70>k till {0}
global.language=Spr<EFBFBD>k
global.sponsored=Sponsrad av SpringSource
global.theme=Tema
global.theme.alt=alt
global.theme.standard=standard
#welcome page
welcome.titlepane=V<EFBFBD>lkommen till {0}
welcome.h3=V<EFBFBD>lkommen till {0}
welcome.text=Spring Roo ger interaktiva, l<>ttviktiga verktyg som kan anpassas av anv<6E>ndaren och m<>jligg<67>r snabb leverans av h<>gpresterande enterprise Java applikationer.
#entity labels
entity.list.all=Visa alla {0}
entity.show=Visa {0}
entity.create=Skapa ny {0}
entity.update=Uppdatera {0}
entity.delete=Ta bort {0}
entity.find=S<EFBFBD>k p<> {0}
entity.not.found=Ingen {0} hittades.
entity.not.found.single=Ingen {0} hittades med detta id.
#button labels
button.home=Hem
button.save=Spara
button.update=Uppdatera
button.find=Hitta
button.cancel=Avbryt
button.proceed=Forts<EFBFBD>tt
button.submit=Skicka
button.reset=B<EFBFBD>rja om
button.end=Sista
button.showmessage=Visa meddelande
button.showstacktrace=Visa Stack Trace
button.showcookie=Visa Cookie
#field labels
field.simple.validation=Ange {0} {1}
field.invalid.email=Var v<>nlig anv<6E>nd en giltig emailadress
field.invalid.number=Siffra med \\'-\\' eller \\'.\\' till<6C>ten
field.invalid.integer=Endast heltal
field.invalid=Var v<>nlig anv<6E>d en giltig {0}
field.required=obligatoriskt
#list labels
list.first=F<EFBFBD>rsta sidan
list.next=N<EFBFBD>sta sida
list.previous=F<EFBFBD>rra sidan
list.last=Sista sidan
list.page=Sida {0} av {1}
list.size=Visa antal resultat per sida:
#selenium
selenium.menu.test.suite=Test Svit
#exception
exception.message=Undantagsmeddelande
exception.stacktrace=Undantag Stack Trace
exception.cookie=Cookies
exception.details=Detaljer
#dataAccessFailure.jspx
error.dataaccessfailure.title=Fel vid datal<61>sning
error.dataaccessfailure.problemdescription=Beklagar, ett problem uppstod vid l<>sning av databasen.
#resourceNotFound.jspx
error.resourcenotfound.title=Efterfr<EFBFBD>gad tillg<6C>ng hittades inte
error.resourcenotfound.problemdescription=Beklagar, vi kunde inte hitta tillg<6C>ngen du efterfr<66>gade.
#uncaughtException.jspx
error.uncaughtexception.title=Internt fel
error.uncaughtexception.problemdescription=Beklagar, ett internt fel intr<74>ffade.
#webflow
webflow.menu.enter=B<EFBFBD>rja {0} WebFlow
webflow.state1.title=Spring WebFlow - See tillst<73>nd ett
webflow.state1.message=Det h<>r <20>r ett enkelt exempel p<> hur du kommer ig<69>ng med Spring Web Flow. Knapparna nedan leder dig till ett annat tillst<73>nd (Forts<74>tt) eller till sluttillst<73>ndet.
webflow.state2.title=Spring WebFlow - See tillst<73>nd tv<74>
webflow.state2.message=Det h<>r <20>r ett enkelt exempel p<> hur du kommer ig<69>ng med Spring Web Flow. Knapparna nedan leder dig till ett annat tillst<73>nd (Forts<74>tt) eller till sluttillst<73>ndet.
webflow.endstate.title=Spring WebFlow - Sluttillst<73>ndet
webflow.endstate.message=Du har nu kommit till slutet p<> detta fl<66>de
#security
security.login.title=Spring Security Login
security.login.message=Du har f<>rs<72>kt komma in p<> en skyddad del av den h<>r applikationen. Som standard kan du logga in som "admin", med l<>senord "admin".
security.login.form.name=Namn
security.login.form.name.message=Ange ditt namn
security.login.form.password=L<EFBFBD>senord
security.login.form.password.message=Ange ditt l<>senord
security.login.unsuccessful=Ditt f<>rs<72>k att logga in misslyckades, f<>rs<72>k igen. Anledning:
security.logout=Logga ut

View File

@@ -1,71 +1,27 @@
<html
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:tiles="http://tiles.apache.org/tags-tiles"
xmlns:form="http://www.springframework.org/tags/form"
xmlns:spring="http://www.springframework.org/tags"
xmlns:roo="urn:jsptagdir:/WEB-INF/tags" >
<html xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:tiles="http://tiles.apache.org/tags-tiles" xmlns:spring="http://www.springframework.org/tags" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" >
<jsp:output doctype-root-element="HTML" doctype-system="about:legacy-compat" />
<jsp:directive.page contentType="text/html;charset=UTF-8" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<spring:theme code="styleSheet" var="roo_css"/>
<spring:url value="/${roo_css}" var="roo_css_url"/>
<spring:url value="/resources/dojo/dojo.js" var="dojo_url"/>
<spring:url value="/resources/dijit/themes/tundra/tundra.css" var="tundra_url"/>
<spring:url value="/resources/spring/Spring.js" var="spring_url"/>
<spring:url value="/resources/spring/Spring-Dojo.js" var="spring_dojo_url"/>
<spring:url value="/static/images/favicon.ico" var="favicon" />
<link rel="stylesheet" type="text/css" media="screen" href="${roo_css_url}"><!-- //required for FF3 and Opera --></link>
<link rel="stylesheet" type="text/css" href="${tundra_url}"><!-- //required for FF3 and Opera --></link>
<link rel="SHORTCUT ICON" href="${favicon}" />
<script type="text/javascript"><![CDATA[
function readCookie(name) {
var nameEQ = name + '=';
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
var djConfig={locale:readCookie('locale')};
]]>
</script>
<script src="${dojo_url}" type="text/javascript" ><!-- //required for FF3 and Opera --></script>
<script src="${spring_url}" type="text/javascript"><!-- //required for FF3 and Opera --></script>
<script src="${spring_dojo_url}" type="text/javascript"><!-- //required for FF3 and Opera --></script>
<script language="JavaScript" type="text/javascript">dojo.require("dojo.parser");</script>
<spring:message code="application.name" var="app_name"/>
<title><spring:message code="welcome.h3" arguments="${app_name}" /></title>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<util:load-scripts />
<spring:message code="application_name" var="app_name"/>
<title><spring:message code="welcome_h3" arguments="${app_name}" /></title>
</head>
<body class="tundra spring">
<body class="tundra spring">
<div id="wrapper">
<tiles:insertAttribute name="header" ignore="true" />
<tiles:insertAttribute name="menu" ignore="true" />
<div id="main">
<tiles:insertAttribute name="body" />
<div id="footer">
<spring:url var="home" value="/" />
<span><a href="${home}"><spring:message code="button.home"/></a></span>
<c:if test="${pageContext.request.userPrincipal != null}">
<c:out value=" | "/>
<span>
<spring:url var="logout" value="/static/j_spring_security_logout" />
<a href="${logout}"><spring:message code="security.logout" /></a>
</span>
</c:if>
<roo:language />
<roo:theme />
<spring:url var="logo" value="/static/images/springsource-logo.png" />
<spring:message code="global.sponsored" var="sponsored"/>
<span><a href="http://springsource.com" title="${sponsored}"><img src="${logo}" alt="${sponsored}" align="right"/></a></span>
</div>
</div>
<div id="main">
<tiles:insertAttribute name="body"/>
<tiles:insertAttribute name="footer" ignore="true"/>
</div>
</div>
</body>
</html>

View File

@@ -4,11 +4,16 @@
"http://tiles.apache.org/dtds/tiles-config_2_1.dtd">
<tiles-definitions>
<definition name="default" template="/WEB-INF/layouts/default.jspx">
<put-attribute name="menu" value="/WEB-INF/views/menu.jspx" />
</definition>
<definition name="public" template="/WEB-INF/layouts/default.jspx" />
<definition name="default" template="/WEB-INF/layouts/default.jspx">
<put-attribute name="header" value="/WEB-INF/views/header.jspx" />
<put-attribute name="menu" value="/WEB-INF/views/menu.jspx" />
<put-attribute name="footer" value="/WEB-INF/views/footer.jspx" />
</definition>
<definition name="public" template="/WEB-INF/layouts/default.jspx">
<put-attribute name="header" value="/WEB-INF/views/header.jspx" />
<put-attribute name="footer" value="/WEB-INF/views/footer.jspx" />
</definition>
</tiles-definitions>

View File

@@ -2,7 +2,7 @@
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
<!-- The controllers are autodetected POJOs labeled with the @Controller annotation. -->
<context:component-scan base-package="com.springframework.integration.loanbroker.loanshark" use-default-filters="false">
<context:component-scan base-package="org.springframework.integration.samples.loanbroker.loanshark" use-default-filters="false">
<context:include-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
</context:component-scan>
@@ -10,6 +10,15 @@
Also registers default Formatters and Validators for use across all @Controllers -->
<mvc:annotation-driven/>
<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources -->
<mvc:resources location="classpath:/META-INF/dojo/" mapping="/resources/dojo/**"/>
<mvc:resources location="classpath:/META-INF/dijit/" mapping="/resources/dijit/**"/>
<mvc:resources location="classpath:/META-INF/spring/" mapping="/resources/spring/**"/>
<mvc:resources location="/" mapping="/resources/**"/>
<!-- Allows for mapping the DispatcherServlet to "/" by forwarding static resource requests to the container's default Servlet -->
<mvc:default-servlet-handler/>
<!-- register "global" interceptor beans to apply to all registered HandlerMappings -->
<mvc:interceptors>
<bean class="org.springframework.web.servlet.theme.ThemeChangeInterceptor"/>
@@ -17,28 +26,11 @@
</mvc:interceptors>
<!-- selects a static view for rendering without the need for an explicit controller -->
<mvc:view-controller path="/index"/>
<mvc:view-controller path="/" view-name="index"/>
<mvc:view-controller path="/uncaughtException"/>
<mvc:view-controller path="/resourceNotFound"/>
<mvc:view-controller path="/dataAccessFailure"/>
<!-- Resolves logical view names returned by Controllers to Tiles; a view
name to resolve is treated as the name of a tiles definition -->
<bean class="org.springframework.js.ajax.AjaxUrlBasedViewResolver" id="tilesViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView"/>
</bean>
<!-- Configures the Tiles layout system -->
<bean class="org.springframework.web.servlet.view.tiles2.TilesConfigurer" id="tilesConfigurer">
<property name="definitions">
<list>
<value>/WEB-INF/layouts/layouts.xml</value>
<!-- Scan views directory for Tiles configurations -->
<value>/WEB-INF/views/**/views.xml</value>
</list>
</property>
</bean>
<!-- Resolves localized messages*.properties and application.properties files in the application to allow for internationalization.
The messages*.properties files translate Roo generated messages which are part of the admin interface, the application.properties
resource bundle localizes all application specific messages such as entity names and menu items. -->
@@ -69,4 +61,16 @@
<!-- allows for integration of file upload functionality -->
<bean class="org.springframework.web.multipart.commons.CommonsMultipartResolver" id="multipartResolver"/>
<bean class="org.springframework.web.servlet.view.UrlBasedViewResolver" id="tilesViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView"/>
</bean>
<bean class="org.springframework.web.servlet.view.tiles2.TilesConfigurer" id="tilesConfigurer">
<property name="definitions">
<list>
<value>/WEB-INF/layouts/layouts.xml</value>
<!-- Scan views directory for Tiles configurations -->
<value>/WEB-INF/views/**/views.xml</value>
</list>
</property>
</bean>
</beans>

View File

@@ -0,0 +1,29 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)"/>
<jsp:directive.attribute name="modelAttribute" type="java.lang.String" required="true" description="The name of the model attribute for form binding"/>
<jsp:directive.attribute name="path" type="java.lang.String" required="true" description="Specify the relative URL path (wit leading /)" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this object, will default to a message bundle if not supplied"/>
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="openPane" type="java.lang.Boolean" required="false" description="Control if the title pane is opened or closed by default (default: true)"/>
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)"/>
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label"/>
</c:if>
<spring:message arguments="${label}" code="entity_create" var="title_msg"/>
<util:panel id="${id}" title="${title_msg}" openPane="${openPane}">
<spring:url value="${path}" var="form_url"/>
<form:form action="${fn:escapeXml(form_url)}" method="POST" modelAttribute="${modelAttribute}">
<form:errors cssClass="errors" delimiter="&lt;p/&gt;"/>
<jsp:doBody />
<div class="submit" id="${fn:escapeXml(id)}_submit">
<spring:message code="button_save" var="save_button"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));</script>
<input id="proceed" type="submit" value="${fn:escapeXml(save_button)}"/>
</div>
</form:form>
</util:panel>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,25 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)"/>
<jsp:directive.attribute name="dependencies" type="java.util.Collection" required="true" description="The collection of dependencies which need to be listed"/>
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this object, will default to a message bundle if not supplied"/>
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="openPane" type="java.lang.Boolean" required="false" description="Control if the title pane is opened or closed by default (default: true)"/>
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)"/>
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label"/>
</c:if>
<spring:message arguments="${label}" code="entity_create" var="title_msg"/>
<util:panel id="${fn:escapeXml(id)}" title="${fn:escapeXml(title_msg)}" openPane="${openPane}">
<spring:message code="entity_dependency_required"/>
<c:forEach items="${dependencies}" var="dependency" >
<p>
<field:reference field="${dependency[0]}" id="${fn:escapeXml(id)}_${dependency[0]}" path="/${dependency[1]}"/>
</p>
</c:forEach>
</util:panel>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,37 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="field" type="java.lang.String" required="true" description="The field exposed from the form backing object" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this field, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="disableFormBinding" type="java.lang.Boolean" required="false" description="Set to true to disable Spring form binding" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty sec_label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:set var="sec_field">
<spring:escapeBody javaScriptEscape="true">${field}</spring:escapeBody>
</c:set>
<div id="_${sec_id}_id">
<label for="_${sec_field}_id">
<c:out value="${fn:escapeXml(label)}" />:
</label>
<c:choose>
<c:when test="${disableFormBinding}">
<input id="_${sec_field}_id" name="${sec_field}" type="checkbox" value="true" />
</c:when>
<c:otherwise>
<form:checkbox id="_${sec_field}_id" path="${sec_field}" />
</c:otherwise>
</c:choose>
<script type="text/javascript">
Spring.addDecoration(new Spring.ElementDecoration({elementId : '_${sec_field}_id', widgetType : 'dijit.form.CheckBox'}));
</script>
</div>
<br />
</c:if>
</jsp:root>

View File

@@ -0,0 +1,28 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="property" type="java.lang.String" required="true" description="The property (field name) of the dataset to be displayed in a column (required)." />
<jsp:directive.attribute name="maxLength" type="java.lang.Integer" required="false" description="Max displayed text length (default '10'). Unlimited if negative" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The column label to be used in the table (optional)." />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:choose>
<c:when test="${empty columnProperties and empty columnLabels}">
<c:set var="columnProperties" value="${property}" scope="request" />
<c:set var="columnLabels" value="${label}" scope="request" />
<c:set var="columnMaxLengths" value="${empty maxLength ? 10 : maxLength}" scope="request" />
</c:when>
<c:otherwise>
<c:set var="columnProperties" value="${columnProperties},${property}" scope="request" />
<c:set var="columnLabels" value="${columnLabels},${label}" scope="request" />
<c:set var="columnMaxLengths" value="${columnMaxLengths},${empty maxLength ? 10 : maxLength}" scope="request" />
</c:otherwise>
</c:choose>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,75 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="field" type="java.lang.String" required="true" description="The field exposed from the form backing object" />
<jsp:directive.attribute name="dateTimePattern" type="java.lang.String" required="true" description="The format accepted in this field" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this field, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="required" type="java.lang.Boolean" required="false" description="Indicates if this field is required (default false)" />
<jsp:directive.attribute name="disabled" type="java.lang.Boolean" required="false" description="Specify if this field should be enabled" />
<jsp:directive.attribute name="validationRegex" type="java.lang.String" required="false" description="Specify regular expression to be used for the validation of the input contents" />
<jsp:directive.attribute name="validationMessageCode" type="java.lang.String" required="false" description="Specify the message (message property code) to be displayed if the regular expression validation fails" />
<jsp:directive.attribute name="validationMessage" type="java.lang.String" required="false" description="Specify the message to be displayed if the regular expression validation fails" />
<jsp:directive.attribute name="future" type="java.lang.Boolean" required="false" description="Specify if the date / time should be in the future" />
<jsp:directive.attribute name="past" type="java.lang.Boolean" required="false" description="Specify if the date / time should be in the past" />
<jsp:directive.attribute name="disableFormBinding" type="java.lang.Boolean" required="false" description="Set to true to disable Spring form binding" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty disabled}">
<c:set value="false" var="disabled" />
</c:if>
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:set var="sec_field">
<spring:escapeBody javaScriptEscape="true" >${field}</spring:escapeBody>
</c:set>
<c:if test="${empty required}">
<c:set value="false" var="required" />
</c:if>
<script type="text/javascript">dojo.require('dijit.form.DateTextBox')</script>
<div id="_${sec_id}_id">
<label for="_${sec_field}_id">
<c:out value="${label}" />
:
</label>
<c:choose>
<c:when test="${disableFormBinding}">
<input id="_${sec_field}_id" name="${sec_field}" />
</c:when>
<c:otherwise>
<form:input id="_${sec_field}_id" path="${sec_field}" disabled="${disabled}" />
<br />
<form:errors cssClass="errors" id="_${sec_field}_error_id" path="${sec_field}" />
</c:otherwise>
</c:choose>
<spring:message arguments="${fn:escapeXml(label)}" code="field_invalid" var="field_invalid" />
<c:choose>
<c:when test="${required}">
<spring:message code="field_required" var="field_required" />
<spring:message argumentSeparator="," arguments="${label},(${field_required})" code="field_simple_validation" var="field_validation" />
</c:when>
<c:otherwise>
<spring:message argumentSeparator="," arguments="${label}, " code="field_simple_validation" var="field_validation" />
</c:otherwise>
</c:choose>
<script type="text/javascript">
<c:set var="sec_field_validation">
<spring:escapeBody javaScriptEscape="true">${field_validation}</spring:escapeBody>
</c:set>
<c:set var="sec_field_invalid">
<spring:escapeBody javaScriptEscape="true">${field_invalid}</spring:escapeBody>
</c:set>
<c:set var="sec_dateTimePattern">
<spring:escapeBody javaScriptEscape="true">${dateTimePattern}</spring:escapeBody>
</c:set>
Spring.addDecoration(new Spring.ElementDecoration({elementId : '_${sec_field}_id', widgetType : 'dijit.form.DateTextBox', widgetAttrs : {promptMessage: '${sec_field_validation}', invalidMessage: '${sec_field_invalid}', required: ${required}, constraints: {datePattern : '${sec_dateTimePattern}', required : ${required}}, datePattern : '${sec_dateTimePattern}'}})); </script>
</div>
<br />
</c:if>
</jsp:root>

View File

@@ -0,0 +1,51 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="object" type="java.lang.Object" required="true" description="The form backing object" />
<jsp:directive.attribute name="field" type="java.lang.String" required="true" description="The field name" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this field, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="date" type="java.lang.Boolean" required="false" description="Indicate that this field is of type java.util.Date" />
<jsp:directive.attribute name="calendar" type="java.lang.Boolean" required="false" description="Indicate that this field is of type java.util.Calendar" />
<jsp:directive.attribute name="dateTimePattern" type="java.lang.String" required="false" description="The date / time pattern to use if the field is a date or calendar type" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${not empty object and empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:if test="${empty dateTimePattern}">
<c:set value="MM/dd/yyyy" var="dateTimePattern" />
</c:if>
<c:set var="sec_object" value="${fn:escapeXml(object)}" />
<c:set var="sec_field" value="${fn:escapeXml(field)}" />
<div id="_${fn:escapeXml(id)}_id">
<label for="_${fn:escapeXml(field)}_id">
<c:out value="${label}" />
:
</label>
<div class="box" id="_${fn:escapeXml(id)}_${fn:escapeXml(field)}_id">
<c:choose>
<c:when test="${date}">
<spring:escapeBody>
<fmt:formatDate value="${object[field]}" pattern="${fn:escapeXml(dateTimePattern)}" />
</spring:escapeBody>
</c:when>
<c:when test="${calendar}">
<spring:escapeBody>
<fmt:formatDate value="${object[field].time}" pattern="${fn:escapeXml(dateTimePattern)}" />
</spring:escapeBody>
</c:when>
<c:otherwise>
<spring:eval expression="object[field]" />
</c:otherwise>
</c:choose>
</div>
</div>
<br />
</c:if>
</jsp:root>

View File

@@ -0,0 +1,46 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="field" type="java.lang.String" required="true" description="The field exposed from the form backing object" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this field, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="required" type="java.lang.Boolean" required="false" description="Indicates if this field is required (default false)" />
<jsp:directive.attribute name="disabled" type="java.lang.Boolean" required="false" description="Specify if this field should be enabled" />
<jsp:directive.attribute name="validationRegex" type="java.lang.String" required="false" description="Specify regular expression to be used for the validation of the input contents" />
<jsp:directive.attribute name="validationMessageCode" type="java.lang.String" required="false" description="Specify the message (message property code) to be displayed if the regular expression validation fails" />
<jsp:directive.attribute name="validationMessage" type="java.lang.String" required="false" description="Specify the message to be displayed if the regular expression validation fails" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty disabled}">
<c:set value="false" var="disabled" />
</c:if>
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:if test="${empty required}">
<c:set value="false" var="required" />
</c:if>
<c:set var="sec_field">
<spring:escapeBody javaScriptEscape="true" >${field}</spring:escapeBody>
</c:set>
<script type="text/javascript">dojo.require("dijit.Editor");</script>
<div id="_${fn:escapeXml(id)}_id">
<label for="_${sec_field}_id">
<c:out value="${fn:escapeXml(label)}" />
:
</label>
<form:textarea id="_${sec_field}_id" path="${sec_field}" disabled="${disabled}" />
<br />
<form:errors cssClass="errors" id="_${sec_field}_error_id" path="${sec_field}" />
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_${sec_field}_id', widgetType : 'dijit.Editor', widgetAttrs : {disabled: ${disabled}}})); </script>
</div>
<br />
</c:if>
</jsp:root>

View File

@@ -0,0 +1,75 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="field" type="java.lang.String" required="true" description="The field exposed from the form backing object" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this field, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="required" type="java.lang.Boolean" required="false" description="Indicates if this field is required (default false)" />
<jsp:directive.attribute name="disabled" type="java.lang.Boolean" required="false" description="Specify if this field should be enabled" />
<jsp:directive.attribute name="validationRegex" type="java.lang.String" required="false" description="Specify regular expression to be used for the validation of the input contents" />
<jsp:directive.attribute name="validationMessageCode" type="java.lang.String" required="false" description="Specify the message (message property code) to be displayed if the regular expression validation fails" />
<jsp:directive.attribute name="validationMessage" type="java.lang.String" required="false" description="Specify the message to be displayed if the regular expression validation fails" />
<jsp:directive.attribute name="min" type="java.lang.String" required="false" description="Specify the minimum length of the input contents" />
<jsp:directive.attribute name="max" type="java.lang.String" required="false" description="Specify the maximum length of the input contents" />
<jsp:directive.attribute name="decimalMin" type="java.lang.String" required="false" description="Specify the minimum size of the input contents" />
<jsp:directive.attribute name="decimalMax" type="java.lang.String" required="false" description="Specify the maximum size of the input contents" />
<jsp:directive.attribute name="disableFormBinding" type="java.lang.Boolean" required="false" description="Set to true to disable Spring form binding" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty disabled}">
<c:set value="false" var="disabled" />
</c:if>
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:if test="${empty required}">
<c:set value="false" var="required" />
</c:if>
<c:set var="sec_field">
<spring:escapeBody javaScriptEscape="true" >${field}</spring:escapeBody>
</c:set>
<div id="_${fn:escapeXml(id)}_id">
<label for="_${sec_field}_id">
<c:out value="${fn:escapeXml(label)}" />
:
</label>
<c:choose>
<c:when test="${disableFormBinding}">
<input id="_${sec_field}_id" name="${sec_field}" />
</c:when>
<c:otherwise>
<form:input id="_${sec_field}_id" path="${sec_field}" disabled="${disabled}" />
<br />
<form:errors cssClass="errors" id="_${sec_field}_error_id" path="${sec_field}" />
</c:otherwise>
</c:choose>
<spring:message arguments="${label}" code="field_invalid" var="field_invalid" />
<c:choose>
<c:when test="${required}">
<spring:message code="field_required" var="field_required" />
<spring:message argumentSeparator="," arguments="${label},(${field_required})" code="field_simple_validation" var="field_validation" />
</c:when>
<c:otherwise>
<spring:message argumentSeparator="," arguments="${label}, " code="field_simple_validation" var="field_validation" />
</c:otherwise>
</c:choose>
<script type="text/javascript">
<c:set var="sec_field_validation">
<spring:escapeBody javaScriptEscape="true">${field_validation}</spring:escapeBody>
</c:set>
<c:set var="sec_field_invalid">
<spring:escapeBody javaScriptEscape="true">${field_invalid}</spring:escapeBody>
</c:set>
Spring.addDecoration(new Spring.ElementDecoration({elementId : '_${sec_field}_id', widgetType : 'dijit.form.ValidationTextBox', widgetAttrs : {promptMessage: '${sec_field_validation}', invalidMessage: '${sec_field_invalid}', required: ${required}}}));
</script>
</div>
<br />
</c:if>
</jsp:root>

View File

@@ -0,0 +1,42 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="path" type="java.lang.String" required="true" description="The relative path to the respource" />
<jsp:directive.attribute name="field" type="java.lang.String" required="true" description="The field exposed from the form backing object" />
<jsp:directive.attribute name="required" type="java.lang.Boolean" required="false" description="Indicates if this field is required (default false)" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this field, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<div id="_${fn:escapeXml(id)}_id">
<label for="_${fn:escapeXml(field)}_id">
<c:out value="${fn:escapeXml(label)}" />
:
</label>
<spring:url value="${path}" var="create_url">
<spring:param name="form" />
</spring:url>
<a href="${fn:escapeXml(create_url)}">
<spring:url value="/resources/images/add.png" var="create_img_url" />
<spring:message arguments="${field}" code="global_menu_new" var="add_message" />
<img alt="${fn:escapeXml(add_message)}" src="${fn:escapeXml(create_img_url)}" title="${fn:escapeXml(add_message)}" />
</a>
<c:out value=" " />
<spring:message arguments="${label}" code="entity_not_found" />
<c:if test="${not empty required and required eq 'true'}">
(
<spring:message code="field_required" />
)
</c:if>
</div>
<br />
</c:if>
</jsp:root>

View File

@@ -0,0 +1,99 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="field" type="java.lang.String" required="true" description="The field exposed from the form backing object" />
<jsp:directive.attribute name="path" type="java.lang.String" required="true" description="The relative path to the referenced resource" />
<jsp:directive.attribute name="items" type="java.util.Collection" required="true" description="The name of the collection displayed in the select box" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this field, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="itemValue" type="java.lang.String" required="false" description="The identifier used as value in the select box (defaults to 'id' for non enum types)" />
<jsp:directive.attribute name="required" type="java.lang.Boolean" required="false" description="Indicates if this field is required (default false)" />
<jsp:directive.attribute name="disabled" type="java.lang.Boolean" required="false" description="Specify if this field should be enabled" />
<jsp:directive.attribute name="multiple" type="java.lang.Boolean" required="false" description="Specify if the select box should allow multiple selections" />
<jsp:directive.attribute name="disableFormBinding" type="java.lang.Boolean" required="false" description="Set to true to disable Spring form binding" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty disabled}">
<c:set value="false" var="disabled" />
</c:if>
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:if test="${empty required}">
<c:set value="false" var="required" />
</c:if>
<c:if test="${empty multiple}">
<c:set value="false" var="multiple" />
</c:if>
<c:set var="sec_field">
<spring:escapeBody javaScriptEscape="true" >${field}</spring:escapeBody>
</c:set>
<div id="_${fn:escapeXml(id)}_id">
<c:choose>
<c:when test="${not empty items}">
<label for="_${sec_field}_id">
<c:out value="${fn:escapeXml(label)}" />
:
</label>
<c:choose>
<c:when test="${empty itemValue}">
<c:choose>
<c:when test="${disableFormBinding}">
<select id="_${sec_field}_id" name="${sec_field}" multiple="${multiple}">
<c:forEach items="${items}" var="item">
<option value="${item}">
<spring:eval expression="item" />
</option>
</c:forEach>
</select>
</c:when>
<c:otherwise>
<form:select id="_${sec_field}_id" items="${items}" path="${sec_field}" disabled="${disabled}" multiple="${multiple}" />
<br />
<form:errors cssClass="errors" id="_${sec_field}_error_id" path="${sec_field}" />
</c:otherwise>
</c:choose>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${disableFormBinding}">
<select id="_${sec_field}_id" name="${sec_field}" multiple="${multiple}">
<c:forEach items="${items}" var="item">
<option value="${item[fn:escapeXml(itemValue)]}">
<spring:eval expression="item" />
</option>
</c:forEach>
</select>
</c:when>
<c:otherwise>
<form:select id="_${sec_field}_id" items="${items}" path="${sec_field}" disabled="${disabled}" multiple="${multiple}" itemValue="${fn:escapeXml(itemValue)}" />
<br />
<form:errors cssClass="errors" id="_${sec_field}_error_id" path="${sec_field}" />
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${multiple == false}">
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_${sec_field}_id', widgetType: 'dijit.form.FilteringSelect', widgetAttrs : {hasDownArrow : true}})); </script>
</c:when>
<!-- disabled due to http://jira.springframework.org/browse/ROO-909 <c:otherwise> <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_${field}_id', widgetType: 'dijit.form.MultiSelect', widgetAttrs : {}})); </script> </c:otherwise> -->
</c:choose>
</c:when>
<c:otherwise>
<field:reference field="${label}" id="${id}" path="${path}" required="${required}" />
</c:otherwise>
</c:choose>
</div>
<br />
</c:if>
</jsp:root>

View File

@@ -0,0 +1,35 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="field" type="java.lang.String" required="true" description="The field exposed from the form backing object" />
<jsp:directive.attribute name="text" type="java.lang.String" required="false" description="The text to be presented" />
<jsp:directive.attribute name="messageCode" type="java.lang.String" required="false" description="The code for the message to be presented" />
<jsp:directive.attribute name="messageCodeAttribute" type="java.lang.String" required="false" description="The attribute for the message code sto be presented" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this field, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<div id="_${fn:escapeXml(id)}_id">
<label for="_${fn:escapeXml(field)}_id">
<c:out value="${label}" />
:
</label>
<c:choose>
<c:when test="${not empty messageCode}">
<spring:message code="${messageCode}" arguments="${messageCodeAttribute}" />
</c:when>
<c:otherwise>
<spring:eval expression="text" />
</c:otherwise>
</c:choose>
</div>
<br />
</c:if>
</jsp:root>

View File

@@ -0,0 +1,133 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:directive.tag import="java.util.ArrayList" />
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="data" type="java.util.Collection" required="true" description="The collection to be displayed in the table" />
<jsp:directive.attribute name="path" type="java.lang.String" required="true" description="Specify the URL path" />
<jsp:directive.attribute name="typeIdFieldName" type="java.lang.String" required="false" description="The identifier field name for the type (defaults to 'id')" />
<jsp:directive.attribute name="create" type="java.lang.Boolean" required="false" description="Include 'create' link into table (default true)" />
<jsp:directive.attribute name="update" type="java.lang.Boolean" required="false" description="Include 'update' link into table (default true)" />
<jsp:directive.attribute name="delete" type="java.lang.Boolean" required="false" description="Include 'delete' link into table (default true)" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:set var="columnProperties" scope="request" />
<c:set var="columnLabels" scope="request" />
<c:set var="columnMaxLengths" scope="request" />
<jsp:doBody />
<c:if test="${empty typeIdFieldName}">
<c:set var="typeIdFieldName" value="id" />
</c:if>
<c:if test="${empty update}">
<c:set var="update" value="true" />
</c:if>
<c:if test="${empty delete}">
<c:set var="delete" value="true" />
</c:if>
<c:set var="typeName" value="${fn:split(id,'_')[fn:length(fn:split(id,'_')) - 1]}" />
<c:set var="lengths" value="${fn:split(columnMaxLengths, ',')}" scope="request" />
<table>
<thead>
<tr>
<c:forTokens items="${columnLabels}" delims="," var="columnHeading">
<th>
<c:out value="${columnHeading}" />
</th>
</c:forTokens>
<th></th>
<c:if test="${update}">
<th></th>
</c:if>
<c:if test="${delete}">
<th></th>
</c:if>
</tr>
</thead>
<c:forEach items="${data}" var="item">
<tr>
<c:forTokens items="${columnProperties}" delims="," var="column" varStatus="num">
<c:set var="columnMaxLength" value="${lengths[num.count-1]}" scope="request" />
<td>
<c:choose>
<c:when test="${columnMaxLength lt 0}">
<spring:eval expression="item[column]" />
</c:when>
<c:otherwise>
<spring:eval expression="item[column]" var="colTxt"/>
<c:out value="${fn:substring(colTxt, 0, columnMaxLength)}" />
</c:otherwise>
</c:choose>
</td>
</c:forTokens>
<td>
<spring:url value="${path}/${item[typeIdFieldName]}" var="show_form_url" />
<spring:url value="/resources/images/show.png" var="show_image_url" />
<spring:message arguments="${typeName}" code="entity_show" var="show_label" />
<a href="${fn:escapeXml(show_form_url)}" alt="${fn:escapeXml(show_label)}" title="${fn:escapeXml(show_label)}">
<img alt="${fn:escapeXml(show_label)}" class="image" src="${fn:escapeXml(show_image_url)}" title="${fn:escapeXml(show_label)}" />
</a>
</td>
<c:if test="${update}">
<td>
<spring:url value="${path}/${item[typeIdFieldName]}" var="update_form_url">
<spring:param name="form" />
</spring:url>
<spring:url value="/resources/images/update.png" var="update_image_url" />
<spring:message arguments="${typeName}" code="entity_update" var="update_label" />
<a href="${fn:escapeXml(update_form_url)}" alt="${fn:escapeXml(update_label)}" title="${fn:escapeXml(update_label)}">
<img alt="${fn:escapeXml(update_label)}" class="image" src="${fn:escapeXml(update_image_url)}" title="${fn:escapeXml(update_label)}" />
</a>
</td>
</c:if>
<c:if test="${delete}">
<td>
<spring:url value="${path}/${item[typeIdFieldName]}" var="delete_form_url" />
<spring:url value="/resources/images/delete.png" var="delete_image_url" />
<form:form action="${fn:escapeXml(delete_form_url)}" method="DELETE">
<spring:message arguments="${typeName}" code="entity_delete" var="delete_label" />
<input alt="${fn:escapeXml(delete_label)}" class="image" src="${fn:escapeXml(delete_image_url)}" title="${fn:escapeXml(delete_label)}" type="image" value="${fn:escapeXml(delete_label)}" />
<c:if test="${not empty param.page}">
<input name="page" type="hidden" value="${fn:escapeXml(param.page)}" />
</c:if>
<c:if test="${not empty param.size}">
<input name="size" type="hidden" value="${fn:escapeXml(param.size)}" />
</c:if>
</form:form>
</td>
</c:if>
</tr>
</c:forEach>
<tr class="footer">
<td colspan="10">
<c:if test="${empty create or create}">
<span class="new">
<spring:url value="/${path}" var="create_url">
<spring:param name="form" />
</spring:url>
<a href="${fn:escapeXml(create_url)}">
<spring:url value="/resources/images/add.png" var="create_img_url" />
<spring:message arguments="${typeName}" code="global_menu_new" var="add_message" />
<img alt="${fn:escapeXml(add_message)}" src="${fn:escapeXml(create_img_url)}" title="${fn:escapeXml(add_message)}" />
</a>
</span>
<c:out value=" " />
</c:if>
<c:if test="${not empty maxPages}">
<util:pagination maxPages="${maxPages}" page="${param.page}" size="${param.size}" />
</c:if>
</td>
</tr>
</table>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,47 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="field" type="java.lang.String" required="true" description="The field exposed from the form backing object" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this field, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="required" type="java.lang.Boolean" required="false" description="Indicates if this field is required (default false)" />
<jsp:directive.attribute name="disabled" type="java.lang.Boolean" required="false" description="Specify if this field should be enabled" />
<jsp:directive.attribute name="validationRegex" type="java.lang.String" required="false" description="Specify regular expression to be used for the validation of the input contents" />
<jsp:directive.attribute name="validationMessageCode" type="java.lang.String" required="false" description="Specify the message (message property code) to be displayed if the regular expression validation fails" />
<jsp:directive.attribute name="validationMessage" type="java.lang.String" required="false" description="Specify the message to be displayed if the regular expression validation fails" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty disabled}">
<c:set value="false" var="disabled" />
</c:if>
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:if test="${empty required}">
<c:set value="false" var="required" />
</c:if>
<c:set var="sec_field">
<spring:escapeBody javaScriptEscape="true" >${field}</spring:escapeBody>
</c:set>
<script type="text/javascript">dojo.require("dijit.form.SimpleTextarea");</script>
<div id="_${fn:escapeXml(id)}_id">
<label for="_${sec_field}_id">
<c:out value="${fn:escapeXml(label)}" />
:
</label>
<form:textarea id="_${sec_field}_id" path="${sec_field}" disabled="${disabled}" />
<br />
<form:errors cssClass="errors" id="_${sec_field}_error_id" path="${sec_field}" />
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_${sec_field}_id', widgetType : 'dijit.form.SimpleTextarea', widgetAttrs : {disabled : ${disabled}}})); </script>
</div>
<br />
</c:if>
</jsp:root>

View File

@@ -0,0 +1,29 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)"/>
<jsp:directive.attribute name="finderName" type="java.lang.String" required="true" description="The finder name"/>
<jsp:directive.attribute name="path" type="java.lang.String" required="true" description="Specify the relative URL path (wit leading /)" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="openPane" type="java.lang.Boolean" required="false" description="Control if the title pane is opened or closed by default (default: true)"/>
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)"/>
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label"/>
</c:if>
<spring:message arguments="${fn:escapeXml(label)}" code="entity_find" var="title_msg"/>
<util:panel id="${id}" title="${title_msg}" openPane="${openPane}">
<spring:url value="${path}" var="form_url" />
<form:form action="${fn:escapeXml(form_url)}" method="GET">
<input type="hidden" name="find" value="${fn:escapeXml(finderName)}" />
<jsp:doBody />
<div class="submit" id="${fn:escapeXml(id)}_${fn:escapeXml(finderName)}_submit">
<spring:message code="button_find" var="find_button"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));</script>
<input id="proceed" type="submit" value="${fn:escapeXml(find_button)}"/>
</div>
</form:form>
</util:panel>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,31 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="items" type="java.util.Collection" required="true" description="The form backing object name" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this object, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="labelPlural" type="java.lang.String" required="false" description="The label used for this object, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="openPane" type="java.lang.Boolean" required="false" description="Control if the title pane is opened or closed by default (default: true)" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:if test="${empty labelPlural}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}_plural" var="labelPlural" />
</c:if>
<spring:message arguments="${labelPlural}" code="entity_list_all" var="title_msg" />
<util:panel id="${id}" title="${title_msg}" openPane="${openPane}">
<c:choose>
<c:when test="${not empty items}">
<jsp:doBody />
</c:when>
<c:otherwise>
<spring:message arguments="${label}" code="entity_not_found" />
</c:otherwise>
</c:choose>
</util:panel>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,96 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="object" type="java.lang.Object" required="true" description="The form backing object" />
<jsp:directive.attribute name="path" type="java.lang.String" required="true" description="Specify the URL path" />
<jsp:directive.attribute name="list" type="java.lang.Boolean" required="false" description="Include 'list' link into table (default true)" />
<jsp:directive.attribute name="create" type="java.lang.Boolean" required="false" description="Include 'create' link into table (default true)" />
<jsp:directive.attribute name="update" type="java.lang.Boolean" required="false" description="Include 'update' link into table (default true)" />
<jsp:directive.attribute name="delete" type="java.lang.Boolean" required="false" description="Include 'delete' link into table (default true)" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this object, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="openPane" type="java.lang.Boolean" required="false" description="Control if the title pane is opened or closed by default (default: true)" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:if test="${empty list}">
<c:set var="list" value="true" />
</c:if>
<c:if test="${empty create}">
<c:set var="create" value="true" />
</c:if>
<c:if test="${empty update}">
<c:set var="update" value="true" />
</c:if>
<c:if test="${empty delete}">
<c:set var="delete" value="true" />
</c:if>
<c:set var="typeName" value="${fn:split(id,'_')[fn:length(fn:split(id,'_')) - 1]}" />
<spring:message arguments="${label}" code="entity_show" var="title_msg" />
<util:panel id="${id}" title="${title_msg}" openPane="${openPane}">
<c:choose>
<c:when test="${not empty object}">
<jsp:doBody />
<div class="quicklinks">
<span>
<c:if test="${delete}">
<spring:url value="${path}/${itemId}" var="delete_form_url" />
<spring:url value="/resources/images/delete.png" var="delete_image_url" />
<form:form action="${fn:escapeXml(delete_form_url)}" method="DELETE">
<spring:message arguments="${typeName}" code="entity_delete" var="delete_label" />
<input alt="${fn:escapeXml(delete_label)}" class="image" src="${fn:escapeXml(delete_image_url)}" title="${fn:escapeXml(delete_label)}" type="image" value="${fn:escapeXml(delete_label)}" />
</form:form>
</c:if>
</span>
<span>
<c:if test="${update}">
<spring:url value="${path}/${itemId}" var="update_form_url">
<spring:param name="form" />
</spring:url>
<spring:url value="/resources/images/update.png" var="update_image_url" />
<spring:message arguments="${typeName}" code="entity_update" var="update_label" />
<a href="${fn:escapeXml(update_form_url)}" alt="${fn:escapeXml(update_label)}" title="${fn:escapeXml(update_label)}">
<img alt="${fn:escapeXml(update_label)}" class="image" src="${fn:escapeXml(update_image_url)}" title="${fn:escapeXml(update_label)}" />
</a>
</c:if>
</span>
<span>
<c:if test="${create}">
<spring:url value="${path}" var="create_form_url">
<spring:param name="form" />
</spring:url>
<spring:url value="/resources/images/create.png" var="create_image_url" />
<spring:message arguments="${typeName}" code="entity_create" var="create_label" />
<a href="${fn:escapeXml(create_form_url)}" alt="${fn:escapeXml(create_label)}" title="${fn:escapeXml(create_label)}">
<img alt="${fn:escapeXml(create_label)}" class="image" src="${fn:escapeXml(create_image_url)}" title="${fn:escapeXml(create_label)}" />
</a>
</c:if>
</span>
<span>
<c:if test="${list}">
<spring:url value="${path}" var="list_form_url" />
<spring:url value="/resources/images/list.png" var="list_image_url" />
<a href="${fn:escapeXml(list_form_url)}" alt="${fn:escapeXml(list_label)}" title="${fn:escapeXml(list_label)}">
<img alt="${fn:escapeXml(list_label)}" class="image" src="${fn:escapeXml(list_image_url)}" title="${fn:escapeXml(list_label)}" />
</a>
</c:if>
</span>
</div>
</c:when>
<c:otherwise>
<spring:message arguments="${label}" code="entity_not_found_single" />
</c:otherwise>
</c:choose>
</util:panel>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,42 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="modelAttribute" type="java.lang.String" required="true" description="The name of the model attribute for form binding" />
<jsp:directive.attribute name="path" type="java.lang.String" required="true" description="Specify the relative URL path (with leading /)" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this object, will default to a message bundle if not supplied" />
<jsp:directive.attribute name="idField" type="java.lang.String" required="false" description="Specify the field name of the id field (default 'id')" />
<jsp:directive.attribute name="versionField" type="java.lang.String" required="false" description="Specify the field name of the version field (default 'version'). If specified 'none' the version field will not be inlcuded (versionField='none')." />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="openPane" type="java.lang.Boolean" required="false" description="Control if the title pane is opened or closed by default (default: true)" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="label_${fn:toLowerCase(fn:substringAfter(id,'_'))}" var="label" />
</c:if>
<c:if test="${empty idField}">
<c:set value="id" var="idField" />
</c:if>
<c:if test="${empty versionField}">
<c:set value="version" var="versionField" />
</c:if>
<spring:message arguments="${label}" code="entity_update" var="title_msg" />
<util:panel id="${id}" title="${title_msg}" openPane="${openPane}">
<spring:url value="${path}" var="form_url" />
<form:form action="${fn:escapeXml(form_url)}" method="PUT" modelAttribute="${modelAttribute}">
<form:errors cssClass="errors" delimiter="&lt;p/&gt;" />
<jsp:doBody />
<div class="submit" id="${fn:escapeXml(id)}_submit">
<spring:message code="button_save" var="save_button" />
<script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));</script>
<input id="proceed" type="submit" value="${fn:escapeXml(save_button)}" />
</div>
<form:hidden id="_${fn:escapeXml(idField)}_id" path="${fn:escapeXml(idField)}" />
<c:if test="${versionField ne 'none'}">
<form:hidden id="_${fn:escapeXml(versionField)}_id" path="${fn:escapeXml(versionField)}" />
</c:if>
</form:form>
</util:panel>
</c:if>
</jsp:root>

View File

@@ -1,93 +0,0 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<span>
<c:out value=" | "/>
<spring:message code="global.language" />
<c:out value=": "/>
<spring:url var="url_en" value="">
<spring:param name="lang" value="en" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:url var="img_en" value="/static/images/gb.png" />
<spring:message code="global.language.switch" arguments="English" var="lang_en"/>
<a href="${url_en}" title="${lang_en}"><img src="${img_en}" alt="${lang_en}"/></a>
<c:out value=" "/>
<spring:url var="img_de" value="/static/images/de.png" />
<spring:url var="url_de" value="">
<spring:param name="lang" value="de" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global.language.switch" arguments="Deutsch" var="lang_de"/>
<a href="${url_de}" title="${lang_de}"><img src="${img_de}" alt="${lang_de}"/></a>
<c:out value=" "/>
<spring:url var="img_sv" value="/static/images/sv.png" />
<spring:url var="url_sv" value="">
<spring:param name="lang" value="sv" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global.language.switch" arguments="Svenska" var="lang_sv"/>
<a href="${url_sv}" title="${lang_sv}"><img src="${img_sv}" alt="${lang_sv}"/></a>
<c:out value=" "/>
<spring:url var="img_es" value="/static/images/es.png" />
<spring:url var="url_es" value="">
<spring:param name="lang" value="es" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global.language.switch" arguments="Espanol" var="lang_es"/>
<a href="${url_es}" title="${lang_es}"><img src="${img_es}" alt="${lang_es}"/></a>
<c:out value=" "/>
<spring:url var="img_it" value="/static/images/it.png" />
<spring:url var="url_it" value="">
<spring:param name="lang" value="it" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global.language.switch" arguments="Italiano" var="lang_it"/>
<a href="${url_it}" title="${lang_it}"><img src="${img_it}" alt="${lang_it}"/></a>
<c:out value=" "/>
<spring:url var="img_nl" value="/static/images/nl.png" />
<spring:url var="url_nl" value="">
<spring:param name="lang" value="nl" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global.language.switch" arguments="Nederlandse" var="lang_nl"/>
<a href="${url_nl}" title="${lang_nl}"><img src="${img_nl}" alt="${lang_nl}"/></a>
</span>
</jsp:root>

View File

@@ -0,0 +1,25 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)"/>
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label for this category (if not set the resource bundle is used)"/>
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)"/>
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="menu_category_${fn:toLowerCase(fn:substringAfter(id,'_'))}_label" var="label"/>
</c:if>
<li id="${fn:escapeXml(id)}">
<h2>
<c:out value="${label}" />
</h2>
<ul>
<jsp:doBody />
</ul>
</li>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,29 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="url" type="java.lang.String" required="true" description="The link URL" />
<jsp:directive.attribute name="label" type="java.lang.String" required="false" description="The label used for this menu item" />
<jsp:directive.attribute name="messageCode" type="java.lang.String" required="false" description="The global message code to be used (works in conjunction with label)" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<c:if test="${empty render or render}">
<c:if test="${empty label}">
<spring:message code="menu_item_${fn:toLowerCase(fn:substringAfter(id,'_'))}_label" var="label" />
</c:if>
<c:if test="${not empty messageCode}">
<spring:message code="${messageCode}" var="label" arguments="${label}" />
</c:if>
<li id="${fn:escapeXml(id)}">
<spring:url value="${url}" var="menu_item_url"/>
<a href="${menu_item_url}" title="${fn:escapeXml(label)}">
<c:out value="${label}" />
</a>
</li>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,13 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)"/>
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)"/>
<c:if test="${empty render or render}">
<ul id="${fn:escapeXml(id)}">
<jsp:doBody />
</ul>
</c:if>
</jsp:root>

View File

@@ -1,83 +0,0 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<jsp:directive.attribute name="maxPages" type="java.lang.Integer" required="true" description="The maximum number of pages available (ie tableRecordCount / size)"/>
<jsp:directive.attribute name="page" type="java.lang.Integer" required="false" description="The current page (not required, defaults to 1)"/>
<jsp:directive.attribute name="size" type="java.lang.Integer" required="false" description="The number of records per page (not required, defaults to 10)"/>
<c:if test="${empty page || page lt 1}">
<c:set var="page" value="1" />
</c:if>
<c:if test="${empty size || size lt 1}">
<c:set var="size" value="10" />
</c:if>
<spring:message code="list.size" var="list_size"/>
<c:out value="${list_size} "/>
<c:forEach var="i" begin="5" end="25" step="5">
<c:choose>
<c:when test="${size == i}">
<c:out value="${i}" />
</c:when>
<c:otherwise>
<spring:url value="" var="sizeUrl">
<spring:param name="page" value="${page}" />
<spring:param name="size" value="${i}" />
</spring:url>
<a href="${sizeUrl}">${i}</a>
</c:otherwise>
</c:choose>
<c:out value=" "/>
</c:forEach>
<c:out value="| "/>
<c:if test="${page ne 1}">
<spring:url value="" var="first">
<spring:param name="page" value="1" />
<spring:param name="size" value="${size}" />
</spring:url>
<spring:url value="/static/images/resultset_first.png" var="first_image_url" />
<spring:message code="list.first" var="first_label" />
<a class="image" href="${first}" title="${first_label}">
<img alt="${first_label}" src="${first_image_url}" />
</a>
</c:if>
<c:if test="${page gt 1}">
<spring:url value="" var="previous">
<spring:param name="page" value="${page - 1}" />
<spring:param name="size" value="${size}" />
</spring:url>
<spring:url value="/static/images/resultset_previous.png" var="previous_image_url" />
<spring:message code="list.previous" var="previous_label" />
<a class="image" href="${previous}" title="${previous_label}">
<img alt="${previous_label}" src="${previous_image_url}" />
</a>
</c:if>
<c:out value=" "/>
<spring:message code="list.page" arguments="${page},${maxPages}" argumentSeparator=","/>
<c:out value=" "/>
<c:if test="${page lt maxPages}">
<spring:url value="" var="next">
<spring:param name="page" value="${page + 1}" />
<spring:param name="size" value="${size}" />
</spring:url>
<spring:url value="/static/images/resultset_next.png" var="next_image_url" />
<spring:message code="list.next" var="next_label" />
<a class="image" href="${next}" title="${next_label}">
<img alt="${next_label}" src="${next_image_url}" />
</a>
</c:if>
<c:if test="${page ne maxPages}">
<spring:url value="" var="last">
<spring:param name="page" value="${maxPages}" />
<spring:param name="size" value="${size}" />
</spring:url>
<spring:url value="/static/images/resultset_last.png" var="last_image_url" />
<spring:message code="list.last" var="last_label" />
<a class="image" href="${last}" title="${last_label}">
<img alt="${last_label}" src="${last_image_url}" />
</a>
</c:if>
</jsp:root>

View File

@@ -1,31 +0,0 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<span>
<c:out value=" | "/>
<spring:message code="global.theme" />
<c:out value=": "/>
<spring:url var="url_theme1" value="">
<spring:param name="theme" value="standard" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global.theme.standard" var="theme_standard" />
<a href="${url_theme1}" title="${theme_standard}">${theme_standard}</a>
<c:out value=" | "/>
<spring:url var="url_theme2" value="">
<spring:param name="theme" value="alt" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global.theme.alt" var="theme_alt" />
<a href="${url_theme2}" title="${theme_alt}">${theme_alt}</a>
</span>
</jsp:root>

View File

@@ -0,0 +1,31 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="locale" type="java.lang.String" required="true" description="The locale for the language to be added." />
<jsp:directive.attribute name="label" type="java.lang.String" required="true" description="The country label for the language to be added." />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<c:if test="${empty render or render}">
<spring:url var="img" value="/resources/images/${locale}.png" />
<spring:url var="url" value="">
<c:if test="${null ne param.form}">
<spring:param name="form" />
</c:if>
<c:if test="${not empty param.find}">
<spring:param name="find" value="${param.find}" />
</c:if>
<spring:param name="lang" value="${locale}" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global_language_switch" arguments="${label}" var="lang_label" />
<a href="${fn:escapeXml(url)}" title="${fn:escapeXml(lang_label)}">
<img class="flag" src="${fn:escapeXml(img)}" alt="${fn:escapeXml(lang_label)}" />
</a>
<c:out value=" " />
</c:if>
</jsp:root>

View File

@@ -0,0 +1,28 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<spring:theme code="styleSheet" var="roo_css" />
<spring:url value="/${roo_css}" var="roo_css_url" />
<spring:url value="/resources/dojo/dojo.js" var="dojo_url" />
<spring:url value="/resources/dijit/themes/tundra/tundra.css" var="tundra_url" />
<spring:url value="/resources/spring/Spring.js" var="spring_url" />
<spring:url value="/resources/spring/Spring-Dojo.js" var="spring_dojo_url" />
<spring:url value="/resources/images/favicon.ico" var="favicon" />
<link rel="stylesheet" type="text/css" media="screen" href="${roo_css_url}"><!-- required for FF3 and Opera --></link>
<link rel="stylesheet" type="text/css" href="${tundra_url}"><!-- required for FF3 and Opera --></link>
<link rel="SHORTCUT ICON" href="${favicon}" />
<!-- Get the user local from the page context (it was set by Spring MVC's locale resolver) -->
<c:set var="userLocale">
<c:out value="${pageContext.response.locale}" default="en" />
</c:set>
<script type="text/javascript">var djConfig="${userLocale}"; </script>
<script src="${dojo_url}" type="text/javascript"><!-- required for FF3 and Opera --></script>
<script src="${spring_url}" type="text/javascript"><!-- /required for FF3 and Opera --></script>
<script src="${spring_dojo_url}" type="text/javascript"><!-- required for FF3 and Opera --></script>
<script language="JavaScript" type="text/javascript">dojo.require("dojo.parser");</script>
</jsp:root>

View File

@@ -0,0 +1,87 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="maxPages" type="java.lang.Integer" required="true" description="The maximum number of pages available (ie tableRecordCount / size)" />
<jsp:directive.attribute name="page" type="java.lang.Integer" required="false" description="The current page (not required, defaults to 1)" />
<jsp:directive.attribute name="size" type="java.lang.Integer" required="false" description="The number of records per page (not required, defaults to 10)" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<c:if test="${empty render or render}">
<c:if test="${empty page || page lt 1}">
<c:set var="page" value="1" />
</c:if>
<c:if test="${empty size || size lt 1}">
<c:set var="size" value="10" />
</c:if>
<spring:message code="list_size" var="list_size" />
<c:out value="${list_size} " />
<c:forEach var="i" begin="5" end="25" step="5">
<c:choose>
<c:when test="${size == i}">
<c:out value="${i}" />
</c:when>
<c:otherwise>
<spring:url value="" var="sizeUrl">
<spring:param name="page" value="1" />
<spring:param name="size" value="${i}" />
</spring:url>
<a href="${sizeUrl}">${i}</a>
</c:otherwise>
</c:choose>
<c:out value=" " />
</c:forEach>
<c:out value="| " />
<c:if test="${page ne 1}">
<spring:url value="" var="first">
<spring:param name="page" value="1" />
<spring:param name="size" value="${size}" />
</spring:url>
<spring:url value="/resources/images/resultset_first.png" var="first_image_url" />
<spring:message code="list_first" var="first_label" />
<a class="image" href="${first}" title="${first_label}">
<img alt="${first_label}" src="${first_image_url}" />
</a>
</c:if>
<c:if test="${page gt 1}">
<spring:url value="" var="previous">
<spring:param name="page" value="${page - 1}" />
<spring:param name="size" value="${size}" />
</spring:url>
<spring:url value="/resources/images/resultset_previous.png" var="previous_image_url" />
<spring:message code="list_previous" var="previous_label" />
<a class="image" href="${previous}" title="${previous_label}">
<img alt="${previous_label}" src="${previous_image_url}" />
</a>
</c:if>
<c:out value=" " />
<spring:message code="list_page" arguments="${page},${maxPages}" argumentSeparator="," />
<c:out value=" " />
<c:if test="${page lt maxPages}">
<spring:url value="" var="next">
<spring:param name="page" value="${page + 1}" />
<spring:param name="size" value="${size}" />
</spring:url>
<spring:url value="/resources/images/resultset_next.png" var="next_image_url" />
<spring:message code="list_next" var="next_label" />
<a class="image" href="${next}" title="${next_label}">
<img alt="${next_label}" src="${next_image_url}" />
</a>
</c:if>
<c:if test="${page ne maxPages}">
<spring:url value="" var="last">
<spring:param name="page" value="${maxPages}" />
<spring:param name="size" value="${size}" />
</spring:url>
<spring:url value="/resources/images/resultset_last.png" var="last_image_url" />
<spring:message code="list_last" var="last_label" />
<a class="image" href="${last}" title="${last_label}">
<img alt="${last_label}" src="${last_image_url}" />
</a>
</c:if>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,32 @@
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:c="http://java.sun.com/jsp/jstl/core" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="id" type="java.lang.String" required="true" description="The identifier for this tag (do not change!)" />
<jsp:directive.attribute name="title" type="java.lang.String" required="true" description="The page title (required)" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<jsp:directive.attribute name="z" type="java.lang.String" required="false" description="Used for checking if element has been modified (to recalculate simply provide empty string value)" />
<jsp:directive.attribute name="openPane" type="java.lang.String" required="false" description="Control if the title pane is opened or closed by default (default: true)" />
<c:if test="${empty render or render}">
<c:if test="${empty openPane}">
<c:set value="true" var="openPane" />
</c:if>
<c:set var="sec_id">
<spring:escapeBody javaScriptEscape="true" >${id}</spring:escapeBody>
</c:set>
<c:set var="sec_openPane">
<spring:escapeBody javaScriptEscape="true" >${openPane}</spring:escapeBody>
</c:set>
<c:set var="sec_title">
<spring:escapeBody javaScriptEscape="true" >${title}</spring:escapeBody>
</c:set>
<script type="text/javascript">dojo.require('dijit.TitlePane');</script>
<div id="_title_${sec_id}_id">
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title_${sec_id}_id', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${sec_title}', open: ${sec_openPane}}})); </script>
<jsp:doBody />
</div>
</c:if>
</jsp:root>

View File

@@ -0,0 +1,4 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="description" type="java.lang.String" required="false" description="Can be used to describe the purpose of this element" />
</jsp:root>

View File

@@ -0,0 +1,36 @@
<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<jsp:directive.attribute name="render" type="java.lang.Boolean" required="false" description="Indicate if the contents of this tag and all enclosed tags should be rendered (default 'true')" />
<c:if test="${empty render or render}">
<span>
<c:out value=" | " />
<spring:message code="global_theme" />
<c:out value=": " />
<spring:url var="url_theme1" value="">
<spring:param name="theme" value="standard" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global_theme_standard" var="theme_standard" />
<a href="${url_theme1}" title="${theme_standard}">${theme_standard}</a>
<c:out value=" | " />
<spring:url var="url_theme2" value="">
<spring:param name="theme" value="alt" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global_theme_alt" var="theme_alt" />
<a href="${url_theme2}" title="${theme_alt}">${theme_alt}</a>
</span>
</c:if>
</jsp:root>

View File

@@ -1,34 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" "http://tuckey.org/res/dtds/urlrewrite3.0.dtd">
<urlrewrite default-match-type="wildcard">
<rule>
<from>/resources/**</from>
<to last="true">/resources/$1</to>
</rule>
<rule>
<from>/static/WEB-INF/**</from>
<set type="status">403</set>
<to last="true">/static/WEB-INF/$1</to>
</rule>
<rule>
<from>/static/**</from>
<to last="true">/$1</to>
</rule>
<rule>
<from>/</from>
<to last="true">/app/index</to>
</rule>
<rule>
<from>/app/**</from>
<to last="true">/app/$1</to>
</rule>
<rule>
<from>/**</from>
<to>/app/$1</to>
</rule>
<outbound-rule>
<from>/app/**</from>
<to>/$1</to>
</outbound-rule>
</urlrewrite>

View File

@@ -1,10 +0,0 @@
<div xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<script type="text/javascript">dojo.require("dijit.TitlePane")</script>
<div id="_title">
<spring:message var="app_name" code="application.name" />
<spring:message var="title" code="welcome.titlepane" arguments="${app_name}" />
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${title}'}})); </script>
<h3>Controller Index Page</h3>
</div>
</div>

View File

@@ -1,30 +1,29 @@
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<script type="text/javascript">dojo.require("dijit.TitlePane")</script>
<div id="_title">
<spring:message var="title" code="error.dataaccessfailure.title" />
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${title}'}})); </script>
<h2>${title}</h2>
<p><spring:message code="error.dataaccessfailure.problemdescription" /></p>
<c:if test="${not empty exception}">
<p>
<h4><spring:message code="exception.details" /></h4>
<spring:message var="message" code="exception.message" />
<div id="_exception">
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_exception', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${message}', open:false}})); </script>
<c:out value="${exception.localizedMessage}" />
</div>
<spring:message var="stacktrace" code="exception.stacktrace" />
<div id="_stacktrace">
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_stacktrace', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${stacktrace}', open:false}})); </script>
<c:forEach items="${exception.stackTrace}" var="trace">
<c:out value="${trace}"/><br/>
</c:forEach>
</div>
</p>
</c:if>
</div>
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<spring:message var="title" code="error_dataaccessfailure_title" />
<util:panel id="title" title="${title}">
<h2>${fn:escapeXml(title)}</h2>
<p>
<spring:message code="error_dataaccessfailure_problemdescription" />
</p>
<c:if test="${not empty exception}">
<p>
<h4>
<spring:message code="exception_details" />
</h4>
<spring:message var="message" code="exception_message" />
<util:panel id="_message" title="${message}" openPane="false">
<c:out value="${exception.localizedMessage}" />
</util:panel>
<spring:message var="stacktrace" code="exception_stacktrace" />
<util:panel id="_exception" title="${stacktrace}" openPane="false">
<c:forEach items="${exception.stackTrace}" var="trace">
<c:out value="${trace}" />
<br />
</c:forEach>
</util:panel>
</p>
</c:if>
</util:panel>
</div>

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" id="footer" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<spring:url value="/" var="home"/>
<span>
<a href="${home}">
<spring:message code="button_home"/>
</a>
</span>
<c:if test="${pageContext['request'].userPrincipal != null}">
<c:out value=" | "/>
<span>
<spring:url value="/resources/j_spring_security_logout" var="logout"/>
<a href="${logout}">
<spring:message code="security_logout"/>
</a>
</span>
</c:if>
<span id="language">
<c:out value=" | "/>
<spring:message code="global_language"/>
<c:out value=": "/>
<util:language label="English" locale="en"/>
</span>
<util:theme/>
<spring:url value="/resources/images/springsource-logo.png" var="logo"/>
<spring:message code="global_sponsored" var="sponsored"/>
<span>
<a href="http://springsource.com" title="${fn:escapeXml(sponsored)}">
<img align="right" alt="${fn:escapeXml(sponsored)}" src="${logo}"/>
</a>
</span>
</div>

View File

@@ -0,0 +1,10 @@
<div id="header" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<spring:url var="banner" value="/resources/images/banner-graphic.png" />
<spring:url var="home" value="/" />
<spring:message code="button_home" var="home_label" />
<a href="${home}" name="${fn:escapeXml(home_label)}" title="${fn:escapeXml(home_label)}">
<img src="${banner}" />
</a>
</div>

View File

@@ -0,0 +1,10 @@
<div xmlns:spring="http://www.springframework.org/tags" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<spring:message var="title" />
<util:panel id="title" title="${title}">
<spring:message code="application_name" var="app_name" />
<h3>
<spring:message code="welcome_titlepane" arguments="${app_name}" />
</h3>
</util:panel>
</div>

View File

@@ -1,11 +1,13 @@
<div xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<script type="text/javascript">dojo.require("dijit.TitlePane")</script>
<div id="_title_id">
<spring:message var="app_name" code="application.name" />
<spring:message var="title" code="welcome.titlepane" arguments="${app_name}" />
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title_id', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${title}'}})); </script>
<h3><spring:message code="welcome.h3" arguments="${app_name}" /></h3>
<p><spring:message code="welcome.text" /></p>
</div>
<div xmlns:spring="http://www.springframework.org/tags" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<spring:message var="app_name" code="application_name" />
<spring:message var="title" code="welcome_titlepane" arguments="${app_name}" />
<util:panel id="title" title="${title}">
<h3>
<spring:message code="welcome_h3" arguments="${app_name}" />
</h3>
<p>
<spring:message code="welcome_text" />
</p>
</util:panel>
</div>

View File

@@ -1,51 +0,0 @@
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<script type="text/javascript">dojo.require('dijit.TitlePane');</script>
<div id="_title_div">
<spring:message code="label.loanshark" var="entity_label"/>
<spring:message arguments="${entity_label}" code="entity.create" var="title_msg"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title_div', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${title_msg}'}})); </script>
<spring:url value="/loanshark" var="form_url"/>
<form:form action="${form_url}" method="POST" modelAttribute="loanShark">
<form:errors cssClass="errors" delimiter="&lt;p/&gt;"/>
<div id="roo_loanShark_name">
<label for="_name_id">Name:</label>
<form:input cssStyle="width:250px" id="_name_id" maxlength="30" path="name" size="0"/>
<br/>
<form:errors cssClass="errors" id="_name_error_id" path="name"/>
<spring:message arguments="Name" code="field.invalid" var="field_invalid"/>
<spring:message code="field.required" var="field_required"/>
<spring:message argumentSeparator="," arguments="Name," code="field.simple.validation" var="field_validation"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_name_id', widgetType : 'dijit.form.ValidationTextBox', widgetAttrs : {promptMessage: '${field_validation}', invalidMessage: '${field_invalid}', required : false}})); </script>
</div>
<br/>
<div id="roo_loanShark_counter">
<label for="_counter_id">Counter:</label>
<form:input cssStyle="width:250px" id="_counter_id" maxlength="30" path="counter" size="0"/>
<br/>
<form:errors cssClass="errors" id="_counter_error_id" path="counter"/>
<spring:message arguments="Counter" code="field.invalid" var="field_invalid"/>
<spring:message code="field.required" var="field_required"/>
<spring:message argumentSeparator="," arguments="Counter," code="field.simple.validation" var="field_validation"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_counter_id', widgetType : 'dijit.form.ValidationTextBox', widgetAttrs : {promptMessage: '${field_validation}', invalidMessage: '${field_invalid}', required : false}})); </script>
</div>
<br/>
<div id="roo_loanShark_averageRate">
<label for="_averageRate_id">Average Rate:</label>
<form:input cssStyle="width:250px" id="_averageRate_id" maxlength="30" path="averageRate" size="0"/>
<br/>
<form:errors cssClass="errors" id="_averageRate_error_id" path="averageRate"/>
<spring:message code="field.invalid.number" var="field_invalid"/>
<spring:message code="field.required" var="field_required"/>
<spring:message argumentSeparator="," arguments="Average Rate," code="field.simple.validation" var="field_validation"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_averageRate_id', widgetType : 'dijit.form.ValidationTextBox', widgetAttrs : {promptMessage: '${field_validation}', invalidMessage: '${field_invalid}', regExp: '-?[0-9]*\.[0-9]*', required : false}})); </script>
</div>
<br/>
<div class="submit" id="roo_loanShark_submit">
<spring:message code="button.save" var="save_button"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));</script>
<input id="proceed" type="submit" value="${save_button}"/>
</div>
</form:form>
</div>
</div>

View File

@@ -1,25 +0,0 @@
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<script type="text/javascript">dojo.require('dijit.TitlePane');</script>
<div id="_title_div">
<spring:message code="label.name" var="entity_label"/>
<spring:message arguments="${entity_label}" code="entity.find" var="title_msg"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title_div', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${title_msg}'}})); </script>
<spring:url value="/loanshark/find/ByName" var="form_url"/>
<form:form action="${form_url}" method="GET">
<div id="roo_loanShark_name">
<label for="_name_id">Name:</label>
<input id="_name_id" name="name"/>
<spring:message code="field.required" var="field_required"/>
<spring:message argumentSeparator="," arguments="Name,(${field_required})" code="field.simple.validation" var="validation_required"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_name_id', widgetType : 'dijit.form.ValidationTextBox', widgetAttrs : {promptMessage: '${validation_required}', required : true}})); </script>
</div>
<br/>
<div class="submit" id="roo_loanShark_submit">
<spring:message code="button.find" var="find_button"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));</script>
<input id="proceed" type="submit" value="${find_button}"/>
</div>
</form:form>
</div>
</div>

View File

@@ -1,87 +0,0 @@
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:roo="urn:jsptagdir:/WEB-INF/tags" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<script type="text/javascript">dojo.require('dijit.TitlePane');</script>
<div id="_title_div">
<spring:message code="label.loanshark" var="entity_label"/>
<spring:message code="label.loansharks" var="entity_label_plural"/>
<spring:message arguments="${entity_label_plural}" code="entity.list.all" var="title_msg"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title_div', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${title_msg}'}})); </script>
<c:if test="${not empty loansharks}">
<table width="300px">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Counter</th>
<th>Average Rate</th>
<th/>
<th/>
<th/>
</tr>
</thead>
<c:forEach items="${loansharks}" var="loanShark">
<tr>
<td>${loanShark.id}</td>
<td>
<c:out value="${fn:substring(loanShark.name, 0, 15)}"/>
</td>
<td>
<c:out value="${fn:substring(loanShark.counter, 0, 10)}"/>
</td>
<td>
<c:out value="${fn:substring(loanShark.averageRate, 0, 10)}"/>
</td>
<td>
<spring:url value="/loanshark/${loanShark.id}" var="show_form_url"/>
<spring:url value="/static/images/show.png" var="show_image_url"/>
<form:form action="${show_form_url}" method="GET">
<spring:message arguments="${entity_label}" code="entity.show" var="show_label"/>
<input alt="${show_label}" class="image" src="${show_image_url}" title="${show_label}" type="image" value="${show_label}"/>
</form:form>
</td>
<td>
<spring:url value="/loanshark/${loanShark.id}/form" var="update_form_url"/>
<spring:url value="/static/images/update.png" var="update_image_url"/>
<form:form action="${update_form_url}" method="GET">
<spring:message arguments="${entity_label}" code="entity.update" var="update_label"/>
<input alt="${update_label}" class="image" src="${update_image_url}" title="${update_label}" type="image" value="${update_label}"/>
</form:form>
</td>
<td>
<spring:url value="/loanshark/${loanShark.id}" var="delete_form_url"/>
<spring:url value="/static/images/delete.png" var="delete_image_url"/>
<form:form action="${delete_form_url}" method="DELETE">
<spring:message arguments="${entity_label}" code="entity.delete" var="delete_label"/>
<input alt="${delete_label}" class="image" src="${delete_image_url}" title="${delete_label}" type="image" value="${delete_label}"/>
<c:if test="${not empty param.page}">
<input name="page" type="hidden" value="${param.page}"/>
</c:if>
<c:if test="${not empty param.size}">
<input name="size" type="hidden" value="${param.size}"/>
</c:if>
</form:form>
</td>
</tr>
</c:forEach>
<tr class="footer">
<td colspan="7">
<span class="new">
<spring:url value="/loanshark/form" var="create_url"/>
<a href="${create_url}">
<spring:url value="/static/images/add.png" var="create_img_url"/>
<spring:message arguments="${entity_label}" code="global.menu.new" var="add_message"/>
<img alt="${add_message}" src="${create_img_url}" title="${add_message}"/>
</a>
</span>
<c:if test="${not empty maxPages}">
<roo:pagination maxPages="${maxPages}" page="${param.page}" size="${param.size}"/>
</c:if>
</td>
</tr>
</table>
</c:if>
<c:if test="${empty loansharks}">
<spring:message arguments="${entity_label_plural}" code="entity.not.found"/>
</c:if>
</div>
</div>

View File

@@ -1,35 +0,0 @@
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<script type="text/javascript">dojo.require('dijit.TitlePane');</script>
<div id="_title_div">
<spring:message code="label.loanshark" var="entity_label"/>
<spring:message arguments="${entity_label}" code="entity.show" var="title_msg"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title_div', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${title_msg}'}})); </script>
<c:if test="${not empty loanShark}">
<div id="roo_loanShark_name">
<label for="_name_id">Name:</label>
<div class="box" id="_name_id">
<c:out value="${loanShark.name}"/>
</div>
</div>
<br/>
<div id="roo_loanShark_counter">
<label for="_counter_id">Counter:</label>
<div class="box" id="_counter_id">
<c:out value="${loanShark.counter}"/>
</div>
</div>
<br/>
<div id="roo_loanShark_averageRate">
<label for="_averageRate_id">Average Rate:</label>
<div class="box" id="_averageRate_id">
<c:out value="${loanShark.averageRate}"/>
</div>
</div>
<br/>
</c:if>
<c:if test="${empty loanShark}">
<spring:message arguments="${entity_label}" code="entity.not.found.single"/>
</c:if>
</div>
</div>

View File

@@ -1,53 +0,0 @@
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<script type="text/javascript">dojo.require('dijit.TitlePane');</script>
<div id="_title_div">
<spring:message code="label.loanshark" var="entity_label"/>
<spring:message arguments="${entity_label}" code="entity.update" var="title_msg"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title_div', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${title_msg}'}})); </script>
<spring:url value="/loanshark/${loanShark.id}" var="form_url"/>
<form:form action="${form_url}" method="PUT" modelAttribute="loanShark">
<form:errors cssClass="errors" delimiter="&lt;p/&gt;"/>
<div id="roo_loanShark_name">
<label for="_name_id">Name:</label>
<form:input cssStyle="width:250px" id="_name_id" maxlength="30" path="name" size="0"/>
<br/>
<form:errors cssClass="errors" id="_name_error_id" path="name"/>
<spring:message arguments="Name" code="field.invalid" var="field_invalid"/>
<spring:message code="field.required" var="field_required"/>
<spring:message argumentSeparator="," arguments="Name," code="field.simple.validation" var="field_validation"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_name_id', widgetType : 'dijit.form.ValidationTextBox', widgetAttrs : {promptMessage: '${field_validation}', invalidMessage: '${field_invalid}', required : false}})); </script>
</div>
<br/>
<div id="roo_loanShark_counter">
<label for="_counter_id">Counter:</label>
<form:input cssStyle="width:250px" id="_counter_id" maxlength="30" path="counter" size="0"/>
<br/>
<form:errors cssClass="errors" id="_counter_error_id" path="counter"/>
<spring:message arguments="Counter" code="field.invalid" var="field_invalid"/>
<spring:message code="field.required" var="field_required"/>
<spring:message argumentSeparator="," arguments="Counter," code="field.simple.validation" var="field_validation"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_counter_id', widgetType : 'dijit.form.ValidationTextBox', widgetAttrs : {promptMessage: '${field_validation}', invalidMessage: '${field_invalid}', required : false}})); </script>
</div>
<br/>
<div id="roo_loanShark_averageRate">
<label for="_averageRate_id">Average Rate:</label>
<form:input cssStyle="width:250px" id="_averageRate_id" maxlength="30" path="averageRate" size="0"/>
<br/>
<form:errors cssClass="errors" id="_averageRate_error_id" path="averageRate"/>
<spring:message code="field.invalid.number" var="field_invalid"/>
<spring:message code="field.required" var="field_required"/>
<spring:message argumentSeparator="," arguments="Average Rate," code="field.simple.validation" var="field_validation"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_averageRate_id', widgetType : 'dijit.form.ValidationTextBox', widgetAttrs : {promptMessage: '${field_validation}', invalidMessage: '${field_invalid}', regExp: '-?[0-9]*\.[0-9]*', required : false}})); </script>
</div>
<br/>
<div class="submit" id="roo_loanShark_submit">
<spring:message code="button.update" var="update_button"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));</script>
<input id="proceed" type="submit" value="${update_button}"/>
</div>
<form:hidden id="_id_id" path="id"/>
<form:hidden id="_version_id" path="version"/>
</form:form>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields" xmlns:form="urn:jsptagdir:/WEB-INF/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<form:create id="fc_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark" modelAttribute="loanShark" path="/loansharks" render="${empty dependencies}" z="c9pEi55VKZe+i8n9MzE/aMlC8jM=">
<field:input field="name" id="c_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_name" z="bIEr/x7djyVFCXx8FZFe7Y6hZAw="/>
<field:input field="counter" id="c_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_counter" validationMessageCode="field_invalid_integer" z="aGxodKJeAQkoD0u6NHf9KIYbXwM="/>
<field:input field="averageRate" id="c_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_averageRate" validationMessageCode="field_invalid_number" z="y3sxODtPtAzxO4JNFPfZDcqtHhw="/>
</form:create>
<form:dependency dependencies="${dependencies}" id="d_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark" render="${not empty dependencies}" z="GXoU6ZgW0KRwXUT6KeosjHODfa4="/>
</div>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields" xmlns:form="urn:jsptagdir:/WEB-INF/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<form:find finderName="ByName" id="ff_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark" path="/loansharks" z="tSpyuQktrF7PRVI0I3fc8HnXFF0=">
<field:input disableFormBinding="true" field="name" id="f_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_name" z="KVa/0Euz3jC9x02ukhm035J0xsY="/>
</form:find>
</div>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:page="urn:jsptagdir:/WEB-INF/tags/form" xmlns:table="urn:jsptagdir:/WEB-INF/tags/form/fields" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<page:list id="pl_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark" items="${loansharks}" z="WGtRh8RDFNMOqm7ZR3sYpdytL8g=">
<table:table data="${loansharks}" id="l_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark" path="/loansharks" z="VSxTSbzuQSK29x6/yuWTZX93PT4=">
<table:column id="c_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_name" property="name" z="jwBosQRlFEVQgr/SVFGsNnqbmlE="/>
<table:column id="c_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_counter" property="counter" z="mvwK+T3kofhmBM1mMzos71NdB84="/>
<table:column id="c_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_averageRate" property="averageRate" z="xbRLQN/1BJZqfz5t6Z5fRd7VUbE="/>
</table:table>
</page:list>
</div>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:page="urn:jsptagdir:/WEB-INF/tags/form" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<page:show id="ps_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark" object="${loanshark}" path="/loansharks" z="K7r+Ec9zolOYwF2oKzKg+vUbbV4=">
<field:display field="name" id="s_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_name" object="${loanshark}" z="LPR1Z66cGoFLFjgVat6MWvP98+I="/>
<field:display field="counter" id="s_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_counter" object="${loanshark}" z="e+WKAm5/WYOABIGRiXjFUgOqgug="/>
<field:display field="averageRate" id="s_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_averageRate" object="${loanshark}" z="z0fomsHnjIkEuROcZfwamf42j1w="/>
</page:show>
</div>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields" xmlns:form="urn:jsptagdir:/WEB-INF/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<form:update id="fu_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark" modelAttribute="loanShark" path="/loansharks" z="mNB5KsJAJotLrVjasE3cKWnITEk=">
<field:input field="name" id="c_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_name" z="bIEr/x7djyVFCXx8FZFe7Y6hZAw="/>
<field:input field="counter" id="c_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_counter" validationMessageCode="field_invalid_integer" z="aGxodKJeAQkoD0u6NHf9KIYbXwM="/>
<field:input field="averageRate" id="c_org_springframework_integration_samples_loanbroker_loanshark_domain_LoanShark_averageRate" validationMessageCode="field_invalid_number" z="y3sxODtPtAzxO4JNFPfZDcqtHhw="/>
</form:update>
</div>

View File

@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" "http://tiles.apache.org/dtds/tiles-config_2_1.dtd">
<tiles-definitions>
<definition extends="default" name="loanshark/list">
<put-attribute name="body" value="/WEB-INF/views/loanshark/list.jspx"/>
<definition extends="default" name="loansharks/list">
<put-attribute name="body" value="/WEB-INF/views/loansharks/list.jspx"/>
</definition>
<definition extends="default" name="loanshark/show">
<put-attribute name="body" value="/WEB-INF/views/loanshark/show.jspx"/>
<definition extends="default" name="loansharks/show">
<put-attribute name="body" value="/WEB-INF/views/loansharks/show.jspx"/>
</definition>
<definition extends="default" name="loanshark/create">
<put-attribute name="body" value="/WEB-INF/views/loanshark/create.jspx"/>
<definition extends="default" name="loansharks/create">
<put-attribute name="body" value="/WEB-INF/views/loansharks/create.jspx"/>
</definition>
<definition extends="default" name="loanshark/update">
<put-attribute name="body" value="/WEB-INF/views/loanshark/update.jspx"/>
<definition extends="default" name="loansharks/update">
<put-attribute name="body" value="/WEB-INF/views/loansharks/update.jspx"/>
</definition>
<definition extends="default" name="loanshark/findLoanSharksByName">
<put-attribute name="body" value="/WEB-INF/views/loanshark/findLoanSharksByName.jspx"/>
<definition extends="default" name="loansharks/findLoanSharksByName">
<put-attribute name="body" value="/WEB-INF/views/loansharks/findLoanSharksByName.jspx"/>
</definition>
</tiles-definitions>

View File

@@ -1,34 +1,12 @@
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" id="menu" version="2.0">
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:menu="urn:jsptagdir:/WEB-INF/tags/menu" id="menu" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<ul id="roo_menu">
<li id="web_mvc_jsp_loanshark_category">
<h2>
<spring:message code="menu.category.web_mvc_jsp_loanshark_category.label"/>
</h2>
<ul>
<li id="web_mvc_jsp_create_loanshark_menu_item">
<spring:url value="/loanshark/form" var="web_mvc_jsp_create_loanshark_menu_item_url"/>
<a href="${web_mvc_jsp_create_loanshark_menu_item_url}">
<spring:message code="label.loanshark" var="label_loanshark"/>
<spring:message arguments="${label_loanshark}" code="global.menu.new"/>
</a>
</li>
<li id="web_mvc_jsp_list_loanshark_menu_item">
<spring:url value="/loanshark?page=${empty param.page ? 1 : param.page}&amp;amp;size=${empty param.size ? 10 : param.size}" var="web_mvc_jsp_list_loanshark_menu_item_url"/>
<a href="${web_mvc_jsp_list_loanshark_menu_item_url}">
<spring:message code="label.loansharks" var="label_loansharks"/>
<spring:message arguments="${label_loansharks}" code="global.menu.list"/>
</a>
</li>
<li id="finder_findloansharksbyname_menu_item">
<spring:url value="/loanshark/find/ByName/form" var="finder_findloansharksbyname_menu_item_url"/>
<a href="${finder_findloansharksbyname_menu_item_url}">
<spring:message code="label.name" var="label_name"/>
<spring:message arguments="${label_name}" code="global.menu.find"/>
</a>
</li>
</ul>
</li>
</ul>
<menu:menu id="_menu" z="nZaf43BjUg1iM0v70HJVEsXDopc=">
<menu:category id="c_loanshark" z="8WhvO4BkJx0liJrPcVuP2MdHid0=">
<menu:item id="i_loanshark_new" messageCode="global_menu_new" url="/loansharks?form" z="cljPwN6n9eTQzC6NQ3Xi2zVo/xA="/>
<menu:item id="i_loanshark_list" messageCode="global_menu_list" url="/loansharks?page=${empty param.page ? 1 : param.page}&amp;size=${empty param.size ? 10 : param.size}" z="VD7u9XTs1kINHz9TpYe/mckdgOo="/>
<menu:item id="fi_loanshark_name" messageCode="global_menu_find" url="/loansharks?find=ByName&amp;form" z="yOgcsk0sqfq0Xcy6NTnL6c8kJ74="/>
</menu:category>
</menu:menu>
</div>

View File

@@ -1,29 +1,28 @@
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<script type="text/javascript">dojo.require("dijit.TitlePane")</script>
<div id="_title">
<spring:message var="title" code="error.resourcenotfound.title" />
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${title}'}})); </script>
<h2>${title}</h2>
<p><spring:message code="error.resourcenotfound.problemdescription" /></p>
<c:if test="${not empty exception}">
<p>
<h4><spring:message code="exception.details" /></h4>
<spring:message var="message" code="exception.message" />
<div id="_exception">
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_exception', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${message}', open:false}})); </script>
<c:out value="${exception.localizedMessage}" />
</div>
<spring:message var="stacktrace" code="exception.stacktrace" />
<div id="_stacktrace">
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_stacktrace', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${stacktrace}', open:false}})); </script>
<c:forEach items="${exception.stackTrace}" var="trace">
<c:out value="${trace}"/><br/>
</c:forEach>
</div>
</p>
</c:if>
</div>
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<spring:message var="title" code="error_resourcenotfound_title" />
<util:panel id="title" title="${title}">
<h2>${fn:escapeXml(title)}</h2>
<p>
<spring:message code="error_resourcenotfound_problemdescription" />
</p>
<c:if test="${not empty exception}">
<p>
<h4>
<spring:message code="exception_details" />
</h4>
<spring:message var="message" code="exception_message" />
<util:panel id="_message" title="${message}" openPane="false">
<c:out value="${exception.localizedMessage}" />
</util:panel>
<spring:message var="stacktrace" code="exception_stacktrace" />
<util:panel id="_exception" title="${stacktrace}" openPane="false">
<c:forEach items="${exception.stackTrace}" var="trace">
<c:out value="${trace}" />
<br />
</c:forEach>
</util:panel>
</p>
</c:if>
</util:panel>
</div>

View File

@@ -1,29 +1,28 @@
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<script type="text/javascript">dojo.require("dijit.TitlePane")</script>
<div id="_title">
<spring:message var="title" code="error.uncaughtexception.title" />
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_title', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${title}'}})); </script>
<h2>${title}</h2>
<p><spring:message code="error.uncaughtexception.problemdescription" /></p>
<c:if test="${not empty exception}">
<p>
<h4><spring:message code="exception.details" /></h4>
<spring:message var="message" code="exception.message" />
<div id="_exception">
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_exception', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${message}', open:false}})); </script>
<c:out value="${exception.localizedMessage}" />
</div>
<spring:message var="stacktrace" code="exception.stacktrace" />
<div id="_stacktrace">
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : '_stacktrace', widgetType : 'dijit.TitlePane', widgetAttrs : {title: '${stacktrace}', open:false}})); </script>
<c:forEach items="${exception.stackTrace}" var="trace">
<c:out value="${trace}"/><br/>
</c:forEach>
</div>
</p>
</c:if>
</div>
<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" xmlns:spring="http://www.springframework.org/tags" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes" />
<spring:message var="title" code="error_uncaughtexception_title" />
<util:panel id="title" title="${title}">
<h2>${fn:escapeXml(title)}</h2>
<p>
<spring:message code="error_uncaughtexception_problemdescription" />
</p>
<c:if test="${not empty exception}">
<p>
<h4>
<spring:message code="exception_details" />
</h4>
<spring:message var="message" code="exception_message" />
<util:panel id="_message" title="${message}" openPane="false">
<c:out value="${exception.localizedMessage}" />
</util:panel>
<spring:message var="stacktrace" code="exception_stacktrace" />
<util:panel id="_exception" title="${stacktrace}" openPane="false">
<c:forEach items="${exception.stackTrace}" var="trace">
<c:out value="${trace}" />
<br />
</c:forEach>
</util:panel>
</p>
</c:if>
</util:panel>
</div>

View File

@@ -2,23 +2,23 @@
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
"http://tiles.apache.org/dtds/tiles-config_2_1.dtd">
<tiles-definitions>
<definition name="index" extends="default">
<put-attribute name="body" value="/WEB-INF/views/index.jspx" />
</definition>
<definition name="dataAccessFailure" extends="public">
<put-attribute name="body" value="/WEB-INF/views/dataAccessFailure.jspx" />
</definition>
<definition name="resourceNotFound" extends="public">
<put-attribute name="body" value="/WEB-INF/views/resourceNotFound.jspx" />
</definition>
<definition name="uncaughtException" extends="public" >
<put-attribute name="body" value="/WEB-INF/views/uncaughtException.jspx" />
</definition>
<definition name="index" extends="default">
<put-attribute name="body" value="/WEB-INF/views/index.jspx" />
</definition>
<definition name="dataAccessFailure" extends="public">
<put-attribute name="body" value="/WEB-INF/views/dataAccessFailure.jspx" />
</definition>
<definition name="resourceNotFound" extends="public">
<put-attribute name="body" value="/WEB-INF/views/resourceNotFound.jspx" />
</definition>
<definition name="uncaughtException" extends="public">
<put-attribute name="body" value="/WEB-INF/views/uncaughtException.jspx" />
</definition>
</tiles-definitions>

View File

@@ -1,136 +1,98 @@
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>loanshark</display-name>
<description>Roo generated loanshark application</description>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:META-INF/spring/log4j.properties</param-value>
</context-param>
<display-name>loanshark</display-name>
<description>Roo generated loanshark application</description>
<!-- Enable escaping of form submission contents -->
<context-param>
<param-name>defaultHtmlEscape</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>loanshark.root</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:META-INF/spring/applicationContext*.xml</param-value>
</context-param>
<filter>
<filter-name>etagFilter</filter-name>
<filter-class>org.springframework.web.filter.ShallowEtagHeaderFilter</filter-class>
</filter>
<filter>
<filter-name>CharacterEncodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter>
<filter-name>httpMethodFilter</filter-name>
<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
</filter>
<filter>
<filter-name>UrlRewriteFilter</filter-name>
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
</filter>
<!-- See ROO-579: this filter will cause login page redisplay with Spring Security, so is disabled by default
<filter-mapping>
<filter-name>etagFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
--><filter>
<param-name>defaultHtmlEscape</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:META-INF/spring/applicationContext*.xml</param-value>
</context-param>
<filter>
<filter-name>Spring OpenEntityManagerInViewFilter</filter-name>
<filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter>
<filter-name>CharacterEncodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter>
<filter-name>HttpMethodFilter</filter-name>
<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Spring OpenEntityManagerInViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CharacterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>httpMethodFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<filter-name>CharacterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>HttpMethodFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Creates the Spring Container shared by all Servlets and Filters -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>loanshark</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/webmvc-config.xml</param-value>
</init-param>
</servlet>
<!--
Serves static resource content from .jar files such as spring-js.jar
-->
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.springframework.js.resource.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>loanshark</servlet-name>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>
<!--
Map all /resources requests to the Resource Servlet for handling
-->
<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/resources/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>10</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jspx</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/app/uncaughtException</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/app/resourceNotFound</location>
</error-page>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Handles Spring requests -->
<servlet>
<servlet-name>loanshark</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/webmvc-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>loanshark</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>10</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>/</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/uncaughtException</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/resourceNotFound</location>
</error-page>
</web-app>

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 B

View File

Before

Width:  |  Height:  |  Size: 599 B

After

Width:  |  Height:  |  Size: 599 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 542 B

View File

@@ -8,24 +8,25 @@ body,div,td {
body {
background-color: #fff;
background-image: url(../images/banner-graphic.png);
background-position: top center;
background-repeat: no-repeat;
text-align: center;
}
#header {
margin-bottom: 1em;
}
#wrapper {
width:800px;
min-width: 800px;
max-width: 800px;
margin-right: auto;
margin-left: auto;
/* fix max-width incompatibility in IE6 */
width:expression(document.body.clientWidth > 800? "800px": "auto" );
overflow:hidden;
display:block;
margin-top: 90px;
}
/* header and footer elements */
@@ -95,6 +96,14 @@ body {
#footer a:link {color: #7db223;}
.quicklinks {
clear:both;
padding-bottom: 15px
}
.quicklinks span {
float: right;
}
label {
width:100px;
float:left;
@@ -201,23 +210,11 @@ a:visited {
color: #7db223;
}
ul {
list-style: disc url(../images/bullet-arrow.png);
}
li {
padding-top: 5px;
text-align: left;
}
li ul {
list-style: square url(../images/sub-bullet.gif);
}
li ul li ul {
list-style: circle none;
}
ul li {
margin:0 0 0.25em 0;
padding:0;
@@ -250,7 +247,7 @@ table td form {
}
table th {
font-size: 0.75em;
font-size: 0.9em;
text-align: left;
font-weight: bold;
color: #FFF;
@@ -345,4 +342,21 @@ fieldset th {
padding:2px 8px;
font-size:11px;
color:#888888;
}
.dijitTextArea{
min-height:5.5em !important;
max-height:22em !important;
overflow-y: auto !important;
max-width: 175px;
}
.RichTextEditable{
min-height:18em !important;
max-height:18em !important;
}
.flag {
height: 11px;
width: 16px;
}

View File

@@ -8,24 +8,25 @@ body,div,td {
body {
background-color: #fff;
background-image: url(../images/banner-graphic.png);
background-position: top center;
background-repeat: no-repeat;
text-align: center;
}
#header {
margin-bottom: 1em;
}
#wrapper {
width:800px;
min-width: 800px;
max-width: 800px;
margin-right: auto;
margin-left: auto;
/* fix max-width incompatibility in IE6 */
width:expression(document.body.clientWidth > 800? "800px": "auto" );
overflow:hidden;
display:block;
margin-top: 90px;
}
/* header and footer elements */
@@ -95,6 +96,18 @@ body {
#footer a:link {color: #7db223;}
.quicklinks {
clear:both;
padding-bottom: 15px
}
.quicklinks span {
float: right;
}
table.navigation {
border: 0px;
}
label {
width:100px;
float:left;
@@ -201,23 +214,11 @@ a:visited {
color: #7db223;
}
ul {
list-style: disc url(../images/bullet-arrow.png);
}
li {
padding-top: 5px;
text-align: left;
}
li ul {
list-style: square url(../images/sub-bullet.gif);
}
li ul li ul {
list-style: circle none;
}
ul li {
margin:0 0 0.25em 0;
padding:0;
@@ -250,7 +251,7 @@ table td form {
}
table th {
font-size: 0.75em;
font-size: 0.9em;
text-align: left;
font-weight: bold;
color: #FFF;
@@ -345,4 +346,21 @@ fieldset th {
padding:2px 8px;
font-size:11px;
color:#888888;
}
.dijitTextArea{
min-height:5.5em !important;
max-height:22em !important;
overflow-y: auto !important;
max-width: 175px;
}
.RichTextEditable{
min-height:18em !important;
max-height:18em !important;
}
.flag {
height: 11px;
width: 16px;
}