public Object getVariable(final String key) { return resolveLazy(this.request.getAttribute(key)); }
@Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) { if (context instanceof WebEngineContext) { String attrValue = String.valueOf(attributeValue).trim(); ((WebEngineContext) context).setVariable(Keys.PAGINATION_QUALIFIER_PREFIX, attrValue); } }
if (context instanceof IWebContext) { final IWebContext webContext = (IWebContext)context; return new WebEngineContext( configuration, templateData, templateResolutionAttributes, webContext.getRequest(), webContext.getResponse(), webContext.getServletContext(), return new WebEngineContext( configuration, templateData, templateResolutionAttributes, webContext.getRequest(), webContext.getResponse(), webContext.getServletContext(),
@Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) { if (context instanceof WebEngineContext) { String attrValue = String.valueOf(attributeValue).trim(); ((WebEngineContext) context).setVariable(Keys.PAGINATION_QUALIFIER_PREFIX, attrValue); } }
@Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) { if (context instanceof WebEngineContext) { Number split = (Number) Expressions.evaluate(context, attributeValue); ((WebEngineContext) context).setVariable(Keys.PAGINATION_SPLIT_KEY, split); } }
@Override public Object get(final Object key) { if (this.session == null) { return null; } return resolveLazy(this.session.getAttribute(key != null? key.toString() : null)); }
@Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) { if (context instanceof WebEngineContext) { Object url = Expressions.evaluate(context, attributeValue); ((WebEngineContext) context).setVariable(Keys.PAGINATION_URL_KEY, url); } }
@Override public Object get(final Object key) { return resolveLazy(this.servletContext.getAttribute(key != null? key.toString() : null)); }
@Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) { if (context instanceof WebEngineContext) { Object url = Expressions.evaluate(context, attributeValue); ((WebEngineContext) context).setVariable(Keys.PAGINATION_URL_KEY, url); } }
@Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) { if (context instanceof WebEngineContext) { Number split = (Number) Expressions.evaluate(context, attributeValue); ((WebEngineContext) context).setVariable(Keys.PAGINATION_SPLIT_KEY, split); } }
@Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) { if (context instanceof WebEngineContext) { Object page = Expressions.evaluate(context, attributeValue); if (!(page instanceof Page<?>)) { throw new InvalidObjectParameterException( "Parameter " + attributeValue + " is not an Page<?> instance!"); } ((WebEngineContext) context).setVariable(Keys.PAGE_VARIABLE_KEY, page); } }
@Override protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) { if (context instanceof WebEngineContext) { Object page = Expressions.evaluate(context, attributeValue); if (!(page instanceof Page<?>)) { throw new InvalidObjectParameterException( "Parameter " + attributeValue + " is not an Page<?> instance!"); } ((WebEngineContext) context).setVariable(Keys.PAGE_VARIABLE_KEY, page); } }