[jboss-user] [JBoss Seam] - restrict attribute in <framework:entity-query />

oliver303 do-not-reply at jboss.com
Mon Nov 26 08:20:18 EST 2007


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')}" />
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107720#4107720

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107720



More information about the jboss-user mailing list