{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/2893","repository_url":"https://api.github.com/repos/primefaces/primefaces","labels_url":"https://api.github.com/repos/primefaces/primefaces/issues/2893/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primefaces/issues/2893/comments","events_url":"https://api.github.com/repos/primefaces/primefaces/issues/2893/events","html_url":"https://github.com/primefaces/primefaces/issues/2893","id":270436642,"number":2893,"title":"p:selectOneMenu not support f:selectItem when the attribute var is set","user":{"login":"Lynx12","id":3788624,"avatar_url":"https://avatars3.githubusercontent.com/u/3788624?v=4","gravatar_id":"","url":"https://api.github.com/users/Lynx12","html_url":"https://github.com/Lynx12","followers_url":"https://api.github.com/users/Lynx12/followers","following_url":"https://api.github.com/users/Lynx12/following{/other_user}","gists_url":"https://api.github.com/users/Lynx12/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynx12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynx12/subscriptions","organizations_url":"https://api.github.com/users/Lynx12/orgs","repos_url":"https://api.github.com/users/Lynx12/repos","events_url":"https://api.github.com/users/Lynx12/events{/privacy}","received_events_url":"https://api.github.com/users/Lynx12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-11-01T20:13:01Z","updated_at":"2017-11-01T21:01:14Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi, I'm testing the new COLLECT_SCRIPTS and I found the next problem.\r\n\r\n## 1) Environment\r\n- PrimeFaces version: 6.2-SNAPSHOT\r\n- Does it work on the newest released PrimeFaces version?\r\nYes, in version 6.1\r\n- Application server + version: WildFly 10\r\n- Affected browsers: Any browser\r\n\r\n## 2) Expected behavior\r\n**p:selectOneMenu** should work if **f:selectItem** is used and the attribute **var** is set.\r\n\r\n## 3) Actual behavior\r\n**p:selectOneMenu** throws this error:\r\njavax.el.PropertyNotFoundException: The class 'java.lang.String' does not have the property 'xxxxx'.\r\n\r\n## 4) Steps to reproduce\r\nThe next example taken of the showcase should reproduce it.\r\n\r\n```\r\n<p:selectOneMenu value=\"#{selectOneMenuView.theme}\">\r\n\t<f:selectItem itemLabel=\"Select one...\" itemValue=\"\" />\r\n\t<f:selectItems value=\"#{selectOneMenuView.themes}\" var=\"theme\" itemLabel=\"#{theme.displayName}\" itemValue=\"#{theme}\" />\r\n\t<p:column>\r\n\t\t<h:outputText styleClass=\"ui-theme ui-theme-#{t.name}\" />\r\n\t</p:column>\r\n\t<p:column>\r\n\t\t<h:outputText value=\"#{t.displayName}\" />\r\n\t</p:column>\r\n</p:selectOneMenu>\r\n```\r\n\r\nI think this problem was not introduced intentionally, the commit related is: https://github.com/primefaces/primefaces/commit/49c95a753328691ce07695315600ccb24bff4f8a\r\n\r\nThe lines (363 to 369) were removed:\r\nhttps://github.com/primefaces/primefaces/blob/f83db0b51eb152f81ea10670689659f49f5be41e/src/main/java/org/primefaces/component/selectonemenu/SelectOneMenuRenderer.java#L362-L382\r\n"},"comment":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/comments/341241198","html_url":"https://github.com/primefaces/primefaces/issues/2893#issuecomment-341241198","issue_url":"https://api.github.com/repos/primefaces/primefaces/issues/2893","id":341241198,"user":{"login":"tandraschko","id":2485545,"avatar_url":"https://avatars1.githubusercontent.com/u/2485545?v=4","gravatar_id":"","url":"https://api.github.com/users/tandraschko","html_url":"https://github.com/tandraschko","followers_url":"https://api.github.com/users/tandraschko/followers","following_url":"https://api.github.com/users/tandraschko/following{/other_user}","gists_url":"https://api.github.com/users/tandraschko/gists{/gist_id}","starred_url":"https://api.github.com/users/tandraschko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tandraschko/subscriptions","organizations_url":"https://api.github.com/users/tandraschko/orgs","repos_url":"https://api.github.com/users/tandraschko/repos","events_url":"https://api.github.com/users/tandraschko/events{/privacy}","received_events_url":"https://api.github.com/users/tandraschko/received_events","type":"User","site_admin":false},"created_at":"2017-11-01T21:01:14Z","updated_at":"2017-11-01T21:01:14Z","author_association":"MEMBER","body":"We should really think about it if it's valid....\r\nthe custom content can't work correctly in this case as the #{t} is just a string"}}
{"actor":{"display_login":"tandraschko"}}