AEM HTL headline component is unable to take input from dialog box. | Community
Skip to main content
Prince_Shivhare
Community Advisor
Community Advisor
December 31, 2016
Solved

AEM HTL headline component is unable to take input from dialog box.

  • December 31, 2016
  • 29 replies
  • 6538 views

Hi,

I have created one text component. and uses a classic UI dialog box. but when I am giving input to that dialog box. it's not giving me any output nor any error after clicking ok to dialog box.

Where I can check what is the problem? and stack generated ? I have referred "https://helpx.adobe.com/experience-manager/using/creating-htl-component.html".

please let me know if more information required.

Regards,

Prince

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 smacdonald2008

Just tested this article for AEM 6.2 - http://scottsdigitalcommunity.blogspot.ca/2016/07/creating-aem-html-template-language.html

It works perfectly: 

As Feike suggests - make sure there are no typos in the code. 

29 replies

smacdonald2008
Level 10
January 2, 2017

can you please create a package include all code under /apps and email to smacdonald2006@hotmail.com. Also tell me what AEM version you have - the code works on my end. 

Prince_Shivhare
Community Advisor
Community Advisor
January 3, 2017

Hi Scott,

I will package my code and email to you.

I am using AEM 6.2

Prince_Shivhare
Community Advisor
Community Advisor
January 3, 2017

Hi Scott,

I will package my code and email to you.

I am using AEM 6.2

Feike_Visser1
Adobe Employee
Adobe Employee
January 3, 2017

Is the bundle "active"? You can check this here: localhost:4502/system/console/bundles

Feike_Visser1
Adobe Employee
Adobe Employee
January 3, 2017

Is the bundle "active"? You can check this here: localhost:4502/system/console/bundles

Prince_Shivhare
Community Advisor
Community Advisor
January 3, 2017

bundle is active.

Prince_Shivhare
Community Advisor
Community Advisor
January 3, 2017

bundle is active.

Feike_Visser1
Adobe Employee
Adobe Employee
January 3, 2017

Can you put ${properties.jcr:heading} in your component?

Then we can see if it is related to Java-code or content.

Feike_Visser1
Adobe Employee
Adobe Employee
January 3, 2017

Can you put ${properties.jcr:heading} in your component?

Then we can see if it is related to Java-code or content.

Prince_Shivhare
Community Advisor
Community Advisor
January 3, 2017

Hey,
I replaced it and it works. 

${heroTextObject.heroTextBean.heading} with ${properties.jcr:heading}.

and

${heroTextObject.heroTextBean.description} with ${properties.jcr:description}.

I have kept the "name" property of both node as ./jcr:heading and ./jcr:description. so it works.