title: How to isolate Spring service/persistence layer from JSF view layer
body: <p>I'm using Spring and JSF together. And the integration is been done with <code>SpringBeanFacesELResolver</code>.</p>
  
  <p>I'm annotating a DAO class with <code>@Repository</code> annotation. But it is causing a problem: the DAO class is now visible to XHTML/JSF/JSP files </p>
  
  <p>So, now it's possible to access the Persistence layer from the View layer. And it doesn't seem to be a good approach.</p>
  
  <p>How to solve that?</p>