/**
* GENERATED FILE - DO NOT EDIT
*
*/
package org.jboss.seam.ui.taglib;
import javax.faces.component.UIComponent ;
import org.jboss.seam.ui.util.cdk.UIComponentTagBase ;
import java.lang.String ;
import javax.el.ELException;
import javax.faces.FacesException;
import javax.faces.component.UIComponent;
import javax.el.MethodExpression;
import javax.faces.el.MethodBinding;
import javax.faces.el.ValueBinding;
import javax.el.ValueExpression;
import org.richfaces.webapp.taglib.MethodBindingMethodExpressionAdaptor;
import org.richfaces.webapp.taglib.ValueBindingValueExpressionAdaptor;
import org.jboss.seam.ui.component.html.HtmlRemote;
public class RemoteTag extends org.jboss.seam.ui.util.cdk.UIComponentTagBase {
// Fields
/*
* include
* The Seam components to include in the Seam Remoting JS interface stubs
*/
private ValueExpression _include;
/**
* The Seam components to include in the Seam Remoting JS interface stubs
* Setter for include
* @param include - new value
*/
public void setInclude( ValueExpression __include ){
this._include = __include;
}
/*
* style
* CSS style rules to be applied to the component
*/
private ValueExpression _style;
/**
* CSS style rules to be applied to the component
* Setter for style
* @param style - new value
*/
public void setStyle( ValueExpression __style ){
this._style = __style;
}
/*
* styleClass
* Assigns one or more CSS class names to the component. Corresponds to the HTML "class" attribute.
*/
private ValueExpression _styleClass;
/**
* Assigns one or more CSS class names to the component. Corresponds to the HTML "class" attribute.
* Setter for styleClass
* @param styleClass - new value
*/
public void setStyleClass( ValueExpression __styleClass ){
this._styleClass = __styleClass;
}
public void release()
{
// TODO Auto-generated method stub
super.release();
this._include = null;
this._style = null;
this._styleClass = null;
}
/* (non-Javadoc)
* @see org.ajax4jsf.components.taglib.html.HtmlCommandButtonTagBase#setProperties(javax.faces.component.UIComponent)
*/
protected void setProperties(UIComponent component)
{
// TODO Auto-generated method stub
super.setProperties(component);
HtmlRemote comp = (HtmlRemote) component;
if (this._include != null) {
if (this._include.isLiteralText()) {
try {
java.lang.String __include = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._include.getExpressionString(),
java.lang.String.class);
comp.setInclude(__include);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("include", this._include);
}
}
if (this._style != null) {
if (this._style.isLiteralText()) {
try {
java.lang.String __style = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._style.getExpressionString(),
java.lang.String.class);
comp.setStyle(__style);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("style", this._style);
}
}
if (this._styleClass != null) {
if (this._styleClass.isLiteralText()) {
try {
java.lang.String __styleClass = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._styleClass.getExpressionString(),
java.lang.String.class);
comp.setStyleClass(__styleClass);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("styleClass", this._styleClass);
}
}
}
/* (non-Javadoc)
* @see javax.faces.webapp.UIComponentTag#getComponentType()
*/
public String getComponentType() {
// TODO Auto-generated method stub
return "org.jboss.seam.ui.Remote";
}
/* (non-Javadoc)
* @see javax.faces.webapp.UIComponentTag#getRendererType()
*/
public String getRendererType() {
return "org.jboss.seam.ui.RemoteRenderer";
}
}