Hi,
I have just started to work with XWiki and I have some problems with XWiki
Objects. I created simple new Class with 3 String properties (name, surname,
text) and this ClassSheet (copied from
xwiki.org):
#set($class = $doc.getObject("XWiki.AtlantisClass").xWikiClass)
#set($hasProps = false)
#foreach($prop in $class.properties)
<dl>
<dt>1. Pretty is ${prop.prettyName} </dt>
<dd>2. Value $doc.display($prop.getName()) </dd>
</dl>
#end
In a new page, I selected "Edit->Objects". Then I added this object to the
page and filled in all 3 properties (like Bob, Smith, Lorem Ipsum). Then I
typed this in the wiki editor of the new page:
#includeForm("XWiki.AtlantisClassSheet")
And I expected something like this:
...
<dt>1. Pretty is Name </dt>
<dd>2. Value Bob </dd>
...
However instead of 'Bob' there is a content of "Custom display" of the
property name. Could anyone please help me how to see the value? I tried to
search the forum but the only thing I have found is that it should work like
that...
Thanks a lot
--
View this message in context:
http://n2.nabble.com/Object-properties-problem-tp1109785p1109785.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.