Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Pagination Component Problem

Avatar

Level 7

Hi, my pagination component is not working. Can anybody provide the source code including js, dialog, html and sling model. Thank you

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Sanjana12 The js, html , siling models and dialogs can be handled differently based on the use case you have for your component.  

Operations performed by each modules:
1. Sling Model: Adapt the pages as SlingHttprequest, thus we can easily retrieve selector parameter.
2. Query Builder:Based on the selector received on step 1- it queries the JCR.
3. JavaScript Use API: With the help of number of results, it create pagination links.
4. Sightly:As usual its used as View to render everything to user.

 

Souce code totally depends on your use case.

Hope this helps!

 

 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

@Sanjana12 The js, html , siling models and dialogs can be handled differently based on the use case you have for your component.  

Operations performed by each modules:
1. Sling Model: Adapt the pages as SlingHttprequest, thus we can easily retrieve selector parameter.
2. Query Builder:Based on the selector received on step 1- it queries the JCR.
3. JavaScript Use API: With the help of number of results, it create pagination links.
4. Sightly:As usual its used as View to render everything to user.

 

Souce code totally depends on your use case.

Hope this helps!