How to validate a field using cq.HTTP.post method In adobe cq5?
问题 I am trying to validate a field by sending field value to a servlet and in response i'm getting true or false i.e whether this field is valid or not . here is my dialog file <bodytext jcr:primaryType="cq:Widget" fieldDescription="Type Text Here" fieldLabel="Body Text" name="./bodytext" validator= "function(value) { var dialog = this.findParentByType('dialog'); var postParams = {}; postParams['value'] = value; CQ.HTTP.post('/bin/feeds/validation.json', function(options, success, response)