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

AEM Sling Model injection and annotation | AEM Community Blog Seeding




AEM Sling Model injection and annotation by Rashidjorvee


In this article, we will understand what all are the ways to reading authored values of AEM component using sling model in AEM

Using ValueMapValue annotation of package
@ValueMapValue(injectionStrategy = InjectionStrategy.OPTIONAL)
private String classStartDateLabel;

Using Inject annotation of package javax.inject

private String classStartDateLabel;

Getter method for this injection

public String getClassStartDateLabel() {
return classStartDateLabel;

Read Full Blog

AEM Sling Model injection and annotation


Please use this thread to ask the related questions.

0 Replies