Skip to content

Commit

Permalink
MyFaces 4.1.0-RC3 (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 3, 2024
1 parent 26138d2 commit effb987
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<quarkus-itext.version>3.1.2</quarkus-itext.version>
<primefaces.version>14.0.6</primefaces.version>
<primefaces-extensions.version>14.0.6</primefaces-extensions.version>
<myfaces.version>4.0.2</myfaces.version>
<myfaces.version>4.1.0-RC3</myfaces.version>
<maven.compiler.release>17</maven.compiler.release>
</properties>
<dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
import java.util.ArrayList;
import java.util.List;

import org.jboss.jandex.DotName;
import org.primefaces.model.file.CommonsUploadedFile;
import org.primefaces.util.Constants;
import org.primefaces.util.PropertyDescriptorResolver;

import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.arc.deployment.BeanDefiningAnnotationBuildItem;
import io.quarkus.deployment.IsNormal;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
Expand Down Expand Up @@ -193,40 +190,6 @@ void registerForSerialization(PrimeFacesRecorder recorder, BuildProducer<Reflect
ReflectiveClassBuildItem.builder(classNames.toArray(new String[0])).methods().fields().serialization().build());
}

// TODO: Remove after MyFaces 4.0.3
@BuildStep
void temporaryMyFacesStuff(BuildProducer<AdditionalBeanBuildItem> additionalBean,
BuildProducer<BeanDefiningAnnotationBuildItem> beanDefiningAnnotation,
BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {
additionalBean.produce(AdditionalBeanBuildItem
.unremovableOf(org.apache.myfaces.push.cdi.WebsocketScopeManager.ApplicationScope.class));
additionalBean.produce(
AdditionalBeanBuildItem.unremovableOf(org.apache.myfaces.push.cdi.WebsocketScopeManager.SessionScope.class));
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",
"org.apache.myfaces.push.EndpointImpl",
"jakarta.faces.component._AttachedStateWrapper",
"jakarta.faces.component._DeltaStateHelper",
"jakarta.faces.component._DeltaStateHelper$InternalMap",
"jakarta.faces.context._MyFacesExternalContextHelper",
"jakarta.faces.component._AttachedDeltaWrapper",
"java.util.Collections$EmptySet",
java.lang.StringBuilder.class.getName(),
jakarta.el.Expression.class.getName(),
jakarta.el.ValueExpression.class.getName(),
jakarta.faces.view.Location.class.getName(),
org.apache.myfaces.view.ViewScopeProxyMap.class.getName(),
org.apache.myfaces.view.facelets.tag.faces.FaceletState.class.getName())
.methods().fields().serialization().build());
}

@BuildStep
void enforceInitParams(BuildProducer<ServletInitParamBuildItem> initParam) {
// only native uploading is supported no need for Commons FileUpload
Expand Down

0 comments on commit effb987

Please sign in to comment.