开发者

STS : Using JSF , Managed beans and Aspects

开发者 https://www.devze.com 2022-12-10 07:30 出处:网络
Main idea is to use JSF with Spring AOP for modularizing cross cutting concerns like logging. I am using STS (Spring tool suite) and have jsp page with jsf tags. These tags are reading data from a man

Main idea is to use JSF with Spring AOP for modularizing cross cutting concerns like logging. I am using STS (Spring tool suite) and have jsp page with jsf tags. These tags are reading data from a managed bean properties(getter). I have aspect configured for the getters. When i run application with Java/AspectJ getter is called and aspect advice code is ex开发者_如何学编程ecuted and it prints out using system.out.println a message to console. But when i load jsf page there is no output on the console. Any idea how can i integrate these aspects with calls from JSF or JSP pages ?


If you are using

<el-resolver>
    org.springframework.web.jsf.el.SpringBeanFacesELResolver
</el-resolver>

and the managed beans are part of the spring-context (either via the @Controller annotation, or in applicationContext.xml), the aspects should work with them.

0

精彩评论

暂无评论...
验证码 换一张
取 消