set default value to radio button

hi,

how to set default to radion button.

my code

<h:selectOneRadio id="searchTypeId" value="#{Bean.searchType}" onclick="submit()" valueChangeListener="#{Bean.searchChange}"

immediate="true">

<f:selectItem itemValue="app" itemLabel="Search 1"/>

<f:selectItem itemValue="Invst" itemLabel="Search2 "/>

</h:selectOneRadio>

i need to set 1st search as default select.

thanks

siva

[681 byte] By [sivasaia] at [2007-11-27 10:44:00]
# 1

Preset it in the backing bean's property 'searchType'. You can use the bean's constructor or initialization block.

BalusCa at 2007-7-28 20:04:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

HI,

balu thanks.

siva

sivasaia at 2007-7-28 20:04:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...