public BehaviorsAddingComponentHandlerWrapper(ComponentHandler componentHandler) { super(componentHandler.getComponentConfig()); this.componentHandler = componentHandler; }
public BehaviorsAddingComponentHandlerWrapper(ComponentHandler componentHandler) { super(componentHandler.getComponentConfig()); this.componentHandler = componentHandler; }
public BehaviorsAddingComponentHandlerWrapper(ComponentHandler componentHandler) { super(componentHandler.getComponentConfig()); this.componentHandler = componentHandler; }
public static boolean handlerIsResourceRelated(ComponentHandler handler){ ComponentConfig config = handler.getComponentConfig(); if ( !"javax.faces.Output".equals(config.getComponentType()) ) { return false; } String rendererType = config.getRendererType(); return ("javax.faces.resource.Script".equals(rendererType) || "javax.faces.resource.Stylesheet".equals(rendererType)); }
public static boolean handlerIsResourceRelated(ComponentHandler handler){ ComponentConfig config = handler.getComponentConfig(); if ( !"javax.faces.Output".equals(config.getComponentType()) ) { return false; } String rendererType = config.getRendererType(); return ("javax.faces.resource.Script".equals(rendererType) || "javax.faces.resource.Stylesheet".equals(rendererType)); }
public static boolean handlerIsResourceRelated(ComponentHandler handler){ ComponentConfig config = handler.getComponentConfig(); if ( !"javax.faces.Output".equals(config.getComponentType()) ) { return false; } String rendererType = config.getRendererType(); return ("javax.faces.resource.Script".equals(rendererType) || "javax.faces.resource.Stylesheet".equals(rendererType)); }
public static boolean handlerIsResourceRelated(ComponentHandler handler){ ComponentConfig config = handler.getComponentConfig(); if ( !"javax.faces.Output".equals(config.getComponentType()) ) { return false; } String rendererType = config.getRendererType(); return ("javax.faces.resource.Script".equals(rendererType) || "javax.faces.resource.Stylesheet".equals(rendererType)); }
@Override public Object reload(Object scriptingInstance, int engineType, int artifactType) { if (!(scriptingInstance instanceof ComponentHandler)) return scriptingInstance; Class aclass = WeavingContext.getInstance().reload(scriptingInstance.getClass()); if (aclass.hashCode() == scriptingInstance.getClass().hashCode()) { //class of this object has not changed although // reload is enabled we can skip the rest now return scriptingInstance; } ComponentHandler oldHandler = (ComponentHandler) scriptingInstance; ComponentConfig config = oldHandler.getComponentConfig(); ComponentHandler newHandler = (ComponentHandler) ReflectUtil.instantiate(aclass, new Cast(ComponentConfig.class, config)); //save all pending non config related properties wherever possible super.mapProperties(newHandler, engineType, oldHandler); return newHandler; }
public ComponentTagHandlerDelegateImpl(ComponentHandler owner) { this.owner = owner; ComponentConfig config = owner.getComponentConfig(); this.componentType = config.getComponentType(); this.rendererType = config.getRendererType(); this.id = owner.getTagAttribute("id"); this.binding = owner.getTagAttribute("binding"); }
public ComponentTagHandlerDelegateImpl(ComponentHandler owner) { this.owner = owner; ComponentConfig config = owner.getComponentConfig(); this.componentType = config.getComponentType(); this.rendererType = config.getRendererType(); this.id = owner.getTagAttribute("id"); this.binding = owner.getTagAttribute("binding"); }
public ComponentTagHandlerDelegateImpl(ComponentHandler owner) { this.owner = owner; ComponentConfig config = owner.getComponentConfig(); this.componentType = config.getComponentType(); this.rendererType = config.getRendererType(); this.id = owner.getTagAttribute("id"); this.binding = owner.getTagAttribute("binding"); }
public ComponentTagHandlerDelegateImpl(ComponentHandler owner) { this.owner = owner; ComponentConfig config = owner.getComponentConfig(); this.componentType = config.getComponentType(); this.rendererType = config.getRendererType(); this.id = owner.getTagAttribute("id"); this.binding = owner.getTagAttribute("binding"); }
ComponentConfig delegateComponentConfig = delegate.getComponentConfig(); _componentType = delegateComponentConfig.getComponentType(); _rendererType = delegateComponentConfig.getRendererType();
private void processNextHandler(FaceletContext ctx, FaceletHandler handler, UIComponent parent) throws IOException { if (handler instanceof ComponentHandler) { ComponentHandler componentHandler = (ComponentHandler) handler; ComponentConfig componentConfig = componentHandler.getComponentConfig(); String componentType = componentConfig.getComponentType(); if (isUIParameter(componentType)) { FacesContext facesContext = ctx.getFacesContext(); UIComponent component = (UIComponent) facesContext.getApplication().createComponent(componentType); componentHandler.setAttributes(ctx, component); if (parent instanceof ClientBehaviorHolder) { ClientBehaviorHolder clientBehaviorHolder = ((ClientBehaviorHolder) parent); Map<String, List<ClientBehavior>> clientBehaviors = clientBehaviorHolder.getClientBehaviors(); String eventName = getEventName(); if (eventName == null) { eventName = clientBehaviorHolder.getDefaultEventName(); } if (eventName != null) { List<ClientBehavior> eventClientBehaviors = clientBehaviors.get(eventName); for (ClientBehavior clientBehavior : eventClientBehaviors) { if (clientBehavior instanceof ComponentControlBehavior) { ((ComponentControlBehavior) clientBehavior).getChildren().add(component); } } } } componentHandler.applyNextHandler(ctx, component); } } }
private void processNextHandler(FaceletContext ctx, FaceletHandler handler, UIComponent parent) throws IOException { if (handler instanceof ComponentHandler) { ComponentHandler componentHandler = (ComponentHandler) handler; ComponentConfig componentConfig = componentHandler.getComponentConfig(); String componentType = componentConfig.getComponentType(); if (isUIParameter(componentType)) { FacesContext facesContext = ctx.getFacesContext(); UIComponent component = (UIComponent) facesContext.getApplication().createComponent(componentType); componentHandler.setAttributes(ctx, component); if (parent instanceof ClientBehaviorHolder) { ClientBehaviorHolder clientBehaviorHolder = ((ClientBehaviorHolder) parent); Map<String, List<ClientBehavior>> clientBehaviors = clientBehaviorHolder.getClientBehaviors(); String eventName = getEventName(); if (eventName == null) { eventName = clientBehaviorHolder.getDefaultEventName(); } if (eventName != null) { List<ClientBehavior> eventClientBehaviors = clientBehaviors.get(eventName); for (ClientBehavior clientBehavior : eventClientBehaviors) { if (clientBehavior instanceof ComponentControlBehavior) { ((ComponentControlBehavior) clientBehavior).getChildren().add(component); } } } } componentHandler.applyNextHandler(ctx, component); } } }
private void processNextHandler(FaceletContext ctx, FaceletHandler handler, UIComponent parent) throws IOException { if (handler instanceof ComponentHandler) { ComponentHandler componentHandler = (ComponentHandler) handler; ComponentConfig componentConfig = componentHandler.getComponentConfig(); String componentType = componentConfig.getComponentType(); if (isUIParameter(componentType)) { FacesContext facesContext = ctx.getFacesContext(); UIComponent component = (UIComponent) facesContext.getApplication().createComponent(componentType); componentHandler.setAttributes(ctx, component); if (parent instanceof ClientBehaviorHolder) { ClientBehaviorHolder clientBehaviorHolder = ((ClientBehaviorHolder) parent); Map<String, List<ClientBehavior>> clientBehaviors = clientBehaviorHolder.getClientBehaviors(); String eventName = getEventName(); if (eventName == null) { eventName = clientBehaviorHolder.getDefaultEventName(); } if (eventName != null) { List<ClientBehavior> eventClientBehaviors = clientBehaviors.get(eventName); for (ClientBehavior clientBehavior : eventClientBehaviors) { if (clientBehavior instanceof ComponentControlBehavior) { ((ComponentControlBehavior) clientBehavior).getChildren().add(component); } } } } componentHandler.applyNextHandler(ctx, component); } } }
private void processNextHandler(FaceletContext ctx, FaceletHandler handler, UIComponent parent) throws IOException { if (handler instanceof ComponentHandler) { ComponentHandler componentHandler = (ComponentHandler) handler; ComponentConfig componentConfig = componentHandler.getComponentConfig(); String componentType = componentConfig.getComponentType(); if (isUIParameter(componentType)) { FacesContext facesContext = ctx.getFacesContext(); UIComponent component = (UIComponent) facesContext.getApplication().createComponent(componentType); componentHandler.setAttributes(ctx, component); if (parent instanceof ClientBehaviorHolder) { ClientBehaviorHolder clientBehaviorHolder = ((ClientBehaviorHolder) parent); Map<String, List<ClientBehavior>> clientBehaviors = clientBehaviorHolder.getClientBehaviors(); String eventName = getEventName(); if (eventName == null) { eventName = clientBehaviorHolder.getDefaultEventName(); } if (eventName != null) { List<ClientBehavior> eventClientBehaviors = clientBehaviors.get(eventName); for (ClientBehavior clientBehavior : eventClientBehaviors) { if (clientBehavior instanceof ComponentControlBehavior) { ((ComponentControlBehavior) clientBehavior).getChildren().add(component); } } } } componentHandler.applyNextHandler(ctx, component); } } }
ComponentConfig delegateComponentConfig = delegate.getComponentConfig(); _componentType = delegateComponentConfig.getComponentType(); _rendererType = delegateComponentConfig.getRendererType();
ComponentConfig delegateComponentConfig = delegate.getComponentConfig(); _componentType = delegateComponentConfig.getComponentType(); _rendererType = delegateComponentConfig.getRendererType();