Hello. What do you mean by "mandatory"?
You can see an example of code there: https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-wiki/xwiki-platform-wiki-user/xwiki-platform-wiki-user-default/src/main/java/org/xwiki/wiki/user/internal/WikiUserClassDocumentInitializer.java or https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-wiki/xwiki-platform-wiki-default/src/main/java/org/xwiki/wiki/internal/descriptor/document/XWikiServerClassDocumentInitializer.java I hope it helps, Thanks, Louis-Marie 2013/11/19 Matthias Wegner <[email protected]> > Hello, > > i use AbstractMandatoryDocumentInitializer for creation of some classes and > i want to set some fields mandatory. Is that possible? > > Regards, > Matthias > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Set-Mandatory-field-with-AbstractMandatoryDocumentInitializer-tp7588048.html > Sent from the XWiki- Dev mailing list archive at Nabble.com. > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

