001/*
002 * (C) Copyright 2006-2007 Nuxeo SAS <http://nuxeo.com> and others
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 *
009 * Contributors:
010 *     Jean-Marc Orliaguet, Chalmers
011 *
012 * $Id$
013 */
014
015package org.nuxeo.theme.jsf.views;
016
017import org.apache.commons.logging.Log;
018import org.apache.commons.logging.LogFactory;
019import org.nuxeo.theme.html.HTMLView;
020import org.nuxeo.theme.rendering.RenderingInfo;
021
022public class JSFView extends HTMLView {
023
024    private static final Log log = LogFactory.getLog(JSFView.class);
025
026    @Override
027    public String render(final RenderingInfo info) {
028        log.warn(String.format(
029                "JSFView is deprecated. Please remove <class>org.nuxeo.theme.jsf.views.JSFView</class> from <view name=\"%s\">",
030                info.getFormat().getName()));
031        return super.render(info);
032    }
033
034}