[xwiki-users] Help with custom display
Jean-Vincent Drean
jv at xwiki.com
Thu Mar 27 10:31:47 CET 2008
On Thu, Mar 27, 2008 at 10:23 AM, JavaCupiX <javacupix at gmail.com> wrote:
> @Sergui : I tried this
>
>
> #if($type == "view")
> <b>$value</b>
> #else
> $doc.display($name, $type, $object)
> #endif
>
> but it get a nasty "Error number 4001 in 4: Error while parsing velocity
> page.... Invocation of method 'display' threw exception
> java.lang.stackOverflowError"... I tried the other display methods but got
> the same error each time, any idea what's wrong?
>
Hi,
What you get here is a nasty infinite loop since $doc.display will
call your custom displayer in the #else, custom displayer who calls
display, who calls the .. :)
--
Jean-Vincent Drean
More information about the users
mailing list