내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Dynamic Dropdown values for touch UI component

Avatar

Community Advisor

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 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 10

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 답변 개

Avatar

정확한 답변 작성자:
Level 10

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.