xhtml how to initialize a field with a type checkbox checked

UI Components for JSF
Post Reply
caioatiladf
Posts: 39
Joined: 21 Jun 2011, 18:41

21 Jun 2011, 18:47

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??

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

21 Jun 2011, 23:03

sure, just give controleBean.ativa a value of true

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 65 guests