Hi, Thank you for the swift answer. So, let's say that I want to create an xwiki user. What really happen is that the XWikiUserTemplate is duplicated and instantiated with the new object. Am I right? If I want to have different templates for different kind of users I'll have to create a Sheet for each Template? I hope not to be misunderstanding your explanation. Luís Braga vimpagliazzo wrote:
The sheet defines a way to render an object. The template is a page which gets duplicated as is every time we create a new document associated with a certain class, and normally just contains an include statement of the sheet document plus an empty instance (object) of the selected class.
I have to say, the only difference is then the sheet does not have an object attached to it, and potentially could be used in other places as well. Therefore the separation, but I guess you could build a template which does not depend on a sheet, and not create the sheet at all, you then loose the document-view design, since the same document is holding the data (the document) and the view (the renderer).
Hope that helps Vito Impagliazzo www.olsen.ch
--- Please consider the environment before printing this email. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- View this message in context: http://xwiki.475771.n2.nabble.com/Question-about-Sheet-and-Template-tp598463... Sent from the XWiki- Dev mailing list archive at Nabble.com.