org.broadleafcommerce.common.web.expression.BroadleafVariableExpression in
combination with th:with to set local variables.@Deprecated public interface BroadleafVariableModifierAttrProcessor extends BroadleafProcessor
An attribute processor that adds new variables to the local model. Processors that implement this can be invoked in this way:
<p blc:add_name_variable>
<span th:text="${name}"></span>
</p>
In this example the processor is add_name_variable that happens to add a variable for name to the context to be used only inside
the executing tag.
DEFAULT_PRECEDENCE, DEFAULT_PREFIX| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
populateModelVariables(String tagName,
Map<String,String> tagAttributes,
String attributeName,
String attributeValue,
BroadleafTemplateContext context)
Deprecated.
|
getName, getPrecedence, getPrefixMap<String,Object> populateModelVariables(String tagName, Map<String,String> tagAttributes, String attributeName, String attributeValue, BroadleafTemplateContext context)
tagName - The name of the tag that the attribute was triggered ontagAttributes - A map of String to String of all of the attributes on the tagattributeName - The name of the attribute that triggered the eventattributeValue - The value of the attribute that triggered the eventcontext - The BroadleafTemplateContext that should be used to perform operations on the tag withCopyright © 2017. All rights reserved.