Skip to content

Commit

Permalink
Configure application default in order to Disable GZIP_COMPRESSION
Browse files Browse the repository at this point in the history
  • Loading branch information
ffacon committed Nov 24, 2014
1 parent 845b00f commit 5e67319
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
Expand Up @@ -189,14 +189,7 @@ public static void contributeFactoryDefaults(
configuration.add(PortletSymbolConstants.EXCLUDE_ASSETS, "false");
}

@Contribute( SymbolProvider.class )
@ApplicationDefaults
public static void switchProviderToJQuery( MappedConfiguration<String,Object> configuration )
{
configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery" );
}



public PortletApplicationInitializer build(
Logger logger,
List<PortletApplicationInitializerFilter> configuration,
Expand Down Expand Up @@ -814,5 +807,12 @@ public void contributeApplicationStatePersistenceStrategySource(
configuration.add(PortletPersistenceConstants.PORTLET_SESSION_APPLICATION_SCOPE, sessionStategy);
}


public static void contributeApplicationDefaults(
MappedConfiguration<String, String> configuration)
{
//GZIP compression not supported in Portlet Context
configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, "false");
}

}
@@ -1,8 +1,7 @@
package org.apache.tapestry5.portlet.services;

import org.apache.tapestry5.EventConstants;

import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.corelib.components.AjaxFormLoop;
import org.apache.tapestry5.ioc.Configuration;
import org.apache.tapestry5.ioc.MappedConfiguration;
import org.apache.tapestry5.ioc.annotations.SubModule;
Expand All @@ -21,7 +20,7 @@ public class AppModule
public static void contributeApplicationDefaults(
MappedConfiguration<String, String> configuration)
{
configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, "false");
configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en");
configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
configuration.add(SymbolConstants.APPLICATION_VERSION, "5.4-beta22");
Expand Down

0 comments on commit 5e67319

Please sign in to comment.