Use of spring security jstl tag <sec:authority access="hasPermission(#domain, 'permission')> inside a jstl core loop -
i'm using facelets (jsf2.1) , i'm trying like:
<c:foreach var="domainobject" items="#{mb.listofdomainobjects}"> <sec:authorize access="haspermission(#domainobject,'permission_x')"> hello world </sec:authorize> </c:foreach> i've tried changing #domainobject @domainobject, #{domainobject}, $domainobject , lot of other combinations same result: domainobject not processed correctly. error saying page cannot constructed, others domainobject null.
it's scope tag c:foreach puts variable domainobject not scanned sec:authorize find it.
i've tried force use of scope using tag <c:set ... scope="view"/>. i've tried use <ui:repeat> same results, considering tag sec:authorize jstl one, suppose executed in build time (like c:foreach) , not in render time (like ui:repeat), think must use c:foreach , not ui:repeat.
any chance solve problem?
Comments
Post a Comment