Reply To: Spring JSF with Pretty Faces

Splash Forums Rewrite Users Spring JSF with Pretty Faces Reply To: Spring JSF with Pretty Faces


Looks like Spring is trying to process the @Inject annotations on a Rewrite class from the CDI integration module. As you are using Spring, you should remove the rewrite-integration-cdi dependency from your project to work around this. I think this will help. I’m not sure how Spring handles @Inject and how to tell Spring to ignore the Rewrite classes.

There is currently not much documentation for the Spring integration of Rewrite. But actually you won’t need to know much. Just add the integration module to your dependencies and you will be able to use SpEL in your bindings and Spring managed classes (like ConfigurationProvider implementations) will be automatically used by Rewrite. That’s all. So you should have a look at the other pages of the documentation and perhaps have a look at the bookstore sample app: