If I have a situation where I have an ArrayList generated from an OSGI bundle. The OSGI bundle builds itself upon an API call and then creates an ArrayList of data objects.
This is passed on back to the JSP.
I have a situation where I want to do two types of searches.
1) Limit the result by a filter. When the filter selector (product by type is selected) then only that product type needs be displayed.
- At present I call back the page recursively and pass on the product category as a sling selector, and rebuild the page by re calling the OSGI bundle to return a limited set.
- I could also do this using jQuery. I am not sure which is better, using a sling selectors vs JQuery.
Ideally I would call back the page without having to regenerate the ArrayList. I would then search through the existing ArrayList.
Please could any one help me with this. Basically,
(1) Would I be better off to use Sling or JQuery to cal back the page?
(2) Is it possible to use Sling to call the page recursively and access the existing ArrayList and regenerate the display from searching within the ArrayList?
Regards
Clive Stewart