[RESOLVIDO] Checked:selectOneRadio

1 resposta
S

Como deixar o item SIM checked ao abrir a página…

<h:selectOneRadio value="#{AlunoMB.aluno.personal}" >
<f:selectItem itemLabel=“Sim” itemValue=“S” />
<f:selectItem itemLabel=“Não” itemValue=“N” />
</h:selectOneRadio>

Vlw

1 Resposta

A

Olá sled!
Acredito que se você inicializar seu atributo “personal” como S, deva funcionar.
Ex:
Aluno.java

private String personal = "S";
Criado 11 de março de 2011
Ultima resposta 11 de mar. de 2011
Respostas 1
Participantes 2