Skip to content

Commit

Permalink
Merge pull request #1713 from copierrj/fix_workspace_download
Browse files Browse the repository at this point in the history
Fixed workspace download in admin console
  • Loading branch information
stephanr authored Jun 7, 2024
2 parents ad14c62 + 5fd03b7 commit 7b2b564
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 7b2b564

Please sign in to comment.