Doug Ly wrote:
A very common approach for selective display of JSF components is to
use a value binding on the "rendered" property (which all components
should be implementing), binding it to a method returning a boolean
that can determine whether this component, and all its children,
should be rendered or not.
Actually not all components implement the rendered approach, I recently
ran into issues with subcomponents of jscookmenu (they can only suppress
rendering on a special user perms flag)
You can bypass this however by simply setting a bunch of ifs on JSP
level. Not the cleanest way, but definitely working.