/*
* (C) Copyright 2006-2007 Nuxeo SAS <http://nuxeo.com> and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jean-Marc Orliaguet, Chalmers
*
* $Id$
*/
package org.nuxeo.theme.jsf.taglib;
import javax.faces.component.UIComponent;
import javax.faces.webapp.UIComponentELTag;
public class RequireTag extends UIComponentELTag {
private String resource;
@Override
public String getComponentType() {
return "nxthemes.require";
}
@Override
public String getRendererType() {
return null;
}
@Override
protected void setProperties(UIComponent component) {
super.setProperties(component);
if (resource != null) {
component.getAttributes().put("resource", resource);
}
}
@Override
public void release() {
super.release();
resource = null;
}
public String getResource() {
return resource;
}
public void setResource(String resource) {
this.resource = resource;
}
}