4. Content Registry

To make your component available for Jease, you have to register your content-type.

Open Jease/WEB-INF/src/META-INF/jease/registry.xml and add the definition for the new content-type:

<jease>
...
  <component>
    <domain>jease.cms.domain.Meeting</domain>
    <editor>jease.cms.web.content.editor.MeetingEditor</editor>
    <icon>~./jease/cms/Meeting.png</icon>
    <view>/site/domain/Meeting.jsp</view>
  </component>
...
</jease>

Please note: We defined the new content type in the default packages (jease/...) just for educational purposes. You can use any packaging structure as you want, just make sure to use the correct entries for the registry.

If you want to deploy your component as self-contained jar, you can also create a dedicated META-INF/jease/registry.xml within your jar and put the definitions into it. Jease will search for all registries in all deployed jars automatically.

Last modified on 2011-01-04 by Maik Jablonski

Want to contribute?

Do you want to contribute to Jease? Writing documentation is a good place to get started and will help to get people becoming more familiar with Jease. Any contribution is appreciated.