Package javax.faces.component.visit

Examples of javax.faces.component.visit.VisitResult


      return VisitResult.ACCEPT;
    }

    // If we made it this far, the component matches one of
    // client ids, so perform the visit.
    VisitResult result = callback.visit(this, component);

    // Remove the component from our "unvisited" collection
    _unvisitedClientIds.remove(clientId);

    // If the unvisited collection is now empty, we are done.
View Full Code Here


      return VisitResult.ACCEPT;
    }

    // If we made it this far, the component matches one of
    // client ids, so perform the visit.
    VisitResult result = callback.visit(this, component);

    // Remove the component from our "unvisited" collection
    _unvisitedClientIds.remove(clientId);

    // If the unvisited collection is now empty, we are done.
View Full Code Here

                }
       
                pushComponentToEL(context.getFacesContext(), this);
                try
                {
                    VisitResult res = context.invokeVisitCallback(this, callback);
                    switch (res)
                    {
                    //we are done nothing has to be processed anymore
                    case COMPLETE:
                        return true;
View Full Code Here

            if (!isVisitable(context))
            {
                return false;
            }

            VisitResult res = context.invokeVisitCallback(this, callback);
            switch (res)
            {
                //we are done nothing has to be processed anymore
                case COMPLETE:
                    return true;
View Full Code Here

                }
       
                pushComponentToEL(context.getFacesContext(), this);
                try
                {
                    VisitResult res = context.invokeVisitCallback(this, callback);
                    switch (res)
                    {
                    //we are done nothing has to be processed anymore
                    case COMPLETE:
                        return true;
View Full Code Here

        setRowIndex(-1);
        // push the Component to EL
        pushComponentToEL(context.getFacesContext(), this);
        try
        {
            VisitResult visitResult = context.invokeVisitCallback(this,
                    callback);
            switch (visitResult)
            {
            //we are done nothing has to be processed anymore
            case COMPLETE:
                return true;

            case REJECT:
                return false;

                //accept
            default:
                // determine if we need to visit our children
                Collection<String> subtreeIdsToVisit = context
                        .getSubtreeIdsToVisit(this);
                boolean doVisitChildren = subtreeIdsToVisit != null
                        && !subtreeIdsToVisit.isEmpty();
                if (doVisitChildren)
                {
                    // visit the facets of the component
                    if (getFacetCount() > 0)
                    {
                        for (UIComponent facet : getFacets().values())
                        {
                            if (facet.visitTree(context, callback))
                            {
                                return true;
                            }
                        }
                    }
                    //(Boolean) context.getFacesContext().getAttributes().get(SKIP_ITERATION_HINT);
                    Boolean skipIterationHint = context.getHints().contains(VisitHint.SKIP_ITERATION);
                    if (skipIterationHint != null && skipIterationHint.booleanValue())
                    {
                        // If SKIP_ITERATION is enabled, do not take into account rows.
                        for (int i = 0, childCount = getChildCount(); i < childCount; i++ )
                        {
                            UIComponent child = getChildren().get(i);
                            if (child.visitTree(context, callback))
                            {
                                return true;
                            }
                        }
                    }
                    else
                    {
                        // visit every column directly without visiting its children
                        // (the children of every UIColumn will be visited later for
                        // every row) and also visit the column's facets
                        for (int i = 0, childCount = getChildCount(); i < childCount; i++)
                        {
                            UIComponent child = getChildren().get(i);
                            if (child instanceof UIColumn)
                            {
                                VisitResult columnResult = context.invokeVisitCallback(child, callback);
                                if (columnResult == VisitResult.COMPLETE)
                                {
                                    return true;
                                }
                                if (child.getFacetCount() > 0)
View Full Code Here

            }
   
            pushComponentToEL(context.getFacesContext(), this);
            try
            {
                VisitResult res = context.invokeVisitCallback(this, callback);
                switch (res)
                {
                    //we are done nothing has to be processed anymore
                    case COMPLETE:
                        return true;
View Full Code Here

            if (!isVisitable(context))
            {
                return false;
            }

            VisitResult res = context.invokeVisitCallback(this, callback);
            switch (res)
            {
                //we are done nothing has to be processed anymore
                case COMPLETE:
                    return true;
View Full Code Here

      return VisitResult.ACCEPT;
    }

    // If we made it this far, the component matches one of
    // client ids, so perform the visit.
    VisitResult result = callback.visit(this, component);

    // Remove the component from our "unvisited" collection
    _unvisitedClientIds.remove(clientId);

    // If the unvisited collection is now empty, we are done.
View Full Code Here

       
        // push the Component to EL
        pushComponentToEL(context.getFacesContext(), this);
        try
        {
            VisitResult res = context.invokeVisitCallback(this, callback);
            switch (res)
            {
            // we are done, nothing has to be processed anymore
            case COMPLETE:
                return true;
View Full Code Here

TOP

Related Classes of javax.faces.component.visit.VisitResult

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.