Package org.thymeleaf.standard.expression

Examples of org.thymeleaf.standard.expression.Expression


    }
   
    @Override
    protected ProcessorResult processAttribute(Arguments arguments, Element element, String attributeName) {
       
        Expression expression = (Expression) StandardExpressions.getExpressionParser(arguments.getConfiguration())
                .parseExpression(arguments.getConfiguration(), arguments, element.getAttributeValue(attributeName));
        ProductOptionValue productOptionValue = (ProductOptionValue) expression.execute(arguments.getConfiguration(), arguments);

        ProductOptionValueDTO dto = new ProductOptionValueDTO();
        dto.setOptionId(productOptionValue.getProductOption().getId());
        dto.setValueId(productOptionValue.getId());
        dto.setValueName(productOptionValue.getAttributeValue());
View Full Code Here


           
            String orderNumberExpression = element.getAttributeValue("ordernumber");
            String orderNumber = null;
            if (orderNumberExpression != null) {
                final IStandardExpressionParser expressionParser = StandardExpressions.getExpressionParser(arguments.getConfiguration());
                Expression expression = (Expression) expressionParser.parseExpression(arguments.getConfiguration(), arguments, orderNumberExpression);
                orderNumber = (String) expression.execute(arguments.getConfiguration(), arguments);
            }
           
            Order order = null;
            if (orderNumber != null) {
                order = orderService.findOrderByOrderNumber(orderNumber);
View Full Code Here

    }

    @Override
    public final ProcessorResult processAttribute(final Arguments arguments, final Element element, final String attributeName) {

        final Expression expression = new StandardExpressionParser().parseExpression(arguments.getConfiguration(),
                arguments, element.getAttributeValue(attributeName));
        final Object contentObject = expression.execute(arguments.getConfiguration(), arguments);

        final javax.jcr.Node content;
        if(contentObject instanceof ContentMap){
            content = ((ContentMap)contentObject).getJCRNode();
        } else if(contentObject instanceof javax.jcr.Node){
View Full Code Here

TOP

Related Classes of org.thymeleaf.standard.expression.Expression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.