jsf noSelectionLabel ln selectOneMenu
How to provide an noSelectionLabel in selectOneMenu with c开发者_开发技巧onverter?
Using noSelectionLabel in selectItem throus a NullPointerException in converter class.
Just check in converter if the incoming value is null and if so, then return immediately.
if (value == null) {
return null;
}
// ...
return convertedValue;
精彩评论