Page 1 of 1

xhtml how to initialize a field with a type checkbox checked

Posted: 21 Jun 2011, 18:47
by caioatiladf
how to initialize a field with a type checkbox checked?

Anyone know how to do a field of type checkbox: "<p:selectBooleanCheckbox value="#{controleBean.ativa}" id="ativapes" />" already be selected in primefaces??

Re: xhtml how to initialize a field with a type checkbox che

Posted: 21 Jun 2011, 23:03
by kukeltje
sure, just give controleBean.ativa a value of true