How to unchecked all choices as default of select one radio button in JSF? -


i have following jsf radio button:

<h:selectoneradio id="journeydir"   value="#{refparam.journeydir}">   <f:selectitems value="#{newmessage.journeydirectionselectitemlist}" />     </h:selectoneradio> 

the values of radio button, can selected user defined in java method:

public list<selectitem> getjourneydirectionselectitemlist() {     final list<selectitem> journeydirectionselectitemlist = new arraylist<selectitem>();      journeydirectionselectitemlist.add(new selectitem(journey.bidirection,             yes));     journeydirectionselectitemlist.add(new selectitem(journey.oneway, no));      return journeydirectionselectitemlist; } 

now have problem, first value of radio button, declared in java method above, selected automatically load jsf webpage. have requirement, no values must selected automatically system.

how can solve problem? ideas? use jsf 1.2.

just make sure journeydir variable set null


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -