From: Eric B. R. <eb...@tc...> - 2003-03-24 18:31:24
|
On Monday, March 24, 2003, at 12:19 PM, Endre St=F8lsvik wrote: > Check this line.. : > > #if ($crossstate.ShowDetails) { #contentString ($collection, =20 > $crossstate, $entitytype } > > Notice the missing ")" ? > > That produce this not-quite-correct stack-trace: > <snip> > org.webmacro.parser.ParseException: No such directive #contentString =20= > at =20 > /data/devel/endre/new/coredoc/webapp/WEB-INF/classes/com/coredocument/=20= > impl/ui/corepage/corelets/helpers/Recurser.wm:53.2 > at =20 > = org.webmacro.directive.IncludeDirective.makePropertyException(IncludeDi=20= > rective.java:536) > at =20 > = org.webmacro.directive.IncludeDirective.getTemplate(IncludeDirective.ja=20= > va:465) > at =20 > = org.webmacro.directive.IncludeDirective.getThingToInclude(IncludeDirect=20= > ive.java:433) > at =20 > = org.webmacro.directive.IncludeDirective.write(IncludeDirective.java:354=20= > ) > at org.webmacro.engine.Block.write(Block.java:135) > at org.webmacro.engine.WMTemplate.write(WMTemplate.java:262) > ... > > "no such directive".. well, it's a macro, goddamnit! And it's there! > > Adding the missing ")" fixes everything. Because of your missing ")", WM's parser thought the directive (or =20 macro) you requested was a zero-arg directive/macro named =20 "#contentString". This isn't a bug, it's user error. eric= |