Package javax.faces.view.facelets

Examples of javax.faces.view.facelets.ComponentHandler


        if (owner instanceof BehaviorsAddingComponentHandlerWrapper) {
            // this is to avoid StackOverflowError because of ComponentHandler constructor call
            return factory.createComponentHandlerDelegate(owner);
        }

        ComponentHandler wrappedHandler = new BehaviorsAddingComponentHandlerWrapper(owner);

        return factory.createComponentHandlerDelegate(wrappedHandler);
    }
View Full Code Here


    @SuppressWarnings("unchecked")
    public ComponentTagHandlerDelegate(ComponentHandler delegate)
    {
        _delegate = delegate;
       
        ComponentHandler handler = _delegate;
        boolean found = false;
        while(handler != null && !found)
        {
            if (handler instanceof ComponentBuilderHandler)
            {
View Full Code Here

    @SuppressWarnings("unchecked")
    public ComponentTagHandlerDelegate(ComponentHandler delegate)
    {
        _delegate = delegate;
       
        ComponentHandler handler = _delegate;
        boolean found = false;
        while(handler != null && !found)
        {
            if (handler instanceof ComponentBuilderHandler)
            {
View Full Code Here

        }
    }

    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);
            }
        }
    }
View Full Code Here

        ComponentConfig delegateComponentConfig = delegate.getComponentConfig();
        _componentType = delegateComponentConfig.getComponentType();
        _rendererType = delegateComponentConfig.getRendererType();
        _id = delegate.getTagAttribute("id");     
       
        ComponentHandler handler = _delegate;
        boolean found = false;
        while(handler != null && !found)
        {
            if (handler instanceof ComponentBuilderHandler)
            {
View Full Code Here

        ComponentConfig delegateComponentConfig = delegate.getComponentConfig();
        _componentType = delegateComponentConfig.getComponentType();
        _rendererType = delegateComponentConfig.getRendererType();
        _id = delegate.getTagAttribute("id");     
       
        ComponentHandler handler = _delegate;
        boolean found = false;
        while(handler != null && !found)
        {
            if (handler instanceof ComponentBuilderHandler)
            {
View Full Code Here

    @SuppressWarnings("unchecked")
    public ComponentTagHandlerDelegate(ComponentHandler delegate)
    {
        _delegate = delegate;
       
        ComponentHandler handler = _delegate;
        boolean found = false;
        while(handler != null && !found)
        {
            if (handler instanceof ComponentBuilderHandler)
            {
View Full Code Here

    @SuppressWarnings("unchecked")
    public ComponentTagHandlerDelegate(ComponentHandler delegate)
    {
        _delegate = delegate;
       
        ComponentHandler handler = _delegate;
        boolean found = false;
        while(handler != null && !found)
        {
            if (handler instanceof ComponentBuilderHandler)
            {
View Full Code Here

    @SuppressWarnings("unchecked")
    public ComponentTagHandlerDelegate(ComponentHandler delegate)
    {
        _delegate = delegate;
       
        ComponentHandler handler = _delegate;
        boolean found = false;
        while(handler != null && !found)
        {
            if (handler instanceof ComponentBuilderHandler)
            {
View Full Code Here

    @SuppressWarnings("unchecked")
    public ComponentTagHandlerDelegate(ComponentHandler delegate)
    {
        _delegate = delegate;
       
        ComponentHandler handler = _delegate;
        boolean found = false;
        while(handler != null && !found)
        {
            if (handler instanceof ComponentBuilderHandler)
            {
View Full Code Here

TOP

Related Classes of javax.faces.view.facelets.ComponentHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.