Messages per Month
|Subject:||Re: [nbusers] VWP and PU|
|From:||Dennis Gesker (ges...@alamon.com)|
|Date:||Dec 15, 2006 3:19:35 pm|
I'll toot your horn for you... good presentation.
There is a section in the presentation where you drag and drop from the Run time screen on to a drop down or table component and data providers are automatically created. Is it also possible to drag and drop and EJB3 data object on to a component? These of course don't show in the run time tab but are just classes in a package associated with a persistence.xml file.
Or is there a way to visually add a personDataProvider to a page in the navigator and associate it with an EJB3 data object that is generated when you use netbeans' generate entities from database functionality?
Craig McClanahan wrote:
Is it possible to use all the slick drop and drag functionality of VWP with the Persistance API (toplink, hibernate, etc.)?
On the VWP site there is a very good tutorial called "Using Databound Componets to Access a Database" showing how to drop/drag/bind but this does not focus on the Persistence API. Does anyone know of a similar tutorial for working with VWP and the Persistence API (toplink, etc.)?
It's not a tutorial, and I'm not really trying to toot my own horn :-), but I recorded a webinar introducing the new features of Visual Web Pack, including walking through an example of using the Java Persistence API to access information from a database, and binding it to visual components. Scroll down to the "What's New in Visual Web Pack" item, at:
The basic idea of using a JPA entity class as a property of your page bean, and then binding the JSF components to properties of this entity, is my favorite approach for using JPA and JSF together.
-- Dennis R. Gesker email: den...@alamon.com Key Id: 0xEFA10A51