{"action":"created","issue":{"url":"https://api.github.com/repos/vaadin/framework/issues/10402","repository_url":"https://api.github.com/repos/vaadin/framework","labels_url":"https://api.github.com/repos/vaadin/framework/issues/10402/labels{/name}","comments_url":"https://api.github.com/repos/vaadin/framework/issues/10402/comments","events_url":"https://api.github.com/repos/vaadin/framework/issues/10402/events","html_url":"https://github.com/vaadin/framework/issues/10402","id":278499871,"node_id":"MDU6SXNzdWUyNzg0OTk4NzE=","number":10402,"title":"Cannot update the Current Caption of ComboBox","user":{"login":"pinonpierre","id":4507910,"node_id":"MDQ6VXNlcjQ1MDc5MTA=","avatar_url":"https://avatars2.githubusercontent.com/u/4507910?v=4","gravatar_id":"","url":"https://api.github.com/users/pinonpierre","html_url":"https://github.com/pinonpierre","followers_url":"https://api.github.com/users/pinonpierre/followers","following_url":"https://api.github.com/users/pinonpierre/following{/other_user}","gists_url":"https://api.github.com/users/pinonpierre/gists{/gist_id}","starred_url":"https://api.github.com/users/pinonpierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinonpierre/subscriptions","organizations_url":"https://api.github.com/users/pinonpierre/orgs","repos_url":"https://api.github.com/users/pinonpierre/repos","events_url":"https://api.github.com/users/pinonpierre/events{/privacy}","received_events_url":"https://api.github.com/users/pinonpierre/received_events","type":"User","site_admin":false},"labels":[{"id":842702960,"node_id":"MDU6TGFiZWw4NDI3MDI5NjA=","url":"https://api.github.com/repos/vaadin/framework/labels/BFP","name":"BFP","color":"E00040","default":false},{"id":16896444,"node_id":"MDU6TGFiZWwxNjg5NjQ0NA==","url":"https://api.github.com/repos/vaadin/framework/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"elmot","id":5366945,"node_id":"MDQ6VXNlcjUzNjY5NDU=","avatar_url":"https://avatars2.githubusercontent.com/u/5366945?v=4","gravatar_id":"","url":"https://api.github.com/users/elmot","html_url":"https://github.com/elmot","followers_url":"https://api.github.com/users/elmot/followers","following_url":"https://api.github.com/users/elmot/following{/other_user}","gists_url":"https://api.github.com/users/elmot/gists{/gist_id}","starred_url":"https://api.github.com/users/elmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elmot/subscriptions","organizations_url":"https://api.github.com/users/elmot/orgs","repos_url":"https://api.github.com/users/elmot/repos","events_url":"https://api.github.com/users/elmot/events{/privacy}","received_events_url":"https://api.github.com/users/elmot/received_events","type":"User","site_admin":false},"assignees":[{"login":"elmot","id":5366945,"node_id":"MDQ6VXNlcjUzNjY5NDU=","avatar_url":"https://avatars2.githubusercontent.com/u/5366945?v=4","gravatar_id":"","url":"https://api.github.com/users/elmot","html_url":"https://github.com/elmot","followers_url":"https://api.github.com/users/elmot/followers","following_url":"https://api.github.com/users/elmot/following{/other_user}","gists_url":"https://api.github.com/users/elmot/gists{/gist_id}","starred_url":"https://api.github.com/users/elmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elmot/subscriptions","organizations_url":"https://api.github.com/users/elmot/orgs","repos_url":"https://api.github.com/users/elmot/repos","events_url":"https://api.github.com/users/elmot/events{/privacy}","received_events_url":"https://api.github.com/users/elmot/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2017-12-01T15:24:21Z","updated_at":"2018-11-08T09:42:07Z","closed_at":"2018-05-29T14:38:24Z","author_association":"NONE","body":"There is no way to provoke the change of the caption of the Current ComboBox value\r\n```\r\nListDataProvider<String> dataProvider = new ListDataProvider<>(Arrays.asList(\"one\", \"two\", \"three\"));\r\n\r\nComboBox<String> comboBox = new ComboBox<>();\r\ncomboBox.setWidth(250, Unit.PIXELS);\r\ncomboBox.setDataProvider(dataProvider);\r\ncomboBox.setItemCaptionGenerator(item -> item + \" - \" + String.valueOf(System.currentTimeMillis()));\r\n\r\nlayout.addComponent(comboBox);\r\nButton button = new Button(\"Refresh\");\r\nbutton.addClickListener(event -> dataProvider.refreshItem(comboBox.getValue()));\r\nlayout.addComponent(button);\r\n```\r\n\r\nThe workaround is:\r\n`comboBox.setItemCaptionGenerator(comboBox.getItemCaptionGenerator());`\r\nbecause that's call the private ComboBox.updateSelectedItemCaption() method\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vaadin/framework/issues/comments/436933466","html_url":"https://github.com/vaadin/framework/issues/10402#issuecomment-436933466","issue_url":"https://api.github.com/repos/vaadin/framework/issues/10402","id":436933466,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjkzMzQ2Ng==","user":{"login":"anasmi","id":15248706,"node_id":"MDQ6VXNlcjE1MjQ4NzA2","avatar_url":"https://avatars3.githubusercontent.com/u/15248706?v=4","gravatar_id":"","url":"https://api.github.com/users/anasmi","html_url":"https://github.com/anasmi","followers_url":"https://api.github.com/users/anasmi/followers","following_url":"https://api.github.com/users/anasmi/following{/other_user}","gists_url":"https://api.github.com/users/anasmi/gists{/gist_id}","starred_url":"https://api.github.com/users/anasmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anasmi/subscriptions","organizations_url":"https://api.github.com/users/anasmi/orgs","repos_url":"https://api.github.com/users/anasmi/repos","events_url":"https://api.github.com/users/anasmi/events{/privacy}","received_events_url":"https://api.github.com/users/anasmi/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T09:42:07Z","updated_at":"2018-11-08T09:42:07Z","author_association":"CONTRIBUTOR","body":"No problem! : ) \r\n\r\nIt's always better to double check "}}
{"actor":{"display_login":"anasmi"}}