{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/915","labels_url":"https://api.github.com/repos/primefaces/primefaces/issues/915/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primefaces/issues/915/comments","events_url":"https://api.github.com/repos/primefaces/primefaces/issues/915/events","html_url":"https://github.com/primefaces/primefaces/issues/915","id":118924109,"number":915,"title":"[Feature] p:menuItems or allow ui:repeat within Menu","user":{"login":"djmj","id":5265550,"avatar_url":"https://avatars.githubusercontent.com/u/5265550?v=3","gravatar_id":"","url":"https://api.github.com/users/djmj","html_url":"https://github.com/djmj","followers_url":"https://api.github.com/users/djmj/followers","following_url":"https://api.github.com/users/djmj/following{/other_user}","gists_url":"https://api.github.com/users/djmj/gists{/gist_id}","starred_url":"https://api.github.com/users/djmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmj/subscriptions","organizations_url":"https://api.github.com/users/djmj/orgs","repos_url":"https://api.github.com/users/djmj/repos","events_url":"https://api.github.com/users/djmj/events{/privacy}","received_events_url":"https://api.github.com/users/djmj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-25T21:06:55Z","updated_at":"2015-12-11T11:23:43Z","closed_at":null,"body":"*p:menubar* does not seem to allow *ui:repeat*as child and I don't want to generate markup by generating MenuItem's programmatically within JavaBean.\r\n\r\nThis introduces much boilerplate Java Code where many markup related data must be provided. (Converters and names of view parameters). \r\n\r\n**Support *ui:repeat* or provide the tag *p:menuitems*.**\r\n\r\n\r\n# Simple use case\r\n\r\nI had following static menu where i try to insert dynamic items. Now try to imagine the boilerplate Java code I need to recreate this menu:\r\n\r\n\r\n\t<p:menubar>\r\n\t\t<p:menuitem value=\"Home\" icon=\"ui-icon-home\" outcome=\"#{view.viewId}\">\r\n\t\t\t<o:param name=\"foo\" value=\"#{bean.foo}\" converter=\"#{bean.fooConverter}\"/>\r\n\t\t\t<o:param name=\"bar\" value=\"#{bean.bar}\" converter=\"#{barConverter}\"/>\r\n\t\t</p:menuitem>\r\n\t\t<ui:repeat var=\"varWebPage\" value=\"#{bean.webPages}\">\r\n\t\t\t<p:menuitem value=\"#{varWebPage.name}\" icon=\"ui-icon-triangle-1-e\">\r\n\t\t\t\t<o:param name=\"foo\" value=\"#{bean.foo}\" converter=\"#{bean.fooConverter}\"/>\r\n\t\t\t\t<o:param name=\"bar\" value=\"#{bean.bar}\" converter=\"#{barConverter}\"/>\r\n\t\t\t\t<o:param name=\"webPage\" value=\"#{varWebPage}\" converter=\"#{beanwebPageConverter}\"/>\r\n\t\t\t</p:menuitem>\r\n\t\t</ui:repeat>\r\n\t\t<p:menuitem value=\"Contact us\" icon=\"ui-icon-triangle-1-e\"\r\n\t\t\tonclick=\"#{p:widgetVar('dlgContact')}.show(); return false;\"/>\r\n\t</p:menubar>\r\n\r\n## Workarounds\r\n\r\n* Create model in bean - to much work passing all data and bean is not responsible of markup\r\n* Recreate menubar css and items using h:link (only suitable if no hierarchy needed)."},"comment":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/comments/163914526","html_url":"https://github.com/primefaces/primefaces/issues/915#issuecomment-163914526","issue_url":"https://api.github.com/repos/primefaces/primefaces/issues/915","id":163914526,"user":{"login":"kukel","id":833920,"avatar_url":"https://avatars.githubusercontent.com/u/833920?v=3","gravatar_id":"","url":"https://api.github.com/users/kukel","html_url":"https://github.com/kukel","followers_url":"https://api.github.com/users/kukel/followers","following_url":"https://api.github.com/users/kukel/following{/other_user}","gists_url":"https://api.github.com/users/kukel/gists{/gist_id}","starred_url":"https://api.github.com/users/kukel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukel/subscriptions","organizations_url":"https://api.github.com/users/kukel/orgs","repos_url":"https://api.github.com/users/kukel/repos","events_url":"https://api.github.com/users/kukel/events{/privacy}","received_events_url":"https://api.github.com/users/kukel/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T11:23:43Z","updated_at":"2015-12-11T11:23:43Z","body":"tried using a `c:foreach`?"}}