AEM Slightly - How to call java method whose name is stored in variable - expression inside expression doesn’t work in sightly
In AEM 6.5 sightly I have initialized the sling model class. Now, I want to call the method from that class. But method name is read from some variable (basically I read method name from other location). When I use that variable it doesn’t work. I know sightly doesn’t allow expression inside an expression, so would like to know if there is an alternative to fit this need.
<sly data-sly-use.detailsModel="org.svc.core.model.DetailsModel"/>
${detailsModel.{methodNameVariable}} - doesn’t work (if the method name is read from some variable)
${detailsModel.methodName} - works (if put the method name directly there)

