public class NamedOrderProcessor extends AbstractModelVariableModifierProcessor
A Thymeleaf processor that will add the desired named order to the model
Example:
<blc:named_order orderVar="wishlist" orderName="wishlist" />
<span th:text="${wishlist.customer.name}" />
Order#getName()}| Modifier and Type | Field and Description |
|---|---|
protected OrderService |
orderService |
| Constructor and Description |
|---|
NamedOrderProcessor()
Sets the name of this processor to be used in Thymeleaf template
NOTE: thymeleaf normalizes the attribute names by converting all to lower-case
we will use the underscore instead of camel case to avoid confusion
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPrecedence() |
protected void |
modifyModelAttributes(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element) |
addCollectionToExistingSet, addItemToExistingSet, addToModel, processElementdoProcess, getMatcherprotected OrderService orderService
public NamedOrderProcessor()
public int getPrecedence()
getPrecedence in class AbstractModelVariableModifierProcessorprotected void modifyModelAttributes(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
modifyModelAttributes in class AbstractModelVariableModifierProcessorCopyright © 2014. All Rights Reserved.