Consulta ..radio button..jstl

0 respostas
F

Galera, eu tenho o codigo abaixo:

Que esta rodando normal ! (vc escolhe uma linha e ele me retorna o registro escolhido)

Mas agora, esou querendo fazer a escolha em vez de clicar em cima de uma linha, eu quero colocar as opcoes por radio button

Só que ainda nao estou familiarizado com eles…

Voces tem algum exemplo ou ideia para me ajudar para mudar o codigo baixo para fazer as consultar com radio button?

obrigado

<table cellspacing="0" cellpadding="0">
                                    <tr>
                                        <th>Data</th>
                                        <th>Pedido</th>
                                        <th>Valor</th>
                                        <th>n. Rastreio</th>
                                        <th>Gerar Fatura</th>
                                        <th>Rastrear fatura</th>
                                    </tr>

                                </f:view>


                                <c:forEach var="row" items="${qry.rows}">
                                    <tr>
                                        <td><fmt:formatDate value="${row.data_fim}" pattern="dd/MM/yyyy" dateStyle="full"/> </td>
                                        <td><c:out value="${row.id}"/></td>
                                        <td><c:out value="${row.total}"/></td>
                                        <td><c:out value="${row.rastreamento} "/></td>
                                        <td>
                                            <a href="<c:url value="boleto_novo.jsp">

                                               <input type="radio" name="teste" value="1"> <c:param name="id" value="${row.id}" /> <br>
                                                    <c:param name="nome" value="${row.nome}" />
                                                    <c:param name="total" value="${row.total}" />
                                                    <c:param name="endereco" value="${row.endereco}" />
                                                    <c:param name="cidade" value="${row.cidade}" />
                                                    <c:param name="cep" value="${row.cep}" />
                                                    <c:param name="unidfed" value="${row.estado}" />
                                                    <c:out value="${row.id}"/>  <c:out value="${row.data_fim} "/> <c:out value="${row.total_com_frete}"/>   </c:url>">
                                                    <img src="../img/fatura.jpg" /> </a>
                                            </td>
                                            <td>
                                                <a href="<c:url value="http://websro.correios.com.br......" >
                                               </c:url>" style="margin-left:40px" target="popupwindow" onclick='window.open("http://websro.correios.com.br/sro_bin/txect01$....", "popupwindow", "scrollbars=yes,width=550,height=520");return true'>
                                                <img src="../img/img.gif" ></a>
                                        </td>


                                    </c:forEach>
...
Criado 22 de julho de 2010
Respostas 0
Participantes 1