myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Myfaces Wiki] Update of "HibernateAndMyFaces" by WernerPunz
Date Sat, 03 Sep 2005 00:39:36 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by WernerPunz:

  Note: if you use the HibernateDAO support, make sure that the Backend bean is under Request
scope, otherwise you might run into errors with
  the automated session handling, because the sessions referenced do not resemble the actual
ones anymore.
+ == The select items approach with a clean DAO ==
+ The above example although tight and convenient introduces a heavy depence between the dao
layer and the user interface layer, if you can rely on non changing user
+ interface techniques, it is a valid approach. However the classical DAO approach tries to
capsule the data access and also does not have
+ any dependency into the user interface or business logic of the application.
+ Hence a different approach might be more appropriate if it can be expected that the DAO
has to deal with different frontend technologies.
+ The SelectItem transformation has to be done from a controller backend bean.
+ [Example soon will follow]
  === Data Table ===
  The implementation of a data feeding class for the data table is much more complicated.
JSF knows 

View raw message