*/
protected void setProperties(UIComponent component)
{
// TODO Auto-generated method stub
super.setProperties(component);
HtmlFileUpload comp = (HtmlFileUpload) component;
if (this._accept != null) {
if (this._accept.isLiteralText()) {
try {
java.lang.String __accept = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._accept.getExpressionString(),
java.lang.String.class);
comp.setAccept(__accept);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("accept", this._accept);
}
}
if (this._accesskey != null) {
if (this._accesskey.isLiteralText()) {
try {
java.lang.String __accesskey = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._accesskey.getExpressionString(),
java.lang.String.class);
comp.setAccesskey(__accesskey);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("accesskey", this._accesskey);
}
}
if (this._align != null) {
if (this._align.isLiteralText()) {
try {
java.lang.String __align = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._align.getExpressionString(),
java.lang.String.class);
comp.setAlign(__align);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("align", this._align);
}
}
if (this._alt != null) {
if (this._alt.isLiteralText()) {
try {
java.lang.String __alt = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._alt.getExpressionString(),
java.lang.String.class);
comp.setAlt(__alt);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("alt", this._alt);
}
}
if(null != this._contentType && this._contentType.isLiteralText()){
throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property contentType");
}
if (this._contentType != null) {
if (this._contentType.isLiteralText()) {
try {
java.lang.String __contentType = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._contentType.getExpressionString(),
java.lang.String.class);
comp.setContentType(__contentType);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("contentType", this._contentType);
}
}
setConverterProperty(comp, this._converter);
if (this._converterMessage != null) {
if (this._converterMessage.isLiteralText()) {
try {
java.lang.String __converterMessage = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._converterMessage.getExpressionString(),
java.lang.String.class);
comp.setConverterMessage(__converterMessage);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("converterMessage", this._converterMessage);
}
}
if(null != this._data && this._data.isLiteralText()){
throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property data");
}
if (this._data != null) {
if (this._data.isLiteralText()) {
try {
java.lang.Object __data = (java.lang.Object) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._data.getExpressionString(),
java.lang.Object.class);
comp.setData(__data);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("data", this._data);
}
}
if (this._disabled != null) {
if (this._disabled.isLiteralText()) {
try {
Boolean __disabled = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._disabled.getExpressionString(),
Boolean.class);
comp.setDisabled(__disabled.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("disabled", this._disabled);
}
}
if(null != this._fileName && this._fileName.isLiteralText()){
throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property fileName");
}
if (this._fileName != null) {
if (this._fileName.isLiteralText()) {
try {
java.lang.String __fileName = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._fileName.getExpressionString(),
java.lang.String.class);
comp.setFileName(__fileName);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("fileName", this._fileName);
}
}
if(null != this._fileSize && this._fileSize.isLiteralText()){
throw new IllegalArgumentException("Component org.jboss.seam.ui.FileUpload with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property fileSize");
}
if (this._fileSize != null) {
if (this._fileSize.isLiteralText()) {
try {
java.lang.Integer __fileSize = (java.lang.Integer) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._fileSize.getExpressionString(),
java.lang.Integer.class);
comp.setFileSize(__fileSize);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("fileSize", this._fileSize);
}
}
if (this._immediate != null) {
if (this._immediate.isLiteralText()) {
try {
Boolean __immediate = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._immediate.getExpressionString(),
Boolean.class);
comp.setImmediate(__immediate.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("immediate", this._immediate);
}
}
if (this._localContentType != null) {
if (this._localContentType.isLiteralText()) {
try {
java.lang.String __localContentType = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._localContentType.getExpressionString(),
java.lang.String.class);
comp.setLocalContentType(__localContentType);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("localContentType", this._localContentType);
}
}
if (this._localFileName != null) {
if (this._localFileName.isLiteralText()) {
try {
java.lang.String __localFileName = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._localFileName.getExpressionString(),
java.lang.String.class);
comp.setLocalFileName(__localFileName);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("localFileName", this._localFileName);
}
}
if (this._localFileSize != null) {
if (this._localFileSize.isLiteralText()) {
try {
java.lang.Integer __localFileSize = (java.lang.Integer) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._localFileSize.getExpressionString(),
java.lang.Integer.class);
comp.setLocalFileSize(__localFileSize);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("localFileSize", this._localFileSize);
}
}
if (this._localInputStream != null) {
if (this._localInputStream.isLiteralText()) {
try {
java.io.InputStream __localInputStream = (java.io.InputStream) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._localInputStream.getExpressionString(),
java.io.InputStream.class);
comp.setLocalInputStream(__localInputStream);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("localInputStream", this._localInputStream);
}
}
if (this._localValueSet != null) {
if (this._localValueSet.isLiteralText()) {
try {
Boolean __localValueSet = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._localValueSet.getExpressionString(),
Boolean.class);
comp.setLocalValueSet(__localValueSet.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("localValueSet", this._localValueSet);
}
}
if (this._maxlength != null) {
if (this._maxlength.isLiteralText()) {
try {
Integer __maxlength = (Integer) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._maxlength.getExpressionString(),
Integer.class);
comp.setMaxlength(__maxlength.intValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("maxlength", this._maxlength);
}
}
if (this._onblur != null) {
if (this._onblur.isLiteralText()) {
try {
java.lang.String __onblur = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onblur.getExpressionString(),
java.lang.String.class);
comp.setOnblur(__onblur);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onblur", this._onblur);
}
}
if (this._onchange != null) {
if (this._onchange.isLiteralText()) {
try {
java.lang.String __onchange = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onchange.getExpressionString(),
java.lang.String.class);
comp.setOnchange(__onchange);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onchange", this._onchange);
}
}
if (this._onclick != null) {
if (this._onclick.isLiteralText()) {
try {
java.lang.String __onclick = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onclick.getExpressionString(),
java.lang.String.class);
comp.setOnclick(__onclick);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onclick", this._onclick);
}
}
if (this._ondblclick != null) {
if (this._ondblclick.isLiteralText()) {
try {
java.lang.String __ondblclick = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._ondblclick.getExpressionString(),
java.lang.String.class);
comp.setOndblclick(__ondblclick);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("ondblclick", this._ondblclick);
}
}
if (this._onfocus != null) {
if (this._onfocus.isLiteralText()) {
try {
java.lang.String __onfocus = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onfocus.getExpressionString(),
java.lang.String.class);
comp.setOnfocus(__onfocus);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onfocus", this._onfocus);
}
}
if (this._onkeydown != null) {
if (this._onkeydown.isLiteralText()) {
try {
java.lang.String __onkeydown = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onkeydown.getExpressionString(),
java.lang.String.class);
comp.setOnkeydown(__onkeydown);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onkeydown", this._onkeydown);
}
}
if (this._onkeypress != null) {
if (this._onkeypress.isLiteralText()) {
try {
java.lang.String __onkeypress = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onkeypress.getExpressionString(),
java.lang.String.class);
comp.setOnkeypress(__onkeypress);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onkeypress", this._onkeypress);
}
}
if (this._onkeyup != null) {
if (this._onkeyup.isLiteralText()) {
try {
java.lang.String __onkeyup = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onkeyup.getExpressionString(),
java.lang.String.class);
comp.setOnkeyup(__onkeyup);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onkeyup", this._onkeyup);
}
}
if (this._onmousedown != null) {
if (this._onmousedown.isLiteralText()) {
try {
java.lang.String __onmousedown = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onmousedown.getExpressionString(),
java.lang.String.class);
comp.setOnmousedown(__onmousedown);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onmousedown", this._onmousedown);
}
}
if (this._onmousemove != null) {
if (this._onmousemove.isLiteralText()) {
try {
java.lang.String __onmousemove = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onmousemove.getExpressionString(),
java.lang.String.class);
comp.setOnmousemove(__onmousemove);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onmousemove", this._onmousemove);
}
}
if (this._onmouseout != null) {
if (this._onmouseout.isLiteralText()) {
try {
java.lang.String __onmouseout = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onmouseout.getExpressionString(),
java.lang.String.class);
comp.setOnmouseout(__onmouseout);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onmouseout", this._onmouseout);
}
}
if (this._onmouseover != null) {
if (this._onmouseover.isLiteralText()) {
try {
java.lang.String __onmouseover = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onmouseover.getExpressionString(),
java.lang.String.class);
comp.setOnmouseover(__onmouseover);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onmouseover", this._onmouseover);
}
}
if (this._onmouseup != null) {
if (this._onmouseup.isLiteralText()) {
try {
java.lang.String __onmouseup = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onmouseup.getExpressionString(),
java.lang.String.class);
comp.setOnmouseup(__onmouseup);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onmouseup", this._onmouseup);
}
}
if (this._onselect != null) {
if (this._onselect.isLiteralText()) {
try {
java.lang.String __onselect = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onselect.getExpressionString(),
java.lang.String.class);
comp.setOnselect(__onselect);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onselect", this._onselect);
}
}
if (this._required != null) {
if (this._required.isLiteralText()) {
try {
Boolean __required = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._required.getExpressionString(),
Boolean.class);
comp.setRequired(__required.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("required", this._required);
}
}
if (this._requiredMessage != null) {
if (this._requiredMessage.isLiteralText()) {
try {
java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._requiredMessage.getExpressionString(),
java.lang.String.class);
comp.setRequiredMessage(__requiredMessage);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("requiredMessage", this._requiredMessage);
}
}
if (this._size != null) {
if (this._size.isLiteralText()) {
try {
Integer __size = (Integer) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._size.getExpressionString(),
Integer.class);
comp.setSize(__size.intValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("size", this._size);
}
}
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);
}
}
if (this._tabindex != null) {
if (this._tabindex.isLiteralText()) {
try {
java.lang.String __tabindex = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._tabindex.getExpressionString(),
java.lang.String.class);
comp.setTabindex(__tabindex);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("tabindex", this._tabindex);
}
}
if (this._valid != null) {
if (this._valid.isLiteralText()) {
try {
Boolean __valid = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._valid.getExpressionString(),
Boolean.class);
comp.setValid(__valid.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("valid", this._valid);
}
}
setValidatorProperty(comp, this._validator);
if (this._validatorMessage != null) {
if (this._validatorMessage.isLiteralText()) {
try {
java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._validatorMessage.getExpressionString(),
java.lang.String.class);
comp.setValidatorMessage(__validatorMessage);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("validatorMessage", this._validatorMessage);
}
}
if (this._value != null) {
if (this._value.isLiteralText()) {
try {
java.lang.Object __value = (java.lang.Object) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._value.getExpressionString(),
java.lang.Object.class);
comp.setValue(__value);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("value", this._value);