You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by pa...@apache.org on 2023/02/11 16:29:29 UTC

[myfaces] branch 3.0.x updated: MYFACES-4559: application implicit object fix

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

paulnicolucci pushed a commit to branch 3.0.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/3.0.x by this push:
     new 6c6c902b1 MYFACES-4559: application implicit object fix
     new 5c6ec4d83 Merge pull request #516 from pnicolucci/MYFACES-4559-30x
6c6c902b1 is described below

commit 6c6c902b15866eb00ce74c060314d198571d891d
Author: Paul Nicolucci <pn...@gmail.com>
AuthorDate: Fri Feb 10 20:15:48 2023 -0500

    MYFACES-4559: application implicit object fix
---
 impl/src/main/java/org/apache/myfaces/cdi/JsfArtifactProducer.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/cdi/JsfArtifactProducer.java b/impl/src/main/java/org/apache/myfaces/cdi/JsfArtifactProducer.java
index 07be72606..bfa82f3a3 100644
--- a/impl/src/main/java/org/apache/myfaces/cdi/JsfArtifactProducer.java
+++ b/impl/src/main/java/org/apache/myfaces/cdi/JsfArtifactProducer.java
@@ -31,7 +31,6 @@ import jakarta.faces.annotation.RequestParameterMap;
 import jakarta.faces.annotation.RequestParameterValuesMap;
 import jakarta.faces.annotation.SessionMap;
 import jakarta.faces.annotation.ViewMap;
-import jakarta.faces.application.Application;
 import jakarta.faces.application.ResourceHandler;
 import jakarta.faces.component.UIViewRoot;
 import jakarta.faces.context.ExternalContext;
@@ -46,9 +45,9 @@ public class JsfArtifactProducer
    @Produces
    @Named("application")
    @ApplicationScoped
-   public Application getApplication()
+   public Object getApplication()
    {
-      return FacesContext.getCurrentInstance().getApplication();
+      return FacesContext.getCurrentInstance().getExternalContext().getContext();
    }
    
    @Produces