Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Sling model : @PostConstruct is not called and null values are thrown.

Level 2
Level 2

I'm trying to bind a sling model with my sightly via use api. But facing couple of issues.

1)  The specific sling model seems not getting registered successfully while checking adapter status. (but bundle is active and running)

2)  Flow is not getting inside @PostConstruct method.

3)   Although dialog values with exact property name are present in JCR, when the page is viewed, its showing null.

Steps followed to rectify:

1) in the models core pom file, added below build plugin with <Sling-Model-Packages>



2) Added the below dependency at core pom.


3) added simlar dependency at parent pom under <dependencyManagement />.  Also the artifact 'geronimo-atinject_1.0_spec' is already existing in parent POM.


4) the page where the component has been used, (in which sling model is tied), is correctly reflecting authored values at JCR  /content/..  level.


5) 1857820_pastedImage_9.png

         sightly markup with dialog nodes.

6)  Model class as below.


Can anyone suggest how to solve this issue??

0 Replies