1 Reply Latest reply on Jan 19, 2008 7:56 PM by Sergey Smirnov

    More questions about ui:repeat vs. c:foreach in rich:tabPane

    David M. Karr Newbie

      Ok, once again I want to understand how I can have dynamically created tabs in a tabPanel (and also a mix of static tabs also). I'm currently limited to JSF 1.1, but I'd like to know whether I'll be able to do this with JSF 1.2, and how it will work.

      There appears to be some confusion about whether either "ui:repeat" from Facelets can work for this, or whether "c:foreach" is needed.

      I read <http://wiki.java.net/bin/view/Projects/FaceletsFAQ#Why_doesn_t_my_c_if_ui_repeat_ui> and <http://www.ilikespam.com/blog/c:foreach-vs-ui:repeat-in-facelets>, but I'm still a little confused by this. In fact, the first reference here makes me think this isn't possible at all, as I think I really need to render a dynamic number of components at render time. It doesn't seem like either ui:repeat or c:forEach can do that. It really looks to me like this can't be done without new features in rich:tabPanel & rich:tab.