0

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

enter image description here

Can anybody help me to identify the reason ? It's the same code i have found on primefaces showcase.

Kukeltje
  • 12,223
  • 4
  • 24
  • 47

1 Answers1

1

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.

Undertaker
  • 111
  • 2
  • 13