Package org.thymeleaf.spring4.context

Examples of org.thymeleaf.spring4.context.SpringWebContext


      throw new ConfigurationException(
          "Thymeleaf execution context is not a Spring web context (implementation of " +
          SpringWebContext.class.getName() + ". Spring Social integration can only be used in " +
          "web environements with a Spring application context.");
    }
    final SpringWebContext springContext = (SpringWebContext) context;
    return springContext.getApplicationContext();
  }
View Full Code Here



    public Map<String,Object> computeExpressionObjectsFromExpressionEvaluator(
            final Arguments arguments, final IStandardVariableExpressionEvaluator expressionEvaluator) {

        final SpelVariableExpressionEvaluator spelExprEval =
                ((expressionEvaluator != null && expressionEvaluator instanceof SpelVariableExpressionEvaluator)?
                        (SpelVariableExpressionEvaluator) expressionEvaluator :
                        SpelVariableExpressionEvaluator.INSTANCE);
        return  spelExprEval.computeExpressionObjects(arguments.getConfiguration(), arguments);

    }
View Full Code Here

   
   
    public SpringStandardDialect() {
        super();
        super.setVariableExpressionEvaluator(SpelVariableExpressionEvaluator.INSTANCE);
        super.setConversionService(new SpringStandardConversionService());
    }
View Full Code Here


        // Expose Thymeleaf's own evaluation context as a model variable
        final ConversionService conversionService =
                (ConversionService) request.getAttribute(ConversionService.class.getName()); // might be null!
        final ThymeleafEvaluationContext evaluationContext =
                new ThymeleafEvaluationContext(applicationContext, conversionService);
        mergedModel.put(ThymeleafEvaluationContext.THYMELEAF_EVALUATION_CONTEXT_CONTEXT_VARIABLE_NAME, evaluationContext);

       
        final SpringWebContext context =
                new SpringWebContext(request, response, servletContext, getLocale(), mergedModel, getApplicationContext());
View Full Code Here



    public EvaluationContext wrapEvaluationContext(
            final EvaluationContext evaluationContext, final Map<String,Object> contextVariables) {
        return new ThymeleafEvaluationContextWrapper(evaluationContext, contextVariables);
    }
View Full Code Here

        this.templateEngineMessageSource = templateEngineMessageSource;
    }
   

    public void afterPropertiesSet() throws Exception {
        final SpringMessageResolver springMessageResolver = new SpringMessageResolver();
        springMessageResolver.setMessageSource(
                this.templateEngineMessageSource == null ? this.messageSource : this.templateEngineMessageSource);
        super.setDefaultMessageResolvers(Collections.singleton(springMessageResolver));
    }
View Full Code Here

                !(standardProcessor instanceof StandardValueAttrProcessor)) {
                processors.add(standardProcessor);
            }
        }

        processors.add(new SpringActionAttrProcessor());
        processors.add(new SpringHrefAttrProcessor());
        processors.add(new SpringMethodAttrProcessor());
        processors.add(new SpringSrcAttrProcessor());
        processors.add(new SpringValueAttrProcessor());
        processors.add(new SpringObjectAttrProcessor());
View Full Code Here

        processors.add(new SpringInputRadioFieldAttrProcessor());
        processors.add(new SpringInputFileFieldAttrProcessor());
        processors.add(new SpringSelectFieldAttrProcessor());
        processors.add(new SpringOptionFieldAttrProcessor());
        processors.add(new SpringTextareaFieldAttrProcessor());
        processors.add(new SpringErrorClassAttrProcessor());

        return processors;
       
    }
View Full Code Here

        processors.add(new SpringHrefAttrProcessor());
        processors.add(new SpringMethodAttrProcessor());
        processors.add(new SpringSrcAttrProcessor());
        processors.add(new SpringValueAttrProcessor());
        processors.add(new SpringObjectAttrProcessor());
        processors.add(new SpringErrorsAttrProcessor());
        processors.addAll(Arrays.asList(SpringInputGeneralFieldAttrProcessor.PROCESSORS));
        processors.add(new SpringInputPasswordFieldAttrProcessor());
        processors.add(new SpringInputCheckboxFieldAttrProcessor());
        processors.add(new SpringInputRadioFieldAttrProcessor());
        processors.add(new SpringInputFileFieldAttrProcessor());
View Full Code Here

                processors.add(standardProcessor);
            }
        }

        processors.add(new SpringActionAttrProcessor());
        processors.add(new SpringHrefAttrProcessor());
        processors.add(new SpringMethodAttrProcessor());
        processors.add(new SpringSrcAttrProcessor());
        processors.add(new SpringValueAttrProcessor());
        processors.add(new SpringObjectAttrProcessor());
        processors.add(new SpringErrorsAttrProcessor());
View Full Code Here

TOP

Related Classes of org.thymeleaf.spring4.context.SpringWebContext

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.