开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜