Browse Source

don't include the core JavaScript stack by default, remove obsolete contribution

Jochen Berger 9 years ago
parent
commit
0858c9f291

+ 1 - 11
frameworks/Java/tapestry/hello/src/main/java/hello/services/AppModule.java

@@ -46,17 +46,7 @@ public class AppModule
         // the first locale name is the default when there's no reasonable match).
         configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en");
         configuration.add(SymbolConstants.OMIT_GENERATOR_META, true);
+        configuration.add(SymbolConstants.INCLUDE_CORE_STACK, false);
         
     }
-    
-    public void contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter> configuration){
-      // prevent addition of the default stylesheet. There will be a symbol to toggle this behavior in Tapestry 5.4.
-      configuration.override("InjectDefaultStylesheet", new MarkupRendererFilter() {
-        
-        @Override
-        public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) {
-          renderer.renderMarkup(writer);
-        }
-      });
-    }
 }