Geertjan's Blog

  • July 6, 2010

Modular CMS on the NetBeans Platform

Geertjan Wielenga
Product Manager
Edvin Syse from Norway is porting a CMS to the NetBeans Platform. So I thought I'd experiment with his usecase, which includes HTML content that is not in an actual HTML file. Instead, the HTML content is defined in a string within the domain object.

Not really complete yet, but this is what I have so far:

One problem is that I haven't integrated the NetBeans HTML Editor yet, so (as reported yesterday) a few features are missing at the moment, possibly because I'm not using the DialogBinding correctly, so maybe those features could be added without my needing to work with the NetBeans HTML Editor at all. For example, there's no code completion, formatting, or contextual menu, since the above isn't actually the NetBeans HTML Editor, but simply a JEditorPane bound to an HTML file in memory.

A nice feature is that each tab in the multiview window comes from a different module, which could be handy for setting up a modular pricing structure. For example, one tab could be free, while the other could be a commercial tab that the user would plug into the application after having paid for it:

Also, none of the UI modules depend on each other. The "CMSModel" module, which contains the Article object (which has two strings, "title" and "content"), is shared amongst all the other modules. There's another shared module called "CMSArticleContext", which uses Wade's CentralLookup (thanks Toni for the help) for the reason described by Tim (here): "I spent the last couple of days here in New Orleans working with some folks with a similar problem - they are building a CRM application on the NetBeans Platform, and the appropriate context for actions and palettes is the selected Customer - it doesn't matter which window has focus."

In the case of the application above, the context is the Article, while the selection is irrelevant, exactly as in Tim's case.

Bear in mind that it is in a very early state, and still error prone, but, if interested, get it here:


I'll upload the source somewhere sometime soon. Or someone else is welcome to do so.

Join the discussion

Comments ( 5 )
  • Christian Tuesday, July 6, 2010

    HTML Editor: http://www.metaphaseeditor.com/

    Not really anywhere near as good as netbeans is on direct source code manipulation. But it's somewhat ok for very simple wysiwyg work. Though some lacking features and rough edges here and thern e.

    Might be an idea to use the netbeans source editor, and metaphaseeditor's wysiwyg editor.

    Something for the future perhaps.

  • Edvin Syse Thursday, July 22, 2010

    If you want a GOOD wysiwyg editor, go for EditLive: http://www.editlive.com. It's very easy to embed in a NetBeans application.

  • Thorsten Friday, July 6, 2012


    The download link is broken. Can please provide a new download link.

  • Geertjan Friday, July 6, 2012
  • guest Friday, November 9, 2012

    I want to create a CMS, I found netbeans suitable. I download the CMS plugin I installed and I dont know how it works.Can you help me.Am in linux though.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.