{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/929","labels_url":"https://api.github.com/repos/primefaces/primefaces/issues/929/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primefaces/issues/929/comments","events_url":"https://api.github.com/repos/primefaces/primefaces/issues/929/events","html_url":"https://github.com/primefaces/primefaces/issues/929","id":119860443,"number":929,"title":"Using datatable within ui:repeat breaks selection","user":{"login":"shubforall","id":1394219,"avatar_url":"https://avatars.githubusercontent.com/u/1394219?v=3","gravatar_id":"","url":"https://api.github.com/users/shubforall","html_url":"https://github.com/shubforall","followers_url":"https://api.github.com/users/shubforall/followers","following_url":"https://api.github.com/users/shubforall/following{/other_user}","gists_url":"https://api.github.com/users/shubforall/gists{/gist_id}","starred_url":"https://api.github.com/users/shubforall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubforall/subscriptions","organizations_url":"https://api.github.com/users/shubforall/orgs","repos_url":"https://api.github.com/users/shubforall/repos","events_url":"https://api.github.com/users/shubforall/events{/privacy}","received_events_url":"https://api.github.com/users/shubforall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T03:35:52Z","updated_at":"2015-12-04T00:53:45Z","closed_at":null,"body":"I am using DataTable inside ui:repeat. Datatable is with multiple selectionMode. The selection is not working and only the selection from last datatable is considered. \r\n\r\nThe same issue is present if datatable is used inside p:rowExpansion or p:AccordianPanel (with model)\r\n\r\nVersion Tested: 5.2, 5.3\r\nForum discussion and proposed solution : http://forum.primefaces.org/viewtopic.php?f=3&t=36494&p=137360#p137360"},"comment":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/comments/161840292","html_url":"https://github.com/primefaces/primefaces/issues/929#issuecomment-161840292","issue_url":"https://api.github.com/repos/primefaces/primefaces/issues/929","id":161840292,"user":{"login":"shubforall","id":1394219,"avatar_url":"https://avatars.githubusercontent.com/u/1394219?v=3","gravatar_id":"","url":"https://api.github.com/users/shubforall","html_url":"https://github.com/shubforall","followers_url":"https://api.github.com/users/shubforall/followers","following_url":"https://api.github.com/users/shubforall/following{/other_user}","gists_url":"https://api.github.com/users/shubforall/gists{/gist_id}","starred_url":"https://api.github.com/users/shubforall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubforall/subscriptions","organizations_url":"https://api.github.com/users/shubforall/orgs","repos_url":"https://api.github.com/users/shubforall/repos","events_url":"https://api.github.com/users/shubforall/events{/privacy}","received_events_url":"https://api.github.com/users/shubforall/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T00:53:45Z","updated_at":"2015-12-04T00:53:45Z","body":"After debugging found out that the root cause is there is only one instance of DataTable. And Columns are not initialized again at the time of rendering. \r\n\r\norg.primefaces.component.datatable.DataTable.getColumns()\r\n\r\nThe column remains the same if the table is iterating at rendering time if within ui:repeat or any repeat model. \r\n\r\nThis results in same columns. "}}