开发者

jsf noSelectionLabel ln selectOneMenu

开发者 https://www.devze.com 2023-03-29 09:02 出处:网络
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

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号