Wicket is the best library I've ever used. Not just best webapp library or best Java library, the best library anywhere. If server-side rendering is an option then I'd absolutely use that (possibly from Scala).
Yes, sounds like, but it isn't. There is no logic inside html templates apart from wicket-specific component binding tags and everything happens in Java.
This is going to be largely dependent on your needs, but a factor I would consider if you're using LLMs for coding is which models have been trained the most on which languages. The more a model has been trained on a particular language, the less it will hallucinate
I'm currently building an internal app with Pico CSS, htmx and ASP.NET minimal APIs returning Razor components and it's a joy. I'm a Developer DBA with no perfessional front end experience but I feel really productive and the final results look great.