Skip to content

Commit

Permalink
Fix workspace download
Browse files Browse the repository at this point in the history
  • Loading branch information
copierrj committed Jun 7, 2024
1 parent ad14c62 commit 5fd03b7
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
----------------------------------------------------------------------------*/
package org.deegree.client.core.utils;

import jakarta.el.ELContext;
import jakarta.el.ELResolver;
import jakarta.enterprise.context.RequestScoped;
import jakarta.faces.application.Application;
import jakarta.faces.context.FacesContext;
import jakarta.inject.Named;

Expand Down Expand Up @@ -91,10 +94,13 @@ public static Object getParam4() {
}

private static ActionParams getInstance() {
return (ActionParams) FacesContext.getCurrentInstance()
.getExternalContext()
.getRequestMap()
.get("actionParams");
FacesContext facesContext = FacesContext.getCurrentInstance();
Application application = facesContext.getApplication();

ELResolver elResolver = application.getELResolver();
ELContext elContext = facesContext.getELContext();

return (ActionParams) elResolver.getValue(elContext, null, "actionParams");
}

}

0 comments on commit 5fd03b7

Please sign in to comment.