开发者

itemDescription not showing for HtmlSelectManyCheckbox

In JSF, I have an HtmlSelectManyCheckbox, defined like this:

<h:selectManyCheckbox required="true">
    <f:selectItem itemValue="0" itemLabel="cats" 
        itemDescription="Description not displayed"/>
    <f:selectItem itemValue="1" itemLabel="dogs"/>
    <f:selectItem itemValue="2" itemLabel="birds"/>
 ...

When the page 开发者_JAVA技巧is rendered, I can't see the itemDescription.

Is this a known behavior with JSF?


From the Facelet Taglib Documentation:

itemLabel: Label to be displayed to the user for this option.

itemDescription: Description of this option, for use in development tools.

I understand this as the itemLabel is the displayed attribute.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜