Hello Steve,
I don't know how do you try to achieve your goal, but here's a simple way
to do it for 2 classes XWiki.AClass and XWiki.BClass, both of them having a
'name' xProperty:
#set ($aObj = $doc.getObject('XWiki.AClass'))
#set ($bObj = $doc.getObject('XWiki.BClass'))
$aObj.getValue('name')
$bObj.getValue('name')
Hope this helps,
Alex
On Wed, Jan 11, 2017 at 7:04 PM, Stephen Martin <SteveM(a)jonesmetal.com>
wrote:
In developing an in house app using XWiki I am having
difficulty getting a
page to display with more than one object.
Currently using XWiki Enterprise 7.4.4.
For testing purposes I have 2 classes: SetupHY32 and SetupUniqueValues.
I create a new page located in Sandbox called ObjGroupTest.
Selecting Object Editor I add the 2 classes and fill in data in each
property for each class.
When I save and view, only the first object is displayed. When I go back
to edit the objects, all the data is there.
The fully qualified name for each object is Sandbox.SetupHY32.Code.SetupHY32Class
(1) and Sandbox.SetupUniqueValues.Code.SetupUniqueValuesClass (1).
According to XWiki data model page each page can have multiple objects.
So the ultimate question is, how can more than one object be displayed on
a page?
Thanks,
Steve