Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Community Advisor

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

29 Replies

Avatar

Employee

First I would check if the value is stored or not.

Avatar

Community Advisor

Hey,

I checked in content folder of CRXDE. and my values are getting stored under (content/project-folder/language/jcr:content/par/text)

I can see the values stored in properties tab.but those values are not visible in front-end.

- Prince

Avatar

Level 10

Can you please post a screen shot.

Avatar

Level 10

We can setup a connect session on Tues too. All of these articles have been tested many times. 

Avatar

Employee

Looking at the screenshots it looks like a simple typo.

./jcr:Heading (you have Heading)

    
./jcr:description (you have jcr:Description)

Avatar

Correct answer by
Level 10

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. 

Avatar

Community Advisor

Hi Scott and Feike,

I corrected the typo mistake from code. but still I am facing the same issue.

I have attached some more updated screenshots for you. please check.

Avatar

Community Advisor

Hi Scott and Feike,

I corrected the typo mistake from code. but still I am facing the same issue.

I have attached some more updated screenshots for you. please check.

Avatar

Level 10

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. 

Avatar

Level 10

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. 

Avatar

Community Advisor

Hi Scott,

I will package my code and email to you.

I am using AEM 6.2

Avatar

Community Advisor

Hi Scott,

I will package my code and email to you.

I am using AEM 6.2

Avatar

Employee

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

Avatar

Employee

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

Avatar

Employee

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

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

Avatar

Employee

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

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

Avatar

Community Advisor

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.