Working with Sling Models in Adobe Experience Manager Package Not working | Community
Skip to main content
AEM_Forum
Level 10
April 15, 2017
Solved

Working with Sling Models in Adobe Experience Manager Package Not working

  • April 15, 2017
  • 5 replies
  • 901 views

Hi,

I installed package AEM_SlingModel-1.0 (1) from https://helpx.adobe.com/experience-manager/using/sling_models.html and invoked page using http://localhost:4502/content/model.html.

It displays the window and the button "Get Sling Model Data", but when I hit this button, it is not populating the window with data.

I saw that the node /content/testsling/slingmodel with all properties assigned.

When I tried to create the page, it shows the template.templateModel.

I am using AEM 6.2.

Kindly suggest.

Thanks,

Rama.

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 Feike_Visser1

This is the article for 6.2: https://helpx.adobe.com/experience-manager/using/slingmodel_62.html

5 replies

AEM_Forum
AEM_ForumAuthor
Level 10
April 15, 2017

I saw that the Package  "adobe Bundleorg.kalyan.poc.sling.poc-bundle" is in Installed state and not Active state.

When I clicked the package, I see this in RED "mported Packages javax.inject,version=[0.0,1) -- Cannot be resolved".

Something to do with pm?

Kindly suggest.

Thanks,

Rama.

Feike_Visser1
Adobe Employee
Adobe Employee
April 15, 2017

Add the following dependency to your core/pom.xml

        <dependency>

            <groupId>javax.inject</groupId>

            <artifactId>javax.inject</artifactId>

            <version>1</version>

            <scope>provided</scope>

        </dependency>

AEM_Forum
AEM_ForumAuthor
Level 10
April 16, 2017

Hi,

I installed package AEM_SlingModel-1.0 (1) from https://helpx.adobe.com/experience-manager/using/sling_models.html.

Kindly suggest where I could find pom.xml, so that I could update it.

My other interconnected question is in situations like this, where I get the installation package, is it possible to get all the source files etc on to my Eclipse, so that I could take control?

Appreciate your support.

Thanks,

Rama.

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
April 16, 2017
AEM_Forum
AEM_ForumAuthor
Level 10
April 16, 2017

Hi,

Thanks for pointing out the right URL.

It works fine now.

Appreciate all your support.

Thanks,

Rama.