0 Replies Latest reply on Nov 26, 2007 8:20 AM by oliver303

    restrict attribute in <framework:entity-query />

    oliver303 Newbie

      Hi all,

      I got a little feature request, which would make life a bit easier. I use <framework:entity-query /> in components.xml for my drop down lists (<h:selectOneMenu />). What lacks is a restrict attribute or child element.

      Sure there's always the possibility to write a real java class. But it's often just overkill for simple usecases like "select e from Entity e"

      Example:

      <framework:entity-query
       name="selectableEntities"
       ejbql="select e from Entity e"
       restrict="#{s:hasRole('anyRole')}" />