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 22:22:31 UTC

[myfaces] branch 2.3.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 2.3.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/2.3.x by this push:
     new c85c4aca9 MYFACES-4559: application implicit object fix
     new 7e264a038 Merge pull request #518 from pnicolucci/MYFACES-4559-23x
c85c4aca9 is described below

commit c85c4aca9c26746f6979357dac64619651601a30
Author: Paul Nicolucci <pn...@gmail.com>
AuthorDate: Sat Feb 11 12:05:46 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 7d7cd6791..2fbbb453d 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 javax.faces.annotation.RequestParameterMap;
 import javax.faces.annotation.RequestParameterValuesMap;
 import javax.faces.annotation.SessionMap;
 import javax.faces.annotation.ViewMap;
-import javax.faces.application.Application;
 import javax.faces.application.ResourceHandler;
 import javax.faces.component.UIViewRoot;
 import javax.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