{"action":"opened","issue":{"url":"https://api.github.com/repos/Citytechinc/cq-component-maven-plugin/issues/39","repository_url":"https://api.github.com/repos/Citytechinc/cq-component-maven-plugin","labels_url":"https://api.github.com/repos/Citytechinc/cq-component-maven-plugin/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/Citytechinc/cq-component-maven-plugin/issues/39/comments","events_url":"https://api.github.com/repos/Citytechinc/cq-component-maven-plugin/issues/39/events","html_url":"https://github.com/Citytechinc/cq-component-maven-plugin/issues/39","id":145249307,"number":39,"title":"Ability to store property in Touch UI/Classic UI node","user":{"login":"prabhahar","id":10424833,"avatar_url":"https://avatars.githubusercontent.com/u/10424833?v=3","gravatar_id":"","url":"https://api.github.com/users/prabhahar","html_url":"https://github.com/prabhahar","followers_url":"https://api.github.com/users/prabhahar/followers","following_url":"https://api.github.com/users/prabhahar/following{/other_user}","gists_url":"https://api.github.com/users/prabhahar/gists{/gist_id}","starred_url":"https://api.github.com/users/prabhahar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabhahar/subscriptions","organizations_url":"https://api.github.com/users/prabhahar/orgs","repos_url":"https://api.github.com/users/prabhahar/repos","events_url":"https://api.github.com/users/prabhahar/events{/privacy}","received_events_url":"https://api.github.com/users/prabhahar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-01T18:24:19Z","updated_at":"2016-04-01T18:24:19Z","closed_at":null,"body":" The presence of \"validator\" property for Classic-UI dialog is causing the following Js error and prevents any validation from occurring:\r\n\r\n**Uncaught TypeError: j.checkValidity is not a function**\r\n\r\nSo, here is an example of our annotations usage:\r\n@DialogField(\r\nname = \"xyz\",\r\nadditionalProperties = {\r\n@Property(name = \"validator\", value = \"function(fieldName){\" + \" return MtFeedback_checkMultipleEmails(fieldName,'CC');\" + \"}\"), \r\n@Property(name = \"validation\", value = \"mt.email.address\"),\r\n}\r\n\r\nAnd in effect, with the above annotation logic, Touch-UI should have a \"validation\" property but not \"validator\". And, conversely Classic-UI should have \"validator\" but not \"validation\".\r\n\r\n<img width=\"1440\" alt=\"screen shot 2016-04-01 at 11 33 56 am\" src=\"https://cloud.githubusercontent.com/assets/10424833/14216151/46e66d3e-f815-11e5-9d20-a5e9700d5013.png\">\r\n\r\n<img width=\"1043\" alt=\"screen shot 2016-04-01 at 11 41 27 am\" src=\"https://cloud.githubusercontent.com/assets/10424833/14216154/4f6170bc-f815-11e5-8be8-891501cd2c2a.png\">\r\n"}}