Alinhamento de Radio Buttons CSS e JSF

614 views
Skip to first unread message

Lucas R Silveira

unread,
Mar 17, 2010, 12:47:36 PM3/17/10
to javasf: JavaServer Faces Group
Olá Pessoal, utilizo JSF em xhtml. e estou na seguinte situação, os
radio ficam alinhados, porém o label fica mais abaixo...

meuarquivo.xhtml

<li class="radio" >
<h:outputLabel for="radioGeneros" layout="pageDirection"
value="#{labels.genero}: " ></h:outputLabel>
<h:selectOneRadio value="#{bean.dadosForm.sexo}"
converter="SimpleIndexConverter" id="radioGeneros">
<t:selectItems value="#{ManterPessoaFisicaMB.sexos}" var="item"
itemLabel="#{item.descricao}" itemValue="#{item}" />
</h:selectOneRadio></li>


estilo.css

li.radio input, radio label {
float: none; /* sobrescrever o float left que não deve ser herdado nos
htmls gerados no radio */
width: auto; /* sobrescrever a definição da largura que não deve ser
herdada nos htmls gerados no radio */
}

Sérgio Fantin

unread,
Mar 17, 2010, 2:38:15 PM3/17/10
to jav...@googlegroups.com
Tente a propriedade label:

<h:selectOneRadio label="xyz"

2010/3/17 Lucas R Silveira <conta....@gmail.com>

--
http://groups.google.com/group/javasf

You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to jav...@googlegroups.com



--
Sérgio Fantin
http://serjaum.wordpress.com
Reply all
Reply to author
Forward
0 new messages