/** Delegate to parent. */ public Decorator getDecorator(HttpServletRequest request, Page page) { return parent.getDecorator(request, page); }
@Override public Decorator getDecorator(HttpServletRequest httpServletRequest, Page page) { return wrapDecorator(target.getDecorator(httpServletRequest, page)); }
if (osHeader == null) return parent.getDecorator(request, page); String decoratorName = parent.getDecorator(request, page).getName(); if (decoratorName != null) { decoratorName += '-' + properties.getProperty(os); return parent.getDecorator(request, page);
pageObj.setRequest((HttpServletRequest) pageContext.getRequest()); pageContext.getRequest().setAttribute(DECORATOR, decorator); Decorator d = decoratorMapper.getDecorator(((HttpServletRequest) pageContext.getRequest()), pageObj); pageContext.getRequest().removeAttribute(DECORATOR);
if (decoratorMapper != null) Decorator decorator = decoratorMapper.getDecorator(httpServletRequest, page); if (decorator != null)
public com.opensymphony.sitemesh.Decorator selectDecorator(Content content, SiteMeshContext context) { SiteMeshWebAppContext webAppContext = (SiteMeshWebAppContext) context; HttpServletRequest request = webAppContext.getRequest(); com.opensymphony.module.sitemesh.Decorator decorator = decoratorMapper.getDecorator(request, new Content2HTMLPage(content, request)); if (decorator == null || decorator.getPage() == null) { return new NoDecorator(); } else { return new OldDecorator2NewStrutsFreemarkerDecorator(decorator); } } }
public com.opensymphony.sitemesh.Decorator selectDecorator(Content content, SiteMeshContext context) { SiteMeshWebAppContext webAppContext = (SiteMeshWebAppContext) context; HttpServletRequest request = webAppContext.getRequest(); Decorator decorator = decoratorMapper.getDecorator(request, new Content2HTMLPage(content, request)); if (decorator == null || decorator.getPage() == null) { return new NoDecorator(); } else { return new OldDecorator2NewStrutsVelocityDecorator(decorator); } } }
public Decorator selectDecorator(Content content, SiteMeshContext context) { SiteMeshWebAppContext webAppContext = (SiteMeshWebAppContext) context; HttpServletRequest request = webAppContext.getRequest(); com.opensymphony.module.sitemesh.Decorator decorator = decoratorMapper.getDecorator(request, new Content2HTMLPage(content, request)); if (decorator == null || decorator.getPage() == null) { return new NoDecorator(); } else { return new OldDecorator2NewDecorator(decorator); } } }
Decorator decorator = decoratorMapper.getDecorator(request, htmlPage); template = decorator.getPage();
Decorator decorator = decoratorMapper.getDecorator(request, htmlPage); template = decorator.getPage();