Skip to content

Commit

Permalink
Merge pull request #827 from volosied/MYFACES-4705-3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
volosied authored Jan 16, 2025
2 parents 2c7faef + c85018e commit 6e81956
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,6 @@ public final void addELContextListener(final ELContextListener listener)
public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass,
Class<?> sourceBaseType, Object source)
{
checkNull(facesContext, "facesContext");
checkNull(systemEventClass, "systemEventClass");
checkNull(source, "source");

Expand Down Expand Up @@ -647,7 +646,6 @@ public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent>
@Override
public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass, Object source)
{
checkNull(source, "source");
publishEvent(facesContext, systemEventClass, source.getClass(), source);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
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;
Expand All @@ -45,9 +46,9 @@ public class JsfArtifactProducer
@Produces
@Named("application")
@ApplicationScoped
public Object getApplication()
public Application getApplication()
{
return FacesContext.getCurrentInstance().getExternalContext().getContext();
return FacesContext.getCurrentInstance().getApplication();
}

@Produces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,6 @@ public void redirect(final String url) throws IOException
PartialViewContext partialViewContext = facesContext.getPartialViewContext();
if (partialViewContext.isPartialRequest())
{
if (_servletResponse instanceof HttpServletResponse && facesContext.getResponseComplete())
{
throw new IllegalStateException();
}
PartialResponseWriter writer = partialViewContext.getPartialResponseWriter();
this.setResponseContentType("text/xml");
this.setResponseCharacterEncoding("UTF-8");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ else if (allowExactMatch && mapping.startsWith("/") && mapping.equals(servletPat
}
if (mapping.equals(servletPath))
{
return FacesServletMapping.createExactMapping(mapping); // MYFACES-4524
return FacesServletMapping.createPrefixMapping(mapping);
}
}
}
Expand Down

0 comments on commit 6e81956

Please sign in to comment.