如何在selectOneMenu中提供一个转换器的noSelectionLabel?
通过转换器类中的NullPointerException在selectItem中使用noSelectionLabel。
发布于 2011-08-21 22:11:27
如果传入的值为空,则只需检查转换器,如果是,则立即返回。
if (value == null) {
return null;
}
// ...
return convertedValue;https://stackoverflow.com/questions/7137741
复制相似问题