Permalink
Browse files

Fix UT010019: Response already commited exception on 404

  • Loading branch information...
BalusC committed Dec 3, 2015
1 parent 84f6748 commit b3d2ea55d821ab3e27b5ba9f22df19b7aa50ddc8
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/org/omnifaces/facesviews/FacesViewsViewHandler.java
@@ -51,6 +51,12 @@ public FacesViewsViewHandler(ViewHandler viewHandler) {
wrapped = viewHandler;
}
@Override
public String deriveLogicalViewId(FacesContext context, String viewId) {
Map<String, String> mappedResources = getApplicationAttribute(context, FACES_VIEWS_RESOURCES);
return mappedResources.containsKey(viewId) ? super.deriveLogicalViewId(context, viewId) : viewId;
}
@Override
public String getActionURL(FacesContext context, String viewId) {

0 comments on commit b3d2ea5

Please sign in to comment.