Hi All,

Here are my choices/picks for creating a new Class/Sheet/Template...
According to: http://www.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial

Can anyone see some obvious mistake ?

------------------------------------------
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')
>>#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



From: frankmisa@hotmail.com
To: xwiki-users@objectweb.org
Subject: Authoring templates and design sheets not working for custom class
Date: Thu, 9 Aug 2007 19:43:31 +0000

Hi All,

I'm really disappointed by the lack of in depth XWiki developer tutorial.
XWiki has been around for a while -- and the only good material I can find is here:
http://www.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
http://www.xwiki.org/xwiki/bin/view/DevGuide/CreatingPlugins

The above links are the level of tutorial I'm looking for -- but they don't go far/long enough....
I've followed the FAQTutorial steps and cannot get the example to work as described.

I've performed all steps as described -- without error/warning -- but when I try to create a new custom FAQ document -- my class properties (question & answer) are not being shown on the edit/creation page ?  It's just blank space with two rows of Cancel/Save-Continue/Save-View etc buttons.

* I'm using XWIKI: 1.1-milestone-3.3933
* On Windows XP with Apache Tomcat 5.5.12
* I'm using MySQL as the database - I think it's UTF8 - Server version: 5.0.13-rc-nt

1) When I'm querying the database -- the tables:
     xwikiproperties - is being populated -- but newly added entries seem to have negative values for XWO_ID column.
     xwikiobjects - is being populated -- but newly added entries seem to have negative values for XWO_ID column.
     xwikiclasses - is empty ? why ?

2) I would be very grateful to a link to some decent tutorial/documentation -- even if I have to pay for it...
It would be great to see something along the lines of the 'FAQTutorial' but with more indepth look at available Velocity objects/macros and discussion of how Documents/Classes/Objects/Properties are actually related....
I can't believe this stuff isn't better documented :(

Hope someone can help me out...
Thanks
Frank



Explore the seven wonders of the world Learn more!


Discover the new Windows Vista Learn more!