This content has been marked as final.
Show 1 reply
-
1. Re: JSTL functions in pages.xml
nigiyan Oct 27, 2010 3:26 AM (in response to jfaath)try:
if="#{seamComp.isAdminPage()}" @Name("seamComp") public class SeamComp { ... public boolean isAdminPage() { return FacesContext.getCurrentInstance().getViewRoot().getViewId().startsWith("admin"); (or "/admin" ?) } ... }
or
if="#{seamComp.getViewId() eq 'some view id name here'}" @Name("seamComp") public class SeamComp { ... public boolean isAdminPage() { return FacesContext.getCurrentInstance().getViewRoot().getViewId(); } ... }