Re: Custom directive for XML model
Viktor Levine <[email protected]> Thu, 12 Sep 2013 08:28:53 +0000 (UTC)
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
And the stack trace: FreeMarker template error: For "@" callee: Expected a(n) user-defined directive (macro, etc.), but this evaluated to a sequence+hash (wrapper: f.e.dom.NodeListModel): ==> spel [in template "test/unit/com/algorithmics/pulp/spring/greeting-template.ftl" at line 2, column 10] The failing instruction (FTL stack trace): ---------- ==> @spel [in template "test/unit/com/algorithmics/pulp/spring/greeting-template.ftl" at line 2, column 8] ---------- Java stack trace (for programmers): ---------- freemarker.core.UnexpectedTypeException: [... Exception message was already printed; see it above ...] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:146) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.process(Environment.java:243) at freemarker.template.Template.process(Template.java:277) at ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. Consolidate legacy IT systems to a single system of record for IT 2. Standardize and globalize service processes across IT 3. Implement zero-touch automation to replace manual, redundant tasks http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk