Permalink
Browse files

Fix UT010019: Response already commited exception on 404

  • Loading branch information...
1 parent 84f6748 commit b3d2ea55d821ab3e27b5ba9f22df19b7aa50ddc8 @BalusC BalusC committed Dec 3, 2015
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/org/omnifaces/facesviews/FacesViewsViewHandler.java
@@ -52,6 +52,12 @@ public FacesViewsViewHandler(ViewHandler 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) {
String actionURL = super.getActionURL(context, viewId);

0 comments on commit b3d2ea5

Please sign in to comment.