Skip to content
Advertisement

Tag: model

Can I add html component every two elements of a list from Java model using Sighlty?

I need to iterate every two elements of a list from model Java using Slightly. So I can add html components every two elements. Can you help me, please? Answer According to the HTL specification: An additional itemList (respectively <variable>List in case a custom identifier/variable was defined using data-sly-list.) identifier is also available within the scope, with the following members:

Cannot resolve method ‘setText(Model)’

I am trying to make grid view have to texts but I faced this problem no suitable method found for setText(Model)i am tried to make to listView but doesn’t go well so I am asked and this code is best code I reached into it .. till now … why it Cannot resolve method ‘setText(Model)’ ? problem Image This is

Advertisement