Expand my Community achievements bar.

SOLVED

AEM dailog with dynamic dropdown with servlet.

Avatar

Level 1

I am trying to use datasource for select, But wanted to use servlet instaed of JSP. So the datasource from select is pointing to  my servlet.

But this is only working when i use paths instead of resourceTypes.

Below code is not working.

@Component( service = Servlet.class, immediate = true, property = {

    "sling.servlet.resourceTypes=myproject/components/datasource", "sling.servlet.methods=get", } )

How to make it work for resourceTypes ?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor