This content has been marked as final.
Show 1 reply
-
1. Re: authorization on seam security
vata2999 Jul 25, 2011 7:16 AM (in response to 013)Hi,
i think it has nothing to do with seam
Add to your Article Entity
private User owner; //setter , getter public boolean isOwner(User user) { return getOwner() != null && getOwner().equals(user); }
yourpage.xhtml
<h:commandButton render="#{article.isowner(user)}" value="Edit" />