You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2013/06/19 00:34:32 UTC
[7/8] git commit: Switch one of the test applications over to using
jquery
Switch one of the test applications over to using jquery
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/e6a726bc
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/e6a726bc
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/e6a726bc
Branch: refs/heads/master
Commit: e6a726bcf341b7bfe38b1847ebf1cf107969f833
Parents: 77af00a
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Tue Jun 18 14:15:08 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Tue Jun 18 14:15:08 2013 -0700
----------------------------------------------------------------------
.../integration/app3/services/AppModule.java | 31 +++++++++++++-------
1 file changed, 21 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/e6a726bc/tapestry-core/src/test/java/org/apache/tapestry5/integration/app3/services/AppModule.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app3/services/AppModule.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app3/services/AppModule.java
index bf86974..a675bef 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app3/services/AppModule.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app3/services/AppModule.java
@@ -21,6 +21,8 @@ import org.apache.tapestry5.ioc.OrderedConfiguration;
import org.apache.tapestry5.ioc.annotations.Contribute;
import org.apache.tapestry5.services.DisplayBlockContribution;
import org.apache.tapestry5.services.Request;
+import org.apache.tapestry5.services.compatibility.Compatibility;
+import org.apache.tapestry5.services.compatibility.Trait;
import org.apache.tapestry5.services.security.ClientWhitelist;
import org.apache.tapestry5.services.security.WhitelistAnalyzer;
@@ -34,21 +36,30 @@ public class AppModule
public static void contributeApplicationDefaults(MappedConfiguration<String, String> configuration)
{
configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, "false");
-
+
configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
+
+ configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery");
+ }
+
+ @Contribute(Compatibility.class)
+ public static void disableBackwardsCompatibleFeatures(MappedConfiguration<Trait, Boolean> configuration)
+ {
+ configuration.add(Trait.INITIALIZERS, false);
+ configuration.add(Trait.SCRIPTACULOUS, false);
}
@Contribute(ClientWhitelist.class)
public static void provideWhitelistAnalyzer(OrderedConfiguration<WhitelistAnalyzer> configuration)
{
- configuration.add("TestAnalyzer", new WhitelistAnalyzer()
- {
-
- public boolean isRequestOnWhitelist(Request request)
- {
- return true;
- }
- }, "before:*");
+ configuration.add("TestAnalyzer", new WhitelistAnalyzer()
+ {
+
+ public boolean isRequestOnWhitelist(Request request)
+ {
+ return true;
+ }
+ }, "before:*");
}
-
+
}