{"action":"opened","issue":{"url":"https://api.github.com/repos/omnifaces/omnifaces/issues/262","repository_url":"https://api.github.com/repos/omnifaces/omnifaces","labels_url":"https://api.github.com/repos/omnifaces/omnifaces/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/omnifaces/omnifaces/issues/262/comments","events_url":"https://api.github.com/repos/omnifaces/omnifaces/issues/262/events","html_url":"https://github.com/omnifaces/omnifaces/issues/262","id":159542443,"number":262,"title":"Add attribute to o:importConstants to get all enum values","user":{"login":"julianomqs","id":7409904,"avatar_url":"https://avatars.githubusercontent.com/u/7409904?v=3","gravatar_id":"","url":"https://api.github.com/users/julianomqs","html_url":"https://github.com/julianomqs","followers_url":"https://api.github.com/users/julianomqs/followers","following_url":"https://api.github.com/users/julianomqs/following{/other_user}","gists_url":"https://api.github.com/users/julianomqs/gists{/gist_id}","starred_url":"https://api.github.com/users/julianomqs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianomqs/subscriptions","organizations_url":"https://api.github.com/users/julianomqs/orgs","repos_url":"https://api.github.com/users/julianomqs/repos","events_url":"https://api.github.com/users/julianomqs/events{/privacy}","received_events_url":"https://api.github.com/users/julianomqs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-10T01:28:44Z","updated_at":"2016-06-10T01:28:44Z","closed_at":null,"body":"Hi,\r\n\r\nI think it will be useful to have an attribute in `o:importConstants` to get all enum values, like this:\r\n\r\n```\r\n<o:importConstants type=\"javax.faces.application.ProjectStage\" allSuffix=\"ALL_ENUM_VALUES\" />  \r\n \r\n<ui:repeat var=\"current\" value=\"#{ProjectStage.ALL_ENUM_VALUES}\">  \r\n    <h:outputText value=\"#{current}\" />    \r\n</ui:repeat>\r\n```\r\n\r\nThe main use case of this attribute is to put all values of enum in a `p:selectOneMenu`, or iteration components.\r\n\r\nPrimeFaces `o:importEnum` have this functionality, but I think OmniFaces `o:importConstants` is better because it handles constants and enums, and with PrimeFaces you have to use two components."}}
{"actor":{"display_login":"julianomqs"}}