开发者

itemDescription not showing for HtmlSelectManyCheckbox

开发者 https://www.devze.com 2023-02-15 17:23 出处:网络
In JSF, I have an HtmlSelectManyCheckbox, defined like this: <h:selectManyCheckbox required=\"true\">

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

精彩评论

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