I'm new in adobe AEM. I'm trying to use the 6.5 version and figuring out how it works. So, I need to create a component to show a list of files and filter that files based on a drop down value. I'm looking for an example, but I didn't found some way to send values to filter a list in my back end. For now, I'm getting all the values from my @Model class, but I don't know how to send a parameter to filter that list. Is it possible? How is the best way to do that?
I would suggest to create a servlet which will get called whenever u will change the dropdown value and pass the selected dropdown value when u call ur servlet and process ur result in ur java class and send back the result to ui for display.
One more question: Why I can't create a two way communication between @Model class and the htl page? Because I have some attributes in my model class and I need to access them. Is it correct put all that attributes in a servlet class?