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.
nikunjj81682294It's a third party jar file it wont work like this-You need to embed it in your pom.xml file like below-https://forums.adobe.com/thread/2653586#11256831 Hope that helps..
Create a custom sling model exporter -Develop Sling Model Exporters And populate the child nodes as u do it in navigation component >>>> iterate over the child nodes.
Did you try using the same component on static template?Its nothing to do with static or dynamic templates its issue with ir sling model class its not available.check these models through system console.
If you need required field to work and make it not to work with ur custom then first try to understand how required validation is working and how is it getting called then try writing ur custom code similar to required validation