From abfd16a2864a19c84055268f99c528c1f957e26c Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 15 Oct 2024 15:59:14 -0400 Subject: [PATCH] Added MyFaces @View temporarily --- .../primefaces/deployment/PrimefacesProcessor.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quarkus-primefaces/deployment/src/main/java/io/quarkiverse/primefaces/deployment/PrimefacesProcessor.java b/quarkus-primefaces/deployment/src/main/java/io/quarkiverse/primefaces/deployment/PrimefacesProcessor.java index c40eb34..e794121 100644 --- a/quarkus-primefaces/deployment/src/main/java/io/quarkiverse/primefaces/deployment/PrimefacesProcessor.java +++ b/quarkus-primefaces/deployment/src/main/java/io/quarkiverse/primefaces/deployment/PrimefacesProcessor.java @@ -11,6 +11,7 @@ import org.primefaces.util.PropertyDescriptorResolver; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; +import io.quarkus.arc.deployment.BeanDefiningAnnotationBuildItem; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.annotations.ExecutionTime; @@ -170,6 +171,7 @@ void registerForReflection(PrimeFacesRecorder recorder, BuildProducer additionalBean, + BuildProducer beanDefiningAnnotation, BuildProducer reflectiveClass) { additionalBean.produce(AdditionalBeanBuildItem .unremovableOf(org.apache.myfaces.push.cdi.WebsocketScopeManager.ApplicationScope.class)); @@ -178,6 +180,9 @@ void temporaryMyFacesStuff(BuildProducer additionalBean additionalBean.produce( AdditionalBeanBuildItem.unremovableOf(org.apache.myfaces.push.cdi.WebsocketScopeManager.ViewScope.class)); + beanDefiningAnnotation + .produce(new BeanDefiningAnnotationBuildItem(DotName.createSimple(jakarta.faces.annotation.View.class))); + // TODO: remove in MyFaces 4.0.3 reflectiveClass.produce(ReflectiveClassBuildItem.builder("org.apache.myfaces.view.facelets.component.RepeatStatus") .methods(true).fields(true).build()); @@ -224,4 +229,4 @@ public List collectImplementors(CombinedIndexBuildItem combinedIndex, St classes.add(className); return classes; } -} +} \ No newline at end of file