Authoring templates and design sheets not working for custom class

Frank Misa frankmisa at hotmail.com
Thu Aug 9 23:03:35 CEST 2007


Hi All,Here are my choices/picks for creating a new Class/Sheet/Template...According to: http://www.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorialCan 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 TitleChange Velocity template text:>>#set($class = $doc.getObject('Try7.Try7Faq').xWikiClass)------------------------------------------Step4 - Click Create Document Template------------------------------------------Add Title:>>Try7 Document Template TitleChange 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 wereadded 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....ThanksFrankFrom: frankmisa at hotmail.comTo: xwiki-users at objectweb.orgSubject: Authoring templates and design sheets not working for custom classDate: Thu, 9 Aug 2007 19:43:31 +0000Hi 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/FAQTutorialhttp://www.xwiki.org/xwiki/bin/view/DevGuide/CreatingPluginsThe 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-nt1) 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...ThanksFrankExplore the seven wonders of the world Learn more!
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/users/attachments/20070809/f239b9ef/attachment-0001.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xwikiErrorStack.txt
Url: http://lists.xwiki.org/pipermail/users/attachments/20070809/f239b9ef/attachment-0001.txt 


More information about the users mailing list