H:selectOneRadio com h:inputText RESOLVIDO

2 respostas
vertuam

Ola All,

Estou com um problema, e gostaria de saber se alguém tem uma luz. Ja tentei algumas soluções mas tudo sem sucesso.

Tenho uma lista de radioButtons e gostaria de coloca um inputText na frente do ultimo radio.

Alguém tem idéia?

Grato

Renato

2 Respostas

vertuam
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<head>

</head>

<body>
<h:form>
	<h:selectOneRadio id="sor" value="TableBean.perInfoAll"
		title="Select any one of the choice" layout="pageDirection" border="1">
		<f:selectItem id="si1" itemLabel="Thums Up" itemValue="11" />
		<f:selectItem id="si2" itemLabel="Limca" itemValue="22" />
		<f:selectItem id="si3" itemLabel="Pepsi" itemValue="33" />
		<f:selectItem id="si4" itemLabel="Sprite" itemValue="44" />
		<f:selectItem id="si5" itemLabel="Frooti" itemValue="55" />
		<f:selectItem id="si6" itemLabel="Coca-Cola" itemValue="66">
			<h:inputText id="username" />
		</f:selectItem>
	</h:selectOneRadio>
</h:form>
</body>

</html>

No Eclipse fica no lugar certo, mas quando rodo a pagina no navegador ele cospe o input para fora e ele fica acima dos radios.

Vlw

F

Cara estou com o mesmo problema, você conseguiu alinhar o inputText com o radio?

Criado 13 de fevereiro de 2012
Ultima resposta 23 de fev. de 2012
Respostas 2
Participantes 2