Naked Objecting

In a recent trend of technologies being used as verbs (think googling, and err, well something else) of late I have been mostly Naked Objecting. For those who don’t know, Naked Objects is a framework which allows the developer to quickly roll an application which provides both a UI and persistence layer simply by coding a domain model (for a better overview see Introduction To Naked Objects over at Java.net). Thats the good side.

That bad side is that the built in default ‘lightweight’ UI just plain sucks. It makes heavy use of drag and drop which is not in itself a bad thing, however its a jolt for those users more used to a standard UI, and no non-drag and drop alternatives are provided. It is also ugly, and not that intuitive. Luckily, Naked Objects make it fairly easy to roll your own UI for it, something I’ve been playing around with over the last few days.

Its at its early stages right now, and I’m not sure how much more I’m going to do with it – at present I’ve used the development of this new UI layer as a learning excerise to get to grips with Naked Object’s internals (which it has to be said is quite badly documented). At this stage I have a Swing-based UI using JGoodies Form and Looks components, in an attempt to provide a good looking auto-generated UI. I may post more on JGoodies FormLayout at a later date – its fast becoming my favourite way to layout just about anything. If I continue with it, the overall aim will be to provide a very good looking, easy to use auto-generated UI, but to also allow the developer to tailor specific parts of the UI or even replace them altogether.

This entry was posted on Wednesday, June 2nd, 2004 at 10:04 am and is filed under Java. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

4 Responses to “Naked Objecting”

I am sure I posted a comment here earlier ….

mmmm that’s strange.

Well – I didn’t delete anything!

Ooooo that’s good to hear .‘’

I was afraid that you got annoyed by my post.My post was a selfish rambling on how painful it is to stitch java’s frameworks together.

Some time it is just difficult to keep up with the available frameworks, struts, velocity, hibernate, etc etc

Dont you wish sun should take all this framework and unified it into its J2EE distribution package ? Make it easier for developers to do J2EE.

Thats kind of what Matt Riable has done with his excellent AppFuse project.

The only thing NakedObjects really replaces is the need for a persistence layer and the UI stuff – and the framework is more about the NakedObject approach – of which more later.

Have your say





Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:

URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.