myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "HibernateAndMyFaces" by WernerPunz
Date Sat, 03 Sep 2005 00:48:16 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:
http://wiki.apache.org/myfaces/HibernateAndMyFaces

The comment on the change is:
added some additional info regarding daos

------------------------------------------------------------------------------
  
  The SelectItem transformation has to be done from a controller backend bean.
  
- [Example soon will follow]
  
  
  === Data Table ===
  
+ === Data Table the easy way ===
+ 
+ The easy way a data table only needs a collection of elements, hence a dao which delivers
a list of elements can be used.
+ [Example will follow]
+ however this approach has one downside, it puts heavy burden on the memory because every
dataset put into the list has to be
+ loaded.
+ The cleaner but with a classical dao approach which should not introduce UI dependency elements
into the DAO enforcement close to
+ impossible to implement way is to use a data model.
+ 
+ === Data model, Data Table the hard way ===
+ 
- The implementation of a data feeding class for the data table is much more complicated.
JSF knows 
+ The implementation of a data model class for the data table is much more complicated. JSF
knows 
  the so called data model, as model class
  for a single data table. A specialized data model for the  table on a case per case base.
  A simpler approach would be to feed lists into the data model, but this approach disables
paging.

Mime
View raw message