data-sly-use - can I link to java and javascript events
Good Morning,
I am supporting an AEM application with Java 8 backend and javascript supporting the front end.
One .html page in particular has the data-sly-use pointed to the Java side to autoload a set of combo boxes on page load. Selection update events are stored in javascript but is not linked to the .html file (yet). Is it possible to use data-sly-use to point to both the java and javascript sides simultaneously??
Thank you,
-Daniel
Update: Thank you @briankasingli and @theo_pendle Both were solid answers and gave me a lot of good info to investigate. The error was in the javascript call to the servlet. The original developer hardcoded the servlet parameter instead of using the parameter being sent to the javascript function.