Modular CMS on the NetBeans Platform

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:

MyCMSSystem-alpha.zip

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

Comments:

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.

Posted by Christian on July 06, 2010 at 09:27 AM PDT #

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

Posted by Edvin Syse on July 21, 2010 at 05:23 PM PDT #

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

Posted by Thorsten on July 06, 2012 at 12:44 PM PDT #

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.

Posted by guest on November 09, 2012 at 05:35 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today