It's the same. Regardless of the type I want to adapt the property, it is still null.Both get("maxLinks", Integer.class); and get("maxLinks", String.class); returns null.
Yes the property info.maxLinks is fine, I could print it like you mentioned and I would be able to see it. maxLinks contains a number that comes from the dialog of the component.The problems appears when trying to send it as a parameter to the java handler. I want to know if it is possible to send v...
I tried the solution susheel suggested but still I'm getting null.This is the complete snippet:HTML:<div data-sly-use.info="nc-questions-and-answers.js" data-sly-use.questions="${'LatestQuestions' @ maxLinks=info.maxLinks}" class="nc-questions-and-answers"> <h2 class="nc-questions-and-...
Hello Guys,I've got an issue in which I'm unable to pass a variable to a data-sly-use.This is a small snippet of the code I have.<div data-sly-use.info="questions-and-answers.js" data-sly-use.questions="${'LatestQuestions' @ maxLinks=info.maxLinks}" class="nc-questions-and-answers"> <h2 class="nc-...