Monday, November 27, 2006

JSF pages from Entity Class

I've been evaluating tools for Rapid Application Development (RAD) for small J2EE CRUD-like apps over the last few days. My workplace is pushing the move for the latest JDeveloper and I, being the devil's advocate, have taken a good look at NetBeans 5.5.

The kick-ass feature that NetBeans 5.5 has over JDeveloper is the 'JSF pages from Entity Class' feature.

Very hard to ignore this feature. It's very straight-forward and easy to use.

Additional tutorials,having seen Edgar's, illustrating the usefulness of this feature.

Using Java Persistence in a J2EE 1.4 Web Application

Java Persistence in the Java EE 5 Platform

The Best Feature of the Upcoming NetBeans IDE 5.5 (Part 3)
(Brian Leonard's Blog)

Using Hibernate with the Java Persistence API

NOTE
A friend has reminded me that using the EntityManager in a Presentation Layer class such as a JSF BackingBean, or even a Struts Action, is not a Best Practice and this at the very least should sit behind a Delegate. Keeping in form with logical separation of presentation and business/service, and/or persistence layers.

Matt

Thursday, November 23, 2006

NetBeans Demo: Using TopLink with JavaServerFaces with NetBeans 5.5

Edgar Silva has added a post and a great demo for using TopLink with JSF and Netbeans 5.5.

I am adding this link here mainly for my own reference although visitors to this site might find it useful too.

NetBeans Demo: Using TopLink with JavaServerFaces with NetBeans 5.5 (Blog Entry)

NetBeans Demo: Using TopLink with JavaServerFaces with NetBeans 5.5 (Actual Demo)

I've been doing Struts 1 and Struts 2 (WebWork 2) for some time and recently asked to review JSF and tools for streamlining development with JSF. I've tested JDeveloper 10.1.3.1 and NetBeans 5.5 and found working with NetBeans pretty easy and straight-forward.

I haven't built a full-blown application yet using these tools so the jury is still out.

I will add an entry when I do.