{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/1866","repository_url":"https://api.github.com/repos/primefaces/primefaces","labels_url":"https://api.github.com/repos/primefaces/primefaces/issues/1866/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primefaces/issues/1866/comments","events_url":"https://api.github.com/repos/primefaces/primefaces/issues/1866/events","html_url":"https://github.com/primefaces/primefaces/issues/1866","id":186250289,"number":1866,"title":"p:messages in ui:repeat not updated correctly","user":{"login":"martin654","id":22746146,"avatar_url":"https://avatars.githubusercontent.com/u/22746146?v=3","gravatar_id":"","url":"https://api.github.com/users/martin654","html_url":"https://github.com/martin654","followers_url":"https://api.github.com/users/martin654/followers","following_url":"https://api.github.com/users/martin654/following{/other_user}","gists_url":"https://api.github.com/users/martin654/gists{/gist_id}","starred_url":"https://api.github.com/users/martin654/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin654/subscriptions","organizations_url":"https://api.github.com/users/martin654/orgs","repos_url":"https://api.github.com/users/martin654/repos","events_url":"https://api.github.com/users/martin654/events{/privacy}","received_events_url":"https://api.github.com/users/martin654/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-31T10:26:59Z","updated_at":"2016-11-01T10:31:35Z","closed_at":null,"body":"## 1) Environment\r\n- PrimeFaces version: 5.3, 6.0.6\r\n- Does it work on the newest PrimeFaces version? no\r\n- Application server + version: Tomcat 8.0\r\n- Affected browsers: all\r\n\r\n## 2) Expected behavior\r\n**p:messages** with autoUpdate=\"true\" in ui:repeat are updated on events\r\n\r\n## 3) Actual behavior\r\np:messages placed in ui:repeat are not updated\r\n\r\n## 4) Steps to reproduce\r\n- When \"Process input\" button clicked, only p:messages NOT in ui:repeat are updated. (all p:messages with autoUpdate should be updated)\r\n\r\n![process_input](https://cloud.githubusercontent.com/assets/22746146/19851027/1af00246-9f5c-11e6-8740-1421e9c444b9.PNG) \r\n- When \"Process form\" button clicked, everything works fine and error message is shown in all p:messages components in page including those in ui:repeat. \r\n\r\n![process_form](https://cloud.githubusercontent.com/assets/22746146/19851029/1af507b4-9f5c-11e6-827a-4e8c35bd94da.PNG)\r\n- When \"Process this\" button clicked, only p:messages outside ui:repeat are updated and messages \r\nare hidden (all p:messages with autoUpdate should be updated)\r\n\r\n![process_this](https://cloud.githubusercontent.com/assets/22746146/19851028/1af0b1f0-9f5c-11e6-90ea-aae01b22758f.PNG)\r\n\r\n## 5) Sample XHTML\r\n```\r\n<h:form>\r\n\r\n      <div class=\"Container ContainerIndent\">\r\n        <p:commandButton value=\"Process form\" id=\"cb_submitForm\" process=\"@form\" update=\"@form\" styleClass=\"BB\" \r\n           />\r\n      </div>\r\n  \r\n      <div class=\"Container50 Responsive100\">\r\n        <p:panel header=\"panel\" styleClass=\"ContainerIndent\">\r\n          <p:inputText id=\"testId\" required=\"true\" label=\"text field\"/>\r\n          <p:commandButton value=\"Process input\" process=\"@this testId\" update=\"@this testId\" />\r\n          <p:commandButton value=\"Process this\" process=\"@this\" update=\"@this\" immediate=\"true\" />          \r\n        </p:panel>\r\n      </div>\r\n\r\n      <div class=\"Container50 Responsive100\">\r\n        <p:panel header=\"Messages in ui:repeat\" styleClass=\"ContainerIndent\">\r\n          <h:panelGroup id=\"messagesTestPanel\">\r\n            <p:outputLabel value=\"Plain messages:\"/>\r\n\r\n            <p:messages showDetail=\"true\" autoUpdate=\"true\" closable=\"true\" styleClass=\"top-messages\"/>\r\n\r\n            <p:outputLabel value=\"Messages in ui:repeat:\"/>\r\n            <br/>\r\n            <ui:repeat var=\"messagesRepeatVar\" value=\"#{booleanSelectModel.messagesTestSomeList}\" varStatus=\"messagesRepeatStatus\">\r\n              <p:outputLabel value=\"#{messagesRepeatVar}\"/>\r\n              <p:messages showDetail=\"true\" autoUpdate=\"true\" closable=\"true\" styleClass=\"top-messages\" />\r\n            </ui:repeat>\r\n\r\n          </h:panelGroup>\r\n\r\n        </p:panel>\r\n      </div>\r\n\r\n    </h:form>\r\n```\r\n## 6) Sample bean\r\n```\r\nprivate List<String> messagesTestSomeList = Arrays.asList(\"first\", \"second\", \"third\");\r\npublic List<String> getMessagesTestSomeList() {\r\n  return messagesTestSomeList;\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/comments/257534462","html_url":"https://github.com/primefaces/primefaces/issues/1866#issuecomment-257534462","issue_url":"https://api.github.com/repos/primefaces/primefaces/issues/1866","id":257534462,"user":{"login":"tandraschko","id":2485545,"avatar_url":"https://avatars.githubusercontent.com/u/2485545?v=3","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":"2016-11-01T10:31:35Z","updated_at":"2016-11-01T10:31:35Z","body":"Does it work with MyFaces?\r\nAlso not sure if AutoUpdateable could work in ui:repeat correctly."}}
{"actor":{"display_login":"tandraschko"}}