if (log.isErrorEnabled()) {
String message = _MessageUtil.getMessageWithArgs(
_Constants.NO_PROPERTY_EDITOR,
str, pClass.getName());
log.error(message);
throw new ELException(message);
}
return null;
}
}
try {
pe.setAsText (str);
return pe.getValue ();
}
catch (IllegalArgumentException exc) {
if ("".equals (str)) {
return null;
}
else {
if (log.isErrorEnabled()) {
String message = _MessageUtil.getMessageWithArgs(
_Constants.PROPERTY_EDITOR_ERROR,
pValue,
pClass.getName());
log.error(message, exc);
throw new ELException(message, exc);
}
return null;
}
}
}
else {
if (log.isErrorEnabled()) {
String message = _MessageUtil.getMessageWithArgs(
_Constants.COERCE_TO_OBJECT,
pValue.getClass().getName(),
pClass.getName());
log.error(message);
throw new ELException(message);
}
return null;
}
}