1 of 1 people found this helpful
Option #1: declare boolean variables in the backing bean, calculate their value on Java level and set them as rendered values (could use a List<Boolean> for this to avoid multiple variables, in EL you get each element from the list like this: myBooleanList[index]).
Option #2: construct the whole menu programmatically (recommended) and bind the menu variable to the element (here's an example of something similar)
First option looks not much better then calling permission check from EL in the template. I'll use the second option if there is no way to do what I want from template having "static" menu.