Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

How to get dialog path in Java [AEM]

Avatar

Community Advisor

Hi,

I've multiple dialog in my page and I need to fetch their path using Java.

Is there any way of doing this?

 

Thanks,

Himanshu

1 Accepted Solution

Avatar

Correct answer by
Level 10

Path where dialog in stored for a component always remains same. 

Only nodes are different where values gets stored. when you open dialog values from nodes and dialog comes together.

You use use API available here https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/wcm/api/components/Component.html#getDial...() 

View solution in original post

3 Replies

Avatar

Level 10

Are you trying to get the dialog path java class or component jsp?

Whats the use case?

Avatar

Community Advisor

Need to form json in which in 1 of the property need to set dialog path as its value. 

Can't do it via self.path in js and fetch value in java.

Need to set in java itself.

Avatar

Correct answer by
Level 10

Path where dialog in stored for a component always remains same. 

Only nodes are different where values gets stored. when you open dialog values from nodes and dialog comes together.

You use use API available here https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/wcm/api/components/Component.html#getDial...()