0 Replies Latest reply on Apr 7, 2008 4:41 AM by Deb Dutta

    How to give a defualt value for listbox

    Deb Dutta Novice

      In my application i'm using h:selectOneListbox ,
      The items of this list is comming from backing bean,
      I want to set a item(anyone) as a default value of this list, the item will be from my bean itemlist. how can i do that?

      <h:selectOneListbox size="1" value="{bean.itemVal}">
      <f:selectItems value="#{bean.itemlist}" />
      </h:selectOneListbox >