title: No visible WebSecurityExpressionHandler instance could be found in the applicationContext
body: <p>Am trying to implement Section level security using <strong>Spring3.1</strong>. Using <strong>Thymeleaf2.0</strong> for my view part.  Here is the configuration i have made to do so,</p>
  <h2>Jars Used## - All <strong>spring3.1 jars</strong> and <strong>thymeleaf-extras-springsecurity3.jar (version 1.0.0.beta-1)</strong></h2>
  <p><strong>SpringWebFlow-Servlet.xml</strong></p>
  <pre><code>&lt;bean id=&quot;templateEngine&quot; class=&quot;org.thymeleaf.spring3.SpringTemplateEngine&quot;&gt;
       ...
       &lt;property name=&quot;additionalDialects&quot;&gt;
       &lt;set&gt;
           &lt;bean class=&quot;org.thymeleaf.extras.springsecurity3.dialect.SpringSecurityDialect&quot;/&gt;
       &lt;/set&gt;
       &lt;/property&gt;
       ...
  &lt;/bean&gt;
  &lt;bean id=&quot;webexpressionHandler&quot; class=&quot;org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler&quot; /&gt;
  </code></pre>
  <p><strong>spring-security.xml</strong></p>
  <pre><code> &lt;http auto-config=&quot;true&quot; use-expressions=&quot;true&quot;&gt;
       &lt;intercept-url pattern=&quot;/productSelection&quot; access=&quot;hasRole('ROLE_ADMIN')&quot;/&gt;
      .....
   &lt;/http&gt;
  </code></pre>
  <p><strong>xxx.html</strong></p>
  <pre><code>&lt;div sec:authorize=&quot;hasRole('ROLE_ADMIN')&quot;&gt;
      This only be seen if authenticated user has role ROLE_ADMIN.
  &lt;/div&gt;
  </code></pre>
  <p><strong>Issue</strong></p>
  <blockquote>
  <p>Getting an Exception stating :
  No visible WebSecurityExpressionHandler instance could be found in the applicationContext</p>
  </blockquote>
  <p>In Spring3.1, DefaultWebSecurityExpressionHandler doesn't implement WebSecurityExpressionHandler and the interface is deprecated. Please let me know the workaround as Thymeleaf is trying to search for the instance of WebSecurityExpressionHandler which is not available in ApplicationContext.</p>