@Mahesh_Gunaje Please check HTL specification https://github.com/adobe/htl-spec/blob/master/SPECIFICATION.md#229-resourceYou can't pass parameters but you can add selectors.
@sesmic for this create a bean class having all fields. Inside loop set bean value for every object and set as part of a list. public List<TestBean> getParsysList() {
parsysList = new ArrayList<>();
for (int i = 1; i <= numberOfItems; i++) {
TestBean testBean = new TestB...
Could you please also tell about how to pass parameter to the "child"? I need to update resource value dynamically from HTL. -> Please elaborate moreThough you can pass parameter as shown below:<sly data-sly-resource="${child @ resourceType='wcm/foundation/components/parsys/newpar', appendPath='/*',...
@sesmic In below code data-sly-resource value parsys needs to be a dynamic variable like parsys, parsys-1, parsys-2, parsys-3. unique value for all parsys StringBuilder htmlBuilder = new StringBuilder();
for (int i = 1; i <= numberOfItems; i++) {
//htmlBuilder.append("<div style...
@Rajesh_KumarBa @Yes, it will require to overlay the List componen. Copy OOTB model in you core folder and update required code for not to have resolver.map() which will allow us to have /id in url.
@antarikshruhil9 There is some issue I am seeing with the fiddle as it is not compiling imports. Removing some keywords from import package also not giving any exception/error. That's because it is not able to resolve any Java file.
@dmanibabu Agree, it will get call multiple times. Please apply check resource path and resource type in Java class for which we want to send email. This will make sure email get send one time. Checking property and node type will not help here as while page publishing it will also publish other ref...