AttributeContext
546547548549550551552553554555556557558559
* * @param tilesContext The request context to use. * @return The newly created attribute context. */ private AttributeContext startContext(TilesRequestContext tilesContext) { AttributeContext context = new BasicAttributeContext(); Stack<AttributeContext> stack = getContextStack(tilesContext); if (!stack.isEmpty()) { AttributeContext parent = stack.peek(); context.inheritCascadedAttributes(parent); } stack.push(context); return context; }
622623624625626627628629630631632633
} throw new NoSuchDefinitionException(definitionName); } AttributeContext originalContext = getAttributeContext(request); BasicAttributeContext subContext = new BasicAttributeContext(originalContext); subContext.inherit(definition); pushContext(subContext, request); try { render(request, subContext);
96979899100101102103104105106107108109
*/ private AttributeEvaluatorFactory attributeEvaluatorFactory; /** {@inheritDoc} */ public AttributeContext startContext(Request request) { AttributeContext context = new BasicAttributeContext(); Deque<AttributeContext> stack = getContextStack(request); if (!stack.isEmpty()) { AttributeContext parent = stack.peek(); context.inheritCascadedAttributes(parent); } stack.push(context); return context; }
140141142143144145146147148149150
/** {@inheritDoc} */ public AttributeContext getAttributeContext(Request request) { AttributeContext context = getContext(request); if (context == null) { context = new BasicAttributeContext(); pushContext(context, request); } return context; }
227228229230231232233234235236237238
* @param request The request context. * @since 2.1.3 */ public void render(Definition definition, Request request) { AttributeContext originalContext = getAttributeContext(request); BasicAttributeContext subContext = new BasicAttributeContext(originalContext); subContext.inherit(definition); pushContext(subContext, request); try { render(request, subContext);
122123124125126127128129
} /** {@inheritDoc} */ public int doStartTag() { ArrayStack<Object> composeStack = JspUtil.getComposeStack(pageContext); composeStack.push(new BasicAttributeContext()); return EVAL_BODY_INCLUDE; }
523524525526527528529530531532
* @return The current attribute context. */ private AttributeContext getAttributeContext(TilesRequestContext tilesContext) { AttributeContext context = getContext(tilesContext); if (context == null) { context = new BasicAttributeContext(); pushContext(context, tilesContext); } return context; }
547548549550551552553554555556557558559560
* * @param tilesContext The request context to use. * @return The newly created attribute context. */ private AttributeContext startContext(TilesRequestContext tilesContext) { AttributeContext context = new BasicAttributeContext(); ArrayStack<AttributeContext> stack = getContextStack(tilesContext); if (!stack.isEmpty()) { AttributeContext parent = stack.peek(); context.inheritCascadedAttributes(parent); } stack.push(context); return context; }
633634635636637638639640641642643644
* @param definition The definition to render. * @since 2.1.3 */ protected void render(TilesRequestContext request, Definition definition) { AttributeContext originalContext = getAttributeContext(request); BasicAttributeContext subContext = new BasicAttributeContext(originalContext); subContext.inherit(definition); pushContext(subContext, request); try { render(request, subContext);