We do it for the XWikiServerClass for example, you can see the code there:
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/mandatory/XWikiServerClassDocumentInitializer.java

I hope it helps,

LM

2013/10/7 Matthias Wegner <[email protected]>

> Hi Marius,
>
> thanks. This helps. I thought the class is created from the API and i
> didn't
> understand that i have to create a "Page" in Space "XWiki" and than open it
> in Class-Editor. I thought this is optional. I tried to create an
> application in XWiki and thought i did something wrong with classpath or
> compiling. If you are new to XWiki the Step in the tutorial from "Voila!"
> to
> "1. the XWiki.Proverb class ..." is not clear for a Newbie.
>
> Now it works fine ;)
>
> Is there a way to create the class Proverb with the attribute proverb
> directly from the api? When i write a new component i dont want to do the
> last steps manually for every attribute or class.
>
> Regards,
> Matthias
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Componente-Example-Proverb-Not-working-tp7587418p7587424.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

Reply via email to