You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2007/10/25 21:43:07 UTC

[Myfaces Wiki] Update of "Data List" by MartinMarinschek

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 MartinMarinschek:
http://wiki.apache.org/myfaces/Data_List

------------------------------------------------------------------------------
  == Description ==
+ The data list component can be used to iterate over stuff. Alternative to using t:dataList you could also use ui:repeat (a facelets-tag) or the build-time tag c:forEach (also a facelets-tag). Note that there used to be a bug in ui:repeat which made t:dataList a better candidate for the task, this bug has been fixed in the latest versions of Facelets (>=1.1.14). c:forEach will not work in all cases - e.g. if you want to use c:forEach in a ui:repeat tag (so mixing render-time and build-time iteration tags), you will run into problems.
- The data list component can be used to iterate over stuff. It is prefered to use data list instead of forEach or ui:repeat
- (to prevent stuff from getting rendered a zillion of times)
  
  == Screen Shot ==
  Not a Visual Component
@@ -22, +21 @@

  == Configuration ==
  
  == Notes and Known issues ==
- For recursive calls, e.g. a component that loops over dataList and calls itself, there is a problem how to create the if-statement
- (i.e. the statement if it should continue to call recursive or not).
- Both ui:fragment and c:if fails.
- ui:fragment creates an infinitive loop, and c:if none at all.
- It is probably not a problem related directly to dataList, but would be good to have the solution handy here (if there is one)
  
+ Do not use c:if or ui:fragment tags inside a t:dataList tag - use the rendered-attribute of components instead.
  
  == Examples ==