How to get dialog path in Java [AEM] | Community
Skip to main content
Himanshu_Singhal
Community Advisor
Community Advisor
March 16, 2016
Solved

How to get dialog path in Java [AEM]

  • March 16, 2016
  • 3 replies
  • 2244 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

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#getDialogPath() 

3 replies

edubey
Level 10
March 16, 2016

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

Whats the use case?

Himanshu_Singhal
Community Advisor
Community Advisor
March 16, 2016

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.

edubey
edubeyAccepted solution
Level 10
March 16, 2016

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#getDialogPath()