We have a requirement that in the Touch UI dropdowns we have to populate the value dynamically(some logic) using datasource. Now there is 3 drop down in a dilaog and 3 dropdown should have 3 different default value . The datasource is same for all three dropdown. Is there any way in AEM 6.4 to set the default value in dialog. We are able to populate the values in dropdown using datasource but not able to set the default values.
Thanks for the response. As you suggested putting vm.put("selected",true), The code started breaking with the below exception. It successfully set the selected to true but later it break and once i remove the selected to true it works fine
Can you kindly guide or share your code snippet. Also below sharing my lines of code.
ValueMap labelValues = new ValueMapDecorator(new HashMap<String, Object>());