/** * This template method called from the {@link #setupFacesListener()} if Sun JSF reference implementation presents. * The default implementation sets the "com.sun.faces.validateXml" "com.sun.faces.verifyObjects" init parameters to * the "true" */ protected void setupSunFaces() { facesServer.addInitParameter("com.sun.faces.validateXml", "true"); facesServer.addInitParameter("com.sun.faces.verifyObjects", "true"); }
/** * This template method called from the {@link #setupFacesListener()} if Sun JSF reference implementation presents. * The default implementation sets the "com.sun.faces.validateXml" "com.sun.faces.verifyObjects" init parameters to * the "true" */ protected void setupSunFaces() { facesServer.addInitParameter("com.sun.faces.validateXml", "true"); facesServer.addInitParameter("com.sun.faces.verifyObjects", "true"); }
/** * This template method called from {@link #setUp()} to append appropriate init parameters to the test server. The * default implementation sets state saving method to the "server", default jsf page suffix to the ".xhtml" and * project stage to UnitTest */ protected void setupJsfInitParameters() { facesServer.addInitParameter(StateManager.STATE_SAVING_METHOD_PARAM_NAME, StateManager.STATE_SAVING_METHOD_SERVER); facesServer.addInitParameter(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME, ".xhtml"); // Do not use Jsf 2.0 classes directly because this environment should // be applicable for any JSF version. facesServer.addInitParameter("javax.faces.PROJECT_STAGE", "UnitTest"); }
/** * This template method called from {@link #setUp()} to append appropriate init parameters to the test server. The * default implementation sets state saving method to the "server", default jsf page suffix to the ".xhtml" and * project stage to UnitTest */ protected void setupJsfInitParameters() { facesServer.addInitParameter(StateManager.STATE_SAVING_METHOD_PARAM_NAME, StateManager.STATE_SAVING_METHOD_SERVER); facesServer.addInitParameter(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME, ".xhtml"); // Do not use Jsf 2.0 classes directly because this environment should // be applicable for any JSF version. facesServer.addInitParameter("javax.faces.PROJECT_STAGE", "UnitTest"); }
/** * <p class="changed_added_4_0"> * </p> * * @param name * @param value * @see org.jboss.test.faces.staging.StagingServer#addInitParameter(java.lang.String, java.lang.String) */ public FacesEnvironment withInitParameter(String name, String value) { checkNotInitialized(); this.facesServer.addInitParameter(name, value); return this; }
/** * <p class="changed_added_4_0"> * </p> * * @param name * @param value * @see org.jboss.test.faces.staging.StagingServer#addInitParameter(java.lang.String, java.lang.String) */ public FacesEnvironment withInitParameter(String name, String value) { checkNotInitialized(); this.facesServer.addInitParameter(name, value); return this; }