Reputation: 97
I have used following set of code to develop a <p:selectOnemenu>
. It shows by default the first item but when I click on that, nothing happens and I can't select another option from drop-down list.
<p:selectOneMenu id="roomcategory" value="#{user.favoriteCar1}" >
<f:selectItem itemValue="520" itemLabel="BMW Series 5 - 520" />
<f:selectItem itemValue="525" itemLabel="BMW Series 5 - 525" />
<f:selectItem itemValue="535" itemLabel="BMW Series 5 - 535" />
</p:selectOneMenu>
The Ui is like this but nothing happens on click
Can anybody help me to identify the reason ? It's the same code i have found on primefaces showcase.
Upvotes: 0
Views: 1925
Reputation: 131
seems a layout issue. Try to add a StyleClass attribute and decrease the width of the drop-down. At the moment it's width is larger and you can not see the drop-down trigger at the right side of the list. Also it is clear that items are loaded in the list.
Upvotes: 1