Skip to main content
Mani_kumar_
Community Advisor
Community Advisor
Aug 30, 2016 10:43 AM UTC
Solved

Dynamic Dropdown values for touch UI component

Hi All,

I am trying to fetch the dropdown values for a component in touch UI from a servlet using datasource object 

but not about fetch the details.

This is working if you write the code in component level as below described.

https://helpx.adobe.com/experience-manager/using/creating-granite-datasource.html.

Please help me to get these values from servlet 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Sep 6, 2016 9:22 PM UTC

YOu cannot get them from the Java servlet (Java servlet code not used to read dialog fields) - they are read using JS as described in the article. 

However - if you are using HTL - then a class that extends WCMUSePojo can read dialog fields. See: 

http://scottsdigitalcommunity.blogspot.ca/2016/07/creating-aem-html-template-language.html

For example: 

currentNode.getProperty("./jcr:tocity").getString();

Hope this helps. 

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
Sep 6, 2016 9:22 PM UTC

YOu cannot get them from the Java servlet (Java servlet code not used to read dialog fields) - they are read using JS as described in the article. 

However - if you are using HTL - then a class that extends WCMUSePojo can read dialog fields. See: 

http://scottsdigitalcommunity.blogspot.ca/2016/07/creating-aem-html-template-language.html

For example: 

currentNode.getProperty("./jcr:tocity").getString();

Hope this helps. 

Translate