{"id":246,"date":"2015-08-23T18:47:00","date_gmt":"2015-08-23T18:47:00","guid":{"rendered":""},"modified":"2020-01-17T07:37:01","modified_gmt":"2020-01-17T07:37:01","slug":"custom-combobox-with-dynamically-generated-option-value-by-the-servlet","status":"publish","type":"post","link":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/","title":{"rendered":"Custom ComboBox with Dynamically Generated option value by the Servlet"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">In this post, I will explain <i><span style=\"color: purple;\">how to create <gs ginger_software_uiphraseguid=\"47765932-b1de-43cd-996f-eaf0c0b3c776\">ComboBox<\/gs> with Dynamically generated option value in AEM6 dialog?<\/span><\/i><br \/>\nLet&#8217;s see with the example:-<\/p>\n<p><a href=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png\" style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png\"><\/a><br \/>\nI created a dialog with a tab named as tab1. Under this node, I created a node named as <i><span style=\"color: purple;\">items<\/span><\/i> with the property <i><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">jcr<\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">:<\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">primaryType<\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs> = <gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><\/span><\/i><i><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><\/span><\/i><i><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><\/span><\/i><i><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">cq<\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">:<\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">widgetCollection<\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">.<\/gs><\/gs><\/span><\/i>Under this node, I created a node named as <gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><i><span style=\"color: purple;\">comboBox<\/span><\/i><\/gs><\/gs> with <gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">the property<\/gs><\/gs> <gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><i><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">jcr<\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">:<\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">primaryType<\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs> = <gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">cq<\/gs><\/gs><gs ginger_software_uiphraseguid=\"bc4cf743-1da7-4936-a6da-381b57cef4d2\"><gs ginger_software_uiphraseguid=\"dbd40c98-240f-4d5c-8f1b-89582321241f\">:<\/gs><\/gs>widget<\/span><\/i> as shown in figure-<\/p>\n<p>Now set the properties of&nbsp;this node as shown in figure-<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-23-2B11-253A36-253A58.png\" style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\"><img fetchpriority=\"high\" decoding=\"async\" border=\"0\" height=\"193\" src=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-23-2B11-253A36-253A58-300x181.png\" width=\"320\"><\/a><\/div>\n<p>For creating a <gs ginger_software_uiphraseguid=\"dad1dd38-a769-4da8-bf84-3b0931bf9243\"><gs ginger_software_uiphraseguid=\"c1ed6b63-364a-4d12-9abe-90d474d9718c\"><gs ginger_software_uiphraseguid=\"981f2c67-d10b-4006-9255-d451135f8b31\">comboBox<\/gs><\/gs><\/gs>, I used these properties-<br \/>\n<i><span style=\"color: purple;\">type=select<\/span><\/i><br \/>\n<i><span style=\"color: purple;\">xtype=selection<\/span><\/i><\/p>\n<p>All other properties are explained below-<\/p>\n<p><b><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"901c51e0-b880-47b9-9abb-49118a117d43\">allowBlank<\/gs>&nbsp;<\/span><\/b>= It <gs ginger_software_uiphraseguid=\"a2e0a03b-6557-47cf-8465-9f18db99cb48\"><gs ginger_software_uiphraseguid=\"c68c71f0-c1e2-45aa-b985-f8add0343653\">restricts<\/gs><\/gs> you from submitting the dialog without selecting any option from the&nbsp;<gs ginger_software_uiphraseguid=\"a2e0a03b-6557-47cf-8465-9f18db99cb48\"><gs ginger_software_uiphraseguid=\"c68c71f0-c1e2-45aa-b985-f8add0343653\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"a2e0a03b-6557-47cf-8465-9f18db99cb48\"><gs ginger_software_uiphraseguid=\"c68c71f0-c1e2-45aa-b985-f8add0343653\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"a2e0a03b-6557-47cf-8465-9f18db99cb48\"><gs ginger_software_uiphraseguid=\"c68c71f0-c1e2-45aa-b985-f8add0343653\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"a2e0a03b-6557-47cf-8465-9f18db99cb48\"><gs ginger_software_uiphraseguid=\"c68c71f0-c1e2-45aa-b985-f8add0343653\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"a2e0a03b-6557-47cf-8465-9f18db99cb48\"><gs ginger_software_uiphraseguid=\"c68c71f0-c1e2-45aa-b985-f8add0343653\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"a2e0a03b-6557-47cf-8465-9f18db99cb48\"><gs ginger_software_uiphraseguid=\"c68c71f0-c1e2-45aa-b985-f8add0343653\"><gs ginger_software_uiphraseguid=\"901c51e0-b880-47b9-9abb-49118a117d43\">comboBox<\/gs><\/gs><\/gs>.<\/p>\n<p><span style=\"color: purple;\"><b><gs ginger_software_uiphraseguid=\"1f93e93a-9982-486d-adf9-53b29516df75\">fieldLabel<\/gs><\/b>&nbsp;<\/span>= Text that will be shown before <gs ginger_software_uiphraseguid=\"82abd71e-ff12-4b0e-91ae-563c38ef2a33\"><gs ginger_software_uiphraseguid=\"8e8ab749-2ab4-4c5b-bdd8-e32fa53c2005\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"82abd71e-ff12-4b0e-91ae-563c38ef2a33\"><gs ginger_software_uiphraseguid=\"8e8ab749-2ab4-4c5b-bdd8-e32fa53c2005\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"82abd71e-ff12-4b0e-91ae-563c38ef2a33\"><gs ginger_software_uiphraseguid=\"8e8ab749-2ab4-4c5b-bdd8-e32fa53c2005\"><gs ginger_software_uiphraseguid=\"1f93e93a-9982-486d-adf9-53b29516df75\">comboBox<\/gs><\/gs><\/gs>.<\/p>\n<p><b><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"b31c23e1-02f8-4467-9c73-de7181ddc088\">options<\/gs>&nbsp;<\/span><\/b>= This property is used to define the servlet path that returns the JSON<gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><gs ginger_software_uiphraseguid=\"684acde9-73c3-421a-84b9-29d0f16a41aa\">.&nbsp;<\/gs><\/gs>This JSON will act as the option value for the <gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><\/gs><gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><gs ginger_software_uiphraseguid=\"684acde9-73c3-421a-84b9-29d0f16a41aa\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><gs ginger_software_uiphraseguid=\"684acde9-73c3-421a-84b9-29d0f16a41aa\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><gs ginger_software_uiphraseguid=\"684acde9-73c3-421a-84b9-29d0f16a41aa\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><gs ginger_software_uiphraseguid=\"684acde9-73c3-421a-84b9-29d0f16a41aa\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><gs ginger_software_uiphraseguid=\"684acde9-73c3-421a-84b9-29d0f16a41aa\"><gs ginger_software_uiphraseguid=\"28c01606-2c88-459d-9c28-c0a63294dae6\">comboBox<\/gs><\/gs><\/gs><gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><gs ginger_software_uiphraseguid=\"684acde9-73c3-421a-84b9-29d0f16a41aa\">.<\/gs><\/gs><gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><gs ginger_software_uiphraseguid=\"684acde9-73c3-421a-84b9-29d0f16a41aa\"><\/gs><\/gs><gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><gs ginger_software_uiphraseguid=\"684acde9-73c3-421a-84b9-29d0f16a41aa\">&nbsp;<\/gs><\/gs>In my case <gs ginger_software_uiphraseguid=\"ed1be490-9f9d-4c81-a720-3d0c6f1e4c18\"><gs ginger_software_uiphraseguid=\"684acde9-73c3-421a-84b9-29d0f16a41aa\"><gs ginger_software_uiphraseguid=\"28c01606-2c88-459d-9c28-c0a63294dae6\">it&#8217;s<\/gs><\/gs><\/gs> value is <i><span style=\"color: purple;\">\/bin\/page.html<\/span><\/i> that returns a JSON as shown below-<\/p>\n<p><i><span style=\"color: purple;\">{&#8220;1&#8221;:[{&#8220;path&#8221;:&#8221;\/content\/geometrixx\/en\/toolbar\/contacts&#8221;,&#8221;title&#8221;:&#8221;Contact&#8221;},{&#8220;path&#8221;:&#8221;\/content\/geometrixx\/en\/toolbar\/feedback&#8221;,&#8221;title&#8221;:&#8221;Feedback&#8221;},{&#8220;path&#8221;:&#8221;\/content\/geometrixx\/en\/toolbar\/newsletter&#8221;,&#8221;title&#8221;:&#8221;Newsletter&#8221;}]}<\/span><\/i><\/p>\n<p><gs ginger_software_uiphraseguid=\"0b56aec9-b458-496e-bb1c-1e5aea045f4f\"><gs ginger_software_uiphraseguid=\"f2dcd9bf-0c08-4a04-92f4-c1aff979a597\"><b><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"a859d68f-ee73-4198-88e7-2bcf3f03be72\">optionsRoot<\/gs><\/span><\/b><\/gs><\/gs>&nbsp; = This property defines what property of the given JSON act as the source of options for this <gs ginger_software_uiphraseguid=\"0b56aec9-b458-496e-bb1c-1e5aea045f4f\"><\/gs><gs ginger_software_uiphraseguid=\"0b56aec9-b458-496e-bb1c-1e5aea045f4f\"><\/gs><gs ginger_software_uiphraseguid=\"0b56aec9-b458-496e-bb1c-1e5aea045f4f\"><\/gs><gs ginger_software_uiphraseguid=\"0b56aec9-b458-496e-bb1c-1e5aea045f4f\"><\/gs><gs ginger_software_uiphraseguid=\"0b56aec9-b458-496e-bb1c-1e5aea045f4f\"><\/gs><gs ginger_software_uiphraseguid=\"0b56aec9-b458-496e-bb1c-1e5aea045f4f\"><gs ginger_software_uiphraseguid=\"a859d68f-ee73-4198-88e7-2bcf3f03be72\">comboBox<\/gs><\/gs>. As my JSON object contains an Array corresponding to a key &#8220;<span style=\"color: purple;\">1<\/span>&#8220;, So my <span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"353a6571-e3b5-465d-b92f-52d0a805ddb0\"><gs ginger_software_uiphraseguid=\"949c58a0-3f10-49e3-929a-60c3d9e0d793\"><i>optionsRoot<\/i><\/gs><\/gs> <\/span>property value will be &#8220;1&#8221;.<\/p>\n<p><b><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"53a45bbd-e54b-4272-ba23-28a6e156a059\">optionsTextField<\/gs>&nbsp;<\/span><\/b>= &nbsp;This field <gs ginger_software_uiphraseguid=\"f19a219a-e619-4eca-be4d-1bab34f8ad2f\">represents<\/gs> that which key from the JSON object will be treated as <gs ginger_software_uiphraseguid=\"f19a219a-e619-4eca-be4d-1bab34f8ad2f\"><gs ginger_software_uiphraseguid=\"89f38cd0-8ecf-4231-961d-c7de94172848\">an&nbsp;<\/gs><\/gs>options text values i.e. T<gs ginger_software_uiphraseguid=\"37f176bf-8dec-486c-9ea3-00c396ea8bae\"><gs ginger_software_uiphraseguid=\"aadfc6cc-6e32-431e-a9a5-5f30d7f0a4dd\">he<\/gs><\/gs> text that will be displayed in the <gs ginger_software_uiphraseguid=\"37f176bf-8dec-486c-9ea3-00c396ea8bae\"><\/gs><gs ginger_software_uiphraseguid=\"37f176bf-8dec-486c-9ea3-00c396ea8bae\"><\/gs><gs ginger_software_uiphraseguid=\"37f176bf-8dec-486c-9ea3-00c396ea8bae\"><gs ginger_software_uiphraseguid=\"ce34abff-a4b9-49d4-a7bd-8590c0d98b98\">comboBox<\/gs><\/gs>.<\/p>\n<p><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"afc09426-33da-40f6-827d-4f27e3fce5c0\"><b><gs ginger_software_uiphraseguid=\"c5b5d640-ade4-4488-85c8-a1ef25bffca2\">optionsValueField<\/gs><\/b><\/gs> <\/span>&#8211; This field <gs ginger_software_uiphraseguid=\"afc09426-33da-40f6-827d-4f27e3fce5c0\">represents<\/gs> that which key from the JSON object will be treated as the value of that option i.e. <gs ginger_software_uiphraseguid=\"75173cd3-65f0-48f9-a972-c56e1677ccb7\">On<\/gs> selecting a value from <gs ginger_software_uiphraseguid=\"75173cd3-65f0-48f9-a972-c56e1677ccb7\"><gs ginger_software_uiphraseguid=\"d63c23f9-43fd-4ab1-89c1-e98882b28c9d\">comboBox<\/gs><\/gs> what will be returned to <gs ginger_software_uiphraseguid=\"75173cd3-65f0-48f9-a972-c56e1677ccb7\">the server<\/gs>.<\/p>\n<p>Now, In my case the array has multiple JSON objects having two keys with corresponding values. These values are<i><span style=\"color: purple;\"> &#8220;path&#8221; &amp; &#8220;title&#8221;<\/span><\/i>.<br \/>\n&nbsp;I want to show &#8220;<i><span style=\"color: purple;\">title<\/span><\/i>&#8221; as option&nbsp;text value, i.e. It will be visible to the author &amp; &#8220;<i><span style=\"color: purple;\">path<\/span><\/i>&#8221; is for returning the value to the server when <gs ginger_software_uiphraseguid=\"e639e876-ecaa-46d5-865f-0e1cfe56f830\">user<\/gs> selects title value from the <gs ginger_software_uiphraseguid=\"e639e876-ecaa-46d5-865f-0e1cfe56f830\">comboBox<\/gs>.<br \/>\nSo I set these properties like this-<br \/>\n<i><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"8bfb40d4-3b23-4232-9878-7022cacd9066\">optionsTextField<\/gs> = title<\/span><\/i><br \/>\n<i><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"09a6c14f-6807-49f7-b954-94430846a79c\">optionsValueField<\/gs> = path<\/span><\/i><\/p>\n<p>For example-<br \/>\nIf <gs ginger_software_uiphraseguid=\"65a34b90-39f7-48ef-8ee1-6cd13483e1bc\">user<\/gs> selects the &#8220;Contact&#8221; then&nbsp;<span style=\"color: purple; font-style: italic;\">&#8220;\/content\/<gs ginger_software_uiphraseguid=\"65a34b90-39f7-48ef-8ee1-6cd13483e1bc\">geometrixx<\/gs>\/en\/toolbar\/contacts&#8221;<\/span>&nbsp;will be returned to the server for further processing.<\/p>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<p><a href=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-24-2B00-253A06-253A29.png\" style=\"clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\"><img decoding=\"async\" border=\"0\" height=\"92\" src=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-24-2B00-253A06-253A29-300x86.png\" width=\"320\"><\/a>After using all the above properties the dialog will be look like this-<\/p>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<p><b><span style=\"color: purple;\">NOTE:<\/span><\/b><br \/>\nIf your servlet returns only&nbsp;<i><span style=\"color: purple;\">single JSONArray<\/span><\/i>&nbsp;and at the place of&nbsp;<i><span style=\"color: purple;\">&#8220;<gs ginger_software_uiphraseguid=\"a85af3a3-e3c4-4a7f-a529-ca114ac691cd\"><gs ginger_software_uiphraseguid=\"809134b4-a101-4a3b-aee8-3fc917c4e4d1\">path&#8221;<\/gs><\/gs><\/span><\/i>&nbsp;and&nbsp;<i><span style=\"color: purple;\">&#8220;title&#8221;<\/span><\/i>&nbsp;are&nbsp;<i><span style=\"color: purple;\">&#8220;key&#8221;<\/span><\/i>&nbsp;and&nbsp;<i><span style=\"color: purple;\">&#8220;value&#8221;<\/span><\/i>&nbsp;like-<\/p>\n<p><i><span style=\"color: purple;\">[{&#8220;key&#8221;:&#8221;\/content\/geometrixx\/en\/toolbar\/contacts&#8221;,&#8221;value&#8221;:&#8221;Contact&#8221;},{&#8220;key&#8221;:&#8221;\/content\/geometrixx\/en\/toolbar\/feedback&#8221;,&#8221;value&#8221;:&#8221;Feedback&#8221;},{&#8220;key&#8221;:&#8221;\/content\/geometrixx\/en\/toolbar\/newsletter&#8221;,&#8221;value&#8221;:&#8221;Newsletter&#8221;}]<\/span><\/i><br \/>\nThen the last three &nbsp;properties (<span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"2acc5b88-6e17-49f0-9752-ab1670fea088\">optionsRoot<\/gs><b>,&nbsp;<\/b><\/span><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"2acc5b88-6e17-49f0-9752-ab1670fea088\">optionsTextField<\/gs><b>,&nbsp;<\/b><\/span><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"2acc5b88-6e17-49f0-9752-ab1670fea088\">optionsValueField<\/gs><\/span>) are not required because&nbsp;<span style=\"color: purple;\">by default&nbsp;<\/span>the value of&nbsp;<gs ginger_software_uiphraseguid=\"358cc778-2742-4f44-9614-62c04565b559\"><gs ginger_software_uiphraseguid=\"5948f612-1a0f-45f6-a236-32808f5eee20\"><i><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"2acc5b88-6e17-49f0-9752-ab1670fea088\">optionsTextField<\/gs><\/span><\/i><\/gs><\/gs>&nbsp;is&nbsp;<i><span style=\"color: purple;\">&#8220;key&#8221;<\/span><\/i>&nbsp;&amp; the value of&nbsp;<gs ginger_software_uiphraseguid=\"358cc778-2742-4f44-9614-62c04565b559\"><gs ginger_software_uiphraseguid=\"5948f612-1a0f-45f6-a236-32808f5eee20\"><i><span style=\"color: purple;\"><gs ginger_software_uiphraseguid=\"2acc5b88-6e17-49f0-9752-ab1670fea088\">optinosValueField<\/gs><\/span><\/i><\/gs><\/gs>&nbsp;is&nbsp;<i><span style=\"color: purple;\">&#8220;value&#8221;<\/span><\/i>.<\/p>\n<p>But if your&nbsp;JSON is in the&nbsp;form of like this-<\/p>\n<p><i><span style=\"color: purple;\">{&#8220;1&#8221;:[{&#8220;key&#8221;:&#8221;\/content\/geometrixx\/en\/toolbar\/contacts&#8221;,&#8221;value&#8221;:&#8221;Contact&#8221;},{&#8220;key&#8221;:&#8221;\/content\/geometrixx\/en\/toolbar\/feedback&#8221;,&#8221;value&#8221;:&#8221;Feedback&#8221;},{&#8220;key&#8221;:&#8221;\/content\/geometrixx\/en\/toolbar\/newsletter&#8221;,&#8221;value&#8221;:&#8221;Newsletter&#8221;}<\/span><\/i><i><span style=\"color: purple;\">]}<\/span><\/i><br \/>\nThen only&nbsp;<gs ginger_software_uiphraseguid=\"a877d116-969e-4132-ad31-e867f596a0b0\">optionsRoot<\/gs>&nbsp;value is mandatory.<\/p>\n<p>But if you want to give another name at the place of&nbsp;<i><span style=\"color: purple;\">&#8220;key&#8221;&nbsp;<\/span><\/i>and&nbsp;<i><span style=\"color: purple;\">&#8220;value&#8221;<\/span><\/i>&nbsp;then<gs ginger_software_uiphraseguid=\"3c141055-51a9-456e-8925-60c2637bc824\">,&nbsp;all of these three&nbsp;<\/gs>properties are&nbsp;<gs ginger_software_uiphraseguid=\"3c141055-51a9-456e-8925-60c2637bc824\"><\/gs><gs ginger_software_uiphraseguid=\"3c141055-51a9-456e-8925-60c2637bc824\">mandatory<\/gs>.<\/p>\n<p>If your JSONArray is like as-<br \/>\n<i><span style=\"color: purple;\">[{&#8220;path&#8221;:&#8221;\/content\/geometrixx\/en\/toolbar\/contacts&#8221;,&#8221;title&#8221;:&#8221;Contact&#8221;},{&#8220;<\/span><\/i><i><span style=\"color: purple;\">path<\/span><\/i><i><span style=\"color: purple;\">&#8220;:&#8221;\/content\/geometrixx\/en\/toolbar\/feedback&#8221;,&#8221;<\/span><\/i><i><span style=\"color: purple;\">title<\/span><\/i><i><span style=\"color: purple;\">&#8220;:&#8221;Feedback&#8221;},{&#8220;<\/span><\/i><i><span style=\"color: purple;\">path<\/span><\/i><i><span style=\"color: purple;\">&#8220;:&#8221;\/content\/geometrixx\/en\/toolbar\/newsletter&#8221;,&#8221;<\/span><\/i><i><span style=\"color: purple;\">title<\/span><\/i><i><span style=\"color: purple;\">&#8220;:&#8221;Newsletter&#8221;}]<\/span><\/i><br \/>\n<i><span style=\"color: purple;\"><br \/>\n<\/span><\/i>Then, You have to convert your JSON in this form-<br \/>\n<i><span style=\"color: purple;\"><br \/>\n<\/span><\/i><i><span style=\"color: purple;\">{&#8220;1&#8221;:[{&#8220;<\/span><\/i><i><span style=\"color: purple;\">path<\/span><\/i><i><span style=\"color: purple;\">&#8220;:&#8221;\/content\/geometrixx\/en\/toolbar\/contacts&#8221;,&#8221;<\/span><\/i><i><span style=\"color: purple;\">title<\/span><\/i><i><span style=\"color: purple;\">&#8220;:&#8221;Contact&#8221;},{&#8220;<\/span><\/i><i><span style=\"color: purple;\">path<\/span><\/i><i><span style=\"color: purple;\">&#8220;:&#8221;\/content\/geometrixx\/en\/toolbar\/feedback&#8221;,&#8221;<\/span><\/i><i><span style=\"color: purple;\">title<\/span><\/i><i><span style=\"color: purple;\">&#8220;:&#8221;Feedback&#8221;},{&#8220;<\/span><\/i><i><span style=\"color: purple;\">path<\/span><\/i><i><span style=\"color: purple;\">&#8220;:&#8221;\/content\/geometrixx\/en\/toolbar\/newsletter&#8221;,&#8221;<\/span><\/i><i><span style=\"color: purple;\">title<\/span><\/i><i><span style=\"color: purple;\">&#8220;:&#8221;Newsletter&#8221;}<\/span><\/i><i><span style=\"color: purple;\">]}<\/span><\/i><\/p>\n<p><gs ginger_software_uiphraseguid=\"358cc778-2742-4f44-9614-62c04565b559\">Then, You can use last three properties properly.<\/gs><\/p>\n<p><i><span style=\"color: purple;\">Be Happy<\/span><\/i><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this post, I will explain how to create ComboBox with Dynamically generated option value in AEM6 dialog? Let&#8217;s see [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,233,33,234,232,235],"tags":[],"class_list":["post-246","post","type-post","status-publish","format-standard","hentry","category-aem","category-combobox-generated-by-servlet","category-cq","category-custom-combobox","category-custom-combobox-with-dynamically-generated-option-value-by-the-servlet","category-dynamically-generated-combobox"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Custom ComboBox with Dynamically Generated option value by the Servlet - AEM Blog | Lhotse Technologies<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Custom ComboBox with Dynamically Generated option value by the Servlet - AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"og:description\" content=\"In this post, I will explain how to create ComboBox with Dynamically generated option value in AEM6 dialog? Let&#8217;s see [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/\" \/>\n<meta property=\"og:site_name\" content=\"AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-23T18:47:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-17T07:37:01+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png\" \/>\n<meta name=\"author\" content=\"Team Lhotse\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team Lhotse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/\"},\"author\":{\"name\":\"Team Lhotse\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\"},\"headline\":\"Custom ComboBox with Dynamically Generated option value by the Servlet\",\"datePublished\":\"2015-08-23T18:47:00+00:00\",\"dateModified\":\"2020-01-17T07:37:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/\"},\"wordCount\":667,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png\",\"articleSection\":[\"AEM\",\"combobox generated by servlet\",\"CQ\",\"custom combobox\",\"Custom ComboBox with Dynamically Generated option value by the Servlet\",\"Dynamically generated combobox\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/\",\"name\":\"Custom ComboBox with Dynamically Generated option value by the Servlet - AEM Blog | Lhotse Technologies\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png\",\"datePublished\":\"2015-08-23T18:47:00+00:00\",\"dateModified\":\"2020-01-17T07:37:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#primaryimage\",\"url\":\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png\",\"contentUrl\":\"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lhotsetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Custom ComboBox with Dynamically Generated option value by the Servlet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"name\":\"AEM Blog | Lhotse Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\",\"name\":\"AEM Blog | Lhotse Technologies\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"contentUrl\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"width\":539,\"height\":172,\"caption\":\"AEM Blog | Lhotse Technologies\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\",\"name\":\"Team Lhotse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Team Lhotse\"},\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Custom ComboBox with Dynamically Generated option value by the Servlet - AEM Blog | Lhotse Technologies","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/","og_locale":"en_US","og_type":"article","og_title":"Custom ComboBox with Dynamically Generated option value by the Servlet - AEM Blog | Lhotse Technologies","og_description":"In this post, I will explain how to create ComboBox with Dynamically generated option value in AEM6 dialog? Let&#8217;s see [&hellip;]","og_url":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/","og_site_name":"AEM Blog | Lhotse Technologies","article_published_time":"2015-08-23T18:47:00+00:00","article_modified_time":"2020-01-17T07:37:01+00:00","og_image":[{"url":"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png","type":"","width":"","height":""}],"author":"Team Lhotse","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Team Lhotse","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#article","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/"},"author":{"name":"Team Lhotse","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d"},"headline":"Custom ComboBox with Dynamically Generated option value by the Servlet","datePublished":"2015-08-23T18:47:00+00:00","dateModified":"2020-01-17T07:37:01+00:00","mainEntityOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/"},"wordCount":667,"commentCount":0,"publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#primaryimage"},"thumbnailUrl":"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png","articleSection":["AEM","combobox generated by servlet","CQ","custom combobox","Custom ComboBox with Dynamically Generated option value by the Servlet","Dynamically generated combobox"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/","url":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/","name":"Custom ComboBox with Dynamically Generated option value by the Servlet - AEM Blog | Lhotse Technologies","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#primaryimage"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#primaryimage"},"thumbnailUrl":"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png","datePublished":"2015-08-23T18:47:00+00:00","dateModified":"2020-01-17T07:37:01+00:00","breadcrumb":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#primaryimage","url":"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png","contentUrl":"http:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2015\/08\/Screenshot-2Bfrom-2B2015-08-22-2B23-253A41-253A29.png"},{"@type":"BreadcrumbList","@id":"https:\/\/lhotsetechnologies.com\/blog\/custom-combobox-with-dynamically-generated-option-value-by-the-servlet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lhotsetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Custom ComboBox with Dynamically Generated option value by the Servlet"}]},{"@type":"WebSite","@id":"https:\/\/lhotsetechnologies.com\/blog\/#website","url":"https:\/\/lhotsetechnologies.com\/blog\/","name":"AEM Blog | Lhotse Technologies","description":"","publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization","name":"AEM Blog | Lhotse Technologies","url":"https:\/\/lhotsetechnologies.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","contentUrl":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","width":539,"height":172,"caption":"AEM Blog | Lhotse Technologies"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d","name":"Team Lhotse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Team Lhotse"},"url":"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/"}]}},"_links":{"self":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=246"}],"version-history":[{"count":3,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/246\/revisions"}],"predecessor-version":[{"id":560,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/246\/revisions\/560"}],"wp:attachment":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}