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:41 UTC

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


The following commit(s) were added to refs/heads/2.3-next by this push:
     new 514df0007 MYFACES-4559: application implicit object fix
     new b4ed4c579 Merge pull request #517 from pnicolucci/MYFACES-4559-23next
514df0007 is described below

commit 514df0007ec2a68cadc4e7bf15ccadfe6502cb46
Author: Paul Nicolucci <pn...@gmail.com>
AuthorDate: Sat Feb 11 11:53:39 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 ee9b2a336..415bbc8cb 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