001/*
002 * (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl-2.1.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     Anahide Tchertchian
016 */
017package org.nuxeo.ecm.platform.ui.web.tag.handler;
018
019import java.io.IOException;
020
021import javax.el.ELException;
022import javax.faces.FacesException;
023import javax.faces.component.UIComponent;
024import javax.faces.view.facelets.FaceletContext;
025import javax.faces.view.facelets.FaceletHandler;
026
027/**
028 * Leaf Facelet Handler (facelet handler that does nothing).
029 * <p>
030 * Used when there is no next handler to apply, as next handler can never be null.
031 *
032 * @since 7.4
033 */
034public class LeafFaceletHandler implements FaceletHandler {
035
036    public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, ELException {
037    }
038
039    @Override
040    public String toString() {
041        return "FaceletHandler Tail";
042    }
043}