{"action":"opened","issue":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/1167","repository_url":"https://api.github.com/repos/primefaces/primefaces","labels_url":"https://api.github.com/repos/primefaces/primefaces/issues/1167/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primefaces/issues/1167/comments","events_url":"https://api.github.com/repos/primefaces/primefaces/issues/1167/events","html_url":"https://github.com/primefaces/primefaces/issues/1167","id":134559783,"number":1167,"title":"autocomplete with cache","user":{"login":"arunvc1","id":16149705,"avatar_url":"https://avatars.githubusercontent.com/u/16149705?v=3","gravatar_id":"","url":"https://api.github.com/users/arunvc1","html_url":"https://github.com/arunvc1","followers_url":"https://api.github.com/users/arunvc1/followers","following_url":"https://api.github.com/users/arunvc1/following{/other_user}","gists_url":"https://api.github.com/users/arunvc1/gists{/gist_id}","starred_url":"https://api.github.com/users/arunvc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunvc1/subscriptions","organizations_url":"https://api.github.com/users/arunvc1/orgs","repos_url":"https://api.github.com/users/arunvc1/repos","events_url":"https://api.github.com/users/arunvc1/events{/privacy}","received_events_url":"https://api.github.com/users/arunvc1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T11:55:53Z","updated_at":"2016-02-18T11:55:53Z","closed_at":null,"body":"Selected object became null when cache=true\r\nTry this sequence.\r\n1. Search for a text which is not present, the result rightly shows \"No Record\" \r\n2. Then search for a valid text and select that record.\r\n3. If you debug  onAutoSelect(SelectEvent event)  event.getObject() is null.\r\n\r\nNote : It works fine when cache=false\r\n\r\n ``` \r\npublic void onAutoSelect(SelectEvent event) {\r\n   Object o =  event.getObject();\r\n  }\r\n\r\n <p:autoComplete value=\"#{bookView.author}\" completeMethod=\"#{bookView.authorAuto}\"  var=\"e\" itemValue=\"#{e}\" itemLabel=\"#{e.name}\" emptyMessage=\"No Record\" dropdown=\"true\" cache=\"true\" queryDelay=\"500\" maxResults=\"500\" converterMessage=\"Invalid Selection\" autocomplete=\"false\" forceSelection=\"true\" > \r\n          <o:converter list=\"#{bookView.authorFilterList}\" converterId=\"omnifaces.ListConverter\"  />\r\n          <p:ajax event=\"itemSelect\" listener=\"#{bookView.onAutoSelect}\" />\r\n        </p:autoComplete>\r\n\r\n```\r\n\r\nPF 5.3.7, Tomcat 8, Java 8"}}