From: Kai Moritz Date: Wed, 24 Apr 2019 14:56:18 +0000 (+0200) Subject: TMP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=45e3e925eeed8652e1a0939c2233ba48c7625535;p=juplo-dialect TMP --- diff --git a/src/main/java/de/juplo/thymeleaf/ImportVariablesAttrProcessor.java b/src/main/java/de/juplo/thymeleaf/ImportVariablesAttrProcessor.java index d41b33c..bca2b4e 100644 --- a/src/main/java/de/juplo/thymeleaf/ImportVariablesAttrProcessor.java +++ b/src/main/java/de/juplo/thymeleaf/ImportVariablesAttrProcessor.java @@ -153,13 +153,13 @@ public class ImportVariablesAttrProcessor extends AbstractAttributeModelProcesso } }); - for (ITemplateResolver t_resolver : config.getTemplateResolvers()) + for (ITemplateResolver t_resolver : context.getConfiguration().getTemplateResolvers()) { TemplateResolution resolution = t_resolver.resolveTemplate(params); if (resolution == null) continue; - if (!"JSON".equals(resolution.getTemplateMode())) - continue; +// if (!"JSON".equals(resolution.getTemplateMode())) +// continue; IResourceResolver r_resolver = resolution.getResourceResolver(); InputStream is = r_resolver.getResourceAsStream(params, resolution.getResourceName()); @@ -313,11 +313,4 @@ public class ImportVariablesAttrProcessor extends AbstractAttributeModelProcesso node.setNodeProperty(PROPERTY_NAME, variables); return variables; } - - - @Override - public int getPrecedence() - { - return ATTR_PRECEDENCE; - } }