Skip to content

Commit

Permalink
view id added
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Jul 28, 2015
1 parent df4c482 commit 2cefe06
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -441,9 +441,12 @@ private void getXHTMLAuthenticationFormViaLoginResource(HttpServletRequest reque
log.error(e, e);
}

// INFO: Get view of resource
String viewId = null;
org.wyona.yanel.core.attributes.viewable.View view = ((org.wyona.yanel.core.api.attributes.ViewableV2) res).getView(viewId);
// INFO: Get view of resource
String viewId = null;
if (request.getParameter("yanel.resource.viewid") != null) {
viewId = request.getParameter("yanel.resource.viewid");
}
org.wyona.yanel.core.attributes.viewable.View view = ((org.wyona.yanel.core.api.attributes.ViewableV2) res).getView(viewId);

// INFO: Set mime type
String mimeType = view.getMimeType();
Expand Down

0 comments on commit 2cefe06

Please sign in to comment.