Dynamic <ui:include src> depending on <ui:repeat var> doesn't include anything
问题 I am new to JSF and I am struggling with dynamicaly rendering included pages. My code looks like this: MenuBean @ViewScoped public class MenuBean implements Serializable { private MenuItem[] menuItems = new MenuItem[] { new MenuItem("page_1", "/page_1.xhtml"), new MenuItem("page_2", "/page_2.xhtml"), }; private String selectedItemLabel; //... } MenuItem public class MenuItem implements Serializable { private String label; private String page; //... } index.xhtml <ui:repeat var="menuItem"