return true;
}
@Override
public void processEvent(SystemEvent event) {
SecuredComponentData data = (SecuredComponentData) component.getAttributes().get(SecuredComponent.DATA);
if (data == null) {
// We have a PreRenderViewEvent defined in the screen.
return;
}
List<UIComponent> targets = ComponentUtil.findTargets(component, component.getParent(), data.getTargets());
if (component.getAttributes().containsKey(SecuredComponent.MARKER)) {
for (UIComponent targetComponent : targets) {
SecuredComponentData dataForTarget = new SecuredComponentData(data);
dataForTarget.setTargetComponent(targetComponent);
ComponentUtil.setNoAccess(targetComponent, dataForTarget);
}
} else {
for (UIComponent targetComponent : targets) {