This content has been marked as final.
Show 4 replies
-
1. Re: Creating EL functions (non-facelets)
gonorrhea May 1, 2009 12:29 AM (in response to lightguard)SiA:
The function s:hasRole maps to the static method defined here. This method uses
the identity component to verify whether the authenticated user is a member of the
given role:
public static boolean hasRole(String name) {
return Identity.instance().hasRole(name);
}This most likely means that you can programmatically (i.e. from your Seam components) execute this method as well.
-
2. Re: Creating EL functions (non-facelets)
lightguard May 1, 2009 1:03 AM (in response to lightguard)Yes, but I want to be able to create my own EL function that can be used like the Seam ones (inside pages.xml, annotations etc) but it looks like Seam doesn't allow that kind of extension atm.
-
3. Re: Creating EL functions (non-facelets)
gonorrhea May 1, 2009 6:53 AM (in response to lightguard)I think you're talking about adding your own custom tag libs. If you want to use s:foo then you'll most likely have to modify the Seam codebase. Otherwise, you can use foo:bar or similar to create your own...
-
4. Re: Creating EL functions (non-facelets)
lightguard May 1, 2009 7:03 AM (in response to lightguard)Yep, exactly. Dan Allen said they're looking at better extensibility in Seam 3, but we're probably SOL until then.