h:selectOneMenu Element
Lines 29–42 define an h:selectOneMenu element, which is typically rendered in a web page as a drop-down list. When a user clicks the drop-down list, it expands and displays a list from which the user can make a selection. Each item to display appears between the start and end tags of this element as an f:selectItem element (lines 30–41). This element is part of the JSF Core Tag Library. The XML namespace for this tag library is specified in the html element’s start tag at line 9. Each f:selectItem has itemValue and itemLabel attributes. The itemLabel is the string that the user will see in the browser, and the itemValue is the value that’s returned when you programmatically retrieve the user’s selection from the drop-down ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access