How to pass multiple parameters to sling model from sightly
I have written sling model exporter . I need to call this by passing 2 parameters fileReference & imgParam
<sly data-sly-use.slingmodel="com.myproj.core.models.TestSlingModel" @ fileReference ='/some/path/to/file' , @ imgParam='image'/>
In sling model (@Model(adaptables = {Resource.class, SlingHttpServletRequest.class})
I have written:
@14766979
@ValueMapValue
private String fileReference;
@14766979
@ValueMapValue
private String imgParam;
I am not able to pass parameters properly. Can anyone tell me if this is right way of passing multiple parameters?