since ‎30-05-2016
‎10-12-2019
reshmabegum
Level 1
Re: Dynamic injection of values into sling model is not working
Avatar

reshmabegum

reshmabegum
- Adobe Experience Manager
Use below syntax and Use @Inject instead of @RequestAttribute@Model(adaptables = { SlingHttpServletRequest.class, Resource.class })public class ListSelectorModel { private static final Logger logger = LoggerFactory.getLogger(ListSelectorModel.class); @Inject @Optional private String selectPath;

Views

2.7K

Likes

0

Replies

0
Re: Dynamic injection of values into sling model is not working
Avatar

reshmabegum

reshmabegum
- Adobe Experience Manager
Use @Inject instead of @RequestAttribute@Model(adaptables = { SlingHttpServletRequest.class, Resource.class })public class ListSelectorModel { private static final Logger logger = LoggerFactory.getLogger(ListSelectorModel.class); @Inject @Optional private String selectPath;

Views

2.7K

Likes

0

Replies

1
Likes given to