------------------------------------------
Step1 - Create Class
------------------------------------------
Create Class with these values:
>Web: Try7
>Class: Try7Faq
------------------------------------------
Step1b - Complete Edit Save of Class
------------------------------------------
Add Title:
>'Try7 Class Title'
Leave Default Parent - but Change defaultweb:
>>#set($defaultparent = 'XWiki.${class}Class')
This is the mistake, you didn't update the class name correclty. Should be:
#set($defaultparent = 'Try7.${class}Class')
The template assumes that classes are created in the XWiki space, a
practice that was recommended in the early years, but doesn't stand
anymore.
>#set($defaultweb = 'Try7')
------------------------------------------
Step2 - Edit Class Add Properties
------------------------------------------
Added two TextArea properties: TestA and TestB - default options
------------------------------------------
Step3 - Click Create Document Sheet
------------------------------------------
Add Title:
> Try7 Document Sheet Title
Change Velocity template text:
>#set($class =
$doc.getObject('Try7.Try7Faq').xWikiClass)
------------------------------------------
Step4 - Click Create Document Template
------------------------------------------
Add Title:
>Try7 Document Template Title
Change Velocity template text:
>#includeForm('Try7.Try7FaqClassSheet')
------------------------------------------
Step5 - Click Create Document Template
------------------------------------------
Click on ObjectsTab -- 'Add Object from this Class' dropdown:
>Added Try7.Try7FaqClass to ObjectsTab of
Document Template.
**NOTE: The two textareas show up fine - OK...
Save and Exit...
------------------------------------------
TEST - Create Instance Of Object/Document
------------------------------------------
Click on the create document button....
> Only the document title shows --
properties/textareas that were
added do not show ? I'm not sure why....
Attached is an error stack (maybe unrelated) that I'm getting but not
consistently when going through the above steps....
Thanks
Frank