2 Replies Latest reply on Aug 11, 2007 5:43 AM by Arbi Sookazian

    using <s:div rendered="..."> instead of <s:hasRole>

    Arbi Sookazian Master

      JBoss 4.0.5
      SEAM 1.2

      is it possible to call a method on a SLSB as follows?:

      <!-- in place of <s:hasRole> restriction -->
      <s:div rendered="#{authenticator.display}">
      <s:button view="/CustomersEdit.xhtml"
      id="edit"
      value="Edit"/>
      </s:div>

      display is a method that returns true or false after evaluating user's role (access level) for that component/page.

      I'm getting the following stack trace:

      javax.faces.el.PropertyNotFoundException: /Customers.xhtml @92,46 rendered="#{authenticator.display}": Bean: org.javassist.tmp.java.lang.Object_$$_javassist_79, property: display