You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by me...@apache.org on 2022/11/25 17:51:01 UTC

[myfaces] branch main updated: MYFACES-4509: Quarkus remove view init optimization (#396) (#397)

This is an automated email from the ASF dual-hosted git repository.

melloware pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/main by this push:
     new c11043df2 MYFACES-4509: Quarkus remove view init optimization (#396) (#397)
c11043df2 is described below

commit c11043df229b86b641d427651a43198e1f7444ed
Author: Melloware <me...@gmail.com>
AuthorDate: Fri Nov 25 12:50:56 2022 -0500

    MYFACES-4509: Quarkus remove view init optimization (#396) (#397)
---
 .../quarkus/deployment/MyFacesProcessor.java       | 35 ----------------------
 1 file changed, 35 deletions(-)

diff --git a/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/MyFacesProcessor.java b/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/MyFacesProcessor.java
index 651c24b27..b4f4a8de5 100644
--- a/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/MyFacesProcessor.java
+++ b/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/MyFacesProcessor.java
@@ -22,8 +22,6 @@ import java.io.IOException;
 import java.util.Optional;
 
 import jakarta.faces.application.ProjectStage;
-import jakarta.faces.application.StateManager;
-import jakarta.faces.application.ViewHandler;
 import jakarta.faces.component.FacesComponent;
 import jakarta.faces.component.behavior.FacesBehavior;
 import jakarta.faces.convert.FacesConverter;
@@ -294,29 +292,6 @@ class MyFacesProcessor
 
         Optional<String> projectStage = resolveProjectStage(config);
         initParam.produce(new ServletInitParamBuildItem(ProjectStage.PROJECT_STAGE_PARAM_NAME, projectStage.get()));
-
-        // common
-        initParam.produce(new ServletInitParamBuildItem(
-                MyfacesConfig.LOG_WEB_CONTEXT_PARAMS, "false"));
-        initParam.produce(new ServletInitParamBuildItem(
-                StateManager.STATE_SAVING_METHOD_PARAM_NAME, StateManager.STATE_SAVING_METHOD_SERVER));
-        initParam.produce(new ServletInitParamBuildItem(
-                StateManager.SERIALIZE_SERVER_STATE_PARAM_NAME, "false"));
-
-        // perf
-        initParam.produce(new ServletInitParamBuildItem(
-                MyfacesConfig.CHECK_ID_PRODUCTION_MODE, "false"));
-        initParam.produce(new ServletInitParamBuildItem(
-                MyfacesConfig.EARLY_FLUSH_ENABLED, "true"));
-        initParam.produce(new ServletInitParamBuildItem(
-                MyfacesConfig.COMPRESS_STATE_IN_SESSION, "false"));
-
-        // MyFaces uses default 0, which means always recompile
-        if (ProjectStage.valueOf(projectStage.get()) == ProjectStage.Development)
-        {
-            initParam.produce(new ServletInitParamBuildItem(
-                    ViewHandler.FACELETS_REFRESH_PERIOD_PARAM_NAME, "1"));
-        }
     }
 
     @BuildStep
@@ -762,16 +737,6 @@ class MyFacesProcessor
         }
     }
 
-
-    @BuildStep
-    void buildPrimeFacesRecommendedInitParams(BuildProducer<ServletInitParamBuildItem> initParam) throws IOException
-    {
-        initParam.produce(new ServletInitParamBuildItem(
-                "primefaces.SUBMIT", "partial"));
-        initParam.produce(new ServletInitParamBuildItem(
-                "primefaces.MOVE_SCRIPTS_TO_BOTTOM", "true"));
-    }
-
     @BuildStep
     void producePrimeFacesApplicationArchiveMarker(
             BuildProducer<AdditionalApplicationArchiveMarkerBuildItem> additionalArchiveMarkers)