You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/07/14 00:49:14 UTC
svn commit: r963895 -
/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java
Author: lu4242
Date: Tue Jul 13 22:49:14 2010
New Revision: 963895
URL: http://svn.apache.org/viewvc?rev=963895&view=rev
Log:
MYFACES-2818 Add constructor to MyfacesConfig that assign all default values for testing
Modified:
myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java
Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java?rev=963895&r1=963894&r2=963895&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java (original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/config/MyfacesConfig.java Tue Jul 13 22:49:14 2010
@@ -309,6 +309,32 @@ public class MyfacesConfig
return myfacesConfig;
}
+
+ public MyfacesConfig()
+ {
+ setPrettyHtml(INIT_PARAM_PRETTY_HTML_DEFAULT);
+ setAllowJavascript(INIT_PARAM_ALLOW_JAVASCRIPT_DEFAULT);
+ setRenderClearJavascriptOnButton(INIT_PARAM_RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON_DEFAULT);
+ setRenderHiddenFieldsForLinkParams(INIT_PARAM_RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS_DEFAULT);
+ setSaveFormSubmitLinkIE(INIT_PARAM_SAVE_FORM_SUBMIT_LINK_IE_DEFAULT);
+ setReadonlyAsDisabledForSelect(INIT_READONLY_AS_DISABLED_FOR_SELECT_DEFAULT);
+ setRenderViewStateId(INIT_PARAM_RENDER_VIEWSTATE_ID_DEFAULT);
+ setStrictXhtmlLinks(INIT_PARAM_STRICT_XHTML_LINKS_DEFAULT);
+ setConfigRefreshPeriod(INIT_PARAM_CONFIG_REFRESH_PERIOD_DEFAULT);
+ setViewStateJavascript(INIT_PARAM_VIEWSTATE_JAVASCRIPT_DEFAULT);
+ setRefreshTransientBuildOnPSS(true);
+ setRefreshTransientBuildOnPSSAuto(true);
+ setRefreshTransientBuildOnPSSPreserveState(INIT_PARAM_REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE_DEFAULT);
+ setValidateXML(INIT_PARAM_VALIDATE_XML_DEFAULT);
+ setWrapScriptContentWithXmlCommentTag(INIT_PARAM_WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG_DEFAULT);
+ setDetectJavascript(INIT_PARAM_DETECT_JAVASCRIPT_DEFAULT);
+ setAutoScroll(INIT_PARAM_AUTO_SCROLL_DEFAULT);
+ setAddResourceClass(INIT_PARAM_ADD_RESOURCE_CLASS_DEFAULT);
+ setResourceVirtualPath(INIT_PARAM_RESOURCE_VIRTUAL_PATH_DEFAULT);
+ //The default is true but we'll let it false because it depends if
+ //tomahawk is on classpath and no test environment is set
+ setCheckExtensionsFilter(false);
+ }
private static MyfacesConfig createAndInitializeMyFacesConfig(ExternalContext extCtx) {