Author: echatellier Date: 2009-11-19 18:30:17 +0100 (Thu, 19 Nov 2009) New Revision: 2799 Modified: trunk/pollen-ui/src/main/java/org/chorem/pollen/ui/services/AppModule.java Log: Change production mode parameter. Modified: trunk/pollen-ui/src/main/java/org/chorem/pollen/ui/services/AppModule.java =================================================================== --- trunk/pollen-ui/src/main/java/org/chorem/pollen/ui/services/AppModule.java 2009-11-13 17:41:42 UTC (rev 2798) +++ trunk/pollen-ui/src/main/java/org/chorem/pollen/ui/services/AppModule.java 2009-11-19 17:30:17 UTC (rev 2799) @@ -88,14 +88,15 @@ // The factory default is true but during the early stages of an application // overriding to false is a good idea. In addition, this is often overridden // on the command line as -Dtapestry.production-mode=false - configuration.add(SymbolConstants.PRODUCTION_MODE, "false"); + // The primary difference is how exceptions are reported. + configuration.add(SymbolConstants.PRODUCTION_MODE, "true"); // Restricting file size in upload component configuration.add(UploadSymbols.FILESIZE_MAX, "1048576"); configuration.add(UploadSymbols.REQUESTSIZE_MAX, "10485760"); } - /** + /* * This is a service definition, the service will be named "TimingFilter". * The interface, RequestFilter, is used within the RequestHandler service * pipeline, which is built from the RequestHandler service configuration. @@ -113,7 +114,7 @@ * the service interface and would be "RequestFilter". Since Tapestry * already defines a service named "RequestFilter" we use an explicit * service id that we can reference inside the contribution method. - */ + * public RequestFilter buildTimingFilter(final Logger log) { return new RequestFilter() { public boolean service(Request request, Response response, @@ -133,7 +134,7 @@ } } }; - } + }*/ /** * This is the Shutdown service definition. This service is used when the @@ -188,14 +189,14 @@ "before:ApplicationDefaults"); } - /** + /* * This is a contribution to the RequestHandler service configuration. This * is how we extend Tapestry using the timing filter. A common use for this * kind of filter is transaction management or security. The @Local * annotation selects the desired service by type, but only from the same * module. Without @Local, there would be an error due to the other * service(s) that implement RequestFilter (defined in other modules). - */ + * public void contributeRequestHandler( OrderedConfiguration<RequestFilter> configuration, @Local RequestFilter filter) { @@ -203,6 +204,6 @@ // set constraints to precisely control the invocation order of the contributed filter // within the pipeline. - configuration.add("Timing", filter); - } + //configuration.add("Timing", filter); + }*/ }