tags:

views:

17

answers:

1

Hi,

I have dropdown with dynamic values.for example in dropdown have 1,5,10,20.

when page loading need to display the 5 only.How to do in the jsf ?

+1  A: 

Preset the property associated with the value attribute with the desired value in bean's constructor.

public Bean() {
    this.selectedItem = 5;
}
BalusC