/** * Resolves the application view name from the request context. * @param context the context * @return the view name */ protected String resolveViewName(RequestContext context) { return (String) getViewName().evaluate(context, null); }
public ViewSelection makeRefreshSelection(RequestContext context) { String viewName = resolveViewName(context); if (!StringUtils.hasText(viewName)) { throw new IllegalStateException("Resolved application view name was empty; programmer error! -- " + "The expression that was evaluated against the request context was '" + getViewName() + "'"); } return createApplicationView(viewName, context); }