I have downloaded JAppStart as a basis for starting a spring MVC project on google app engine, which I am hoping to extend into a thymeleaf app.
It uses Jsps at the minute and also spring security in taglib form aswell as in the spring configuration. Now the spring configuration I know will be fine with thymeleaf but I am wondering about the spring security taglib functions.
Mentioned in the article about the football app it talks about writing property and attribute resolvers. I could write my own (forgive the JEE term) taglib to wrap the functions I would want to call in the xhtml page to conditionally render some portions of the page. i.e. Admin functions.
Or alternatively I could have my own bean security wrapper bean wired into the page and then use a th:unless to conditionally render it based on boolean responses from my methods?
A third option would possibly be to wire in the security context directly into the controller and then access it's methods?
Would anyone have any preference with which one to go with?
Functions I would want to replicate are operations like:
So nothing too advanced in terms of functionality, the main spring security work would be behind the scenes securing URLs and methods etc.