jsf - How to set radio button as true bydefault -


i want make radio button bydefault true. sample code given below:

<p:selectoneradio value="#{empcategorybean.dto.is_esi}"  disabled="#{empcategorybean.sta}" >             <f:selectitem itemlabel="yes" itemvalue="1"/>             <f:selectitem itemlabel="no" itemvalue="0"/>         </p:selectoneradio> 

go following link:-

jsf set default value radio button h:selectoneradio

set value in backing bean desired default value. example if want "1" default:


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -