Get cqdialog properties in Model adaptable from SlingHttpServletRequest
Hi,
Is there a way to access the cq dialog properties from a Model like this:
@Model(adaptables = SlingHttpServletRequest.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)
public class MyClass {
@Self
private SlingHttpServletRequest request;
@Inject
private Page currentPage;
@Inject
private ResourceResolver resourceResolver;
And here's the HTL
<sly data-sly-use.model="${'com.edc.edcweb.core.models.MyClass' }" />
Is there a way to access them without sending them as parameter ( <sly data-sly-use.model="${'com.edc.edcweb.core.models.FeaturedEdcThoughtLead' @ items=properties }" /> ) or if i have to send them by parameter how is this done and what type of object should I declare in the model to receive it?
Thanks
