woops!!!
yes, should be on $bentrydoc...
On 10/10/07, Jean-Vincent Drean <[EMAIL PROTECTED]> wrote:
> 2007/10/10, goldring, richard <[EMAIL PROTECTED]>:
> > Yes I've tried this, but XWiki doesn't execute this code it just displays:
> > $doc.display($prop.name, "view", $obj) as if its just any other text on the
> > page!
>
> Velocity displays the method call when the method call fail, ie :
> 1) return null (if $prop.name doesn't exist in $doc for example)
> 2) if the object is null (here $doc)
> 3) if it doesn't find the method in the object (here display with 3
> args of 3 defined types)
>
> You can try this (even if it's not the method i'd advise, cf previous mail) :
>
> #set($obj = $bentrydoc.getObject("XWiki.ArticleClass"))
> $bentrydoc.display($prop.name, "view", $obj)
>
> The difference: display method called on bentrydoc (Article document)
> and not the current document, which do not contains props I guess.
>
> JV.
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
--
'Waste of a good apple' -Samwise Gamgee
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs