掲示板
input radio issue
11年前 に Jose Alvarez de Lara によって更新されました。
input radio issue
Junior Member 投稿: 45 参加年月日: 12/12/10 最新の投稿
Hi,
I have a jsp file with two radio buttons. Here is my code,
and I get always a null value. And if I try the comment code I get null as well.
What is it going wrong? How can I do this?
Best reagads,
Jose
I have a jsp file with two radio buttons. Here is my code,
<table>
<tbody><tr><td align="left"><b>To:</b></td></tr>
<tr><td align="center">
<label for="types1">
<input type="radio" name="to" id="types1" value="orange" checked> Orange
</label>
<label for="types2">
<input type="radio" name="to" id="types2" value="red"> Red
</label>
<!--
<aui:input inlineField="true" name="to" inlineLabel="right" label="Orange"
type="radio" value="orange" checked="<%= true %>" />
<aui:input inlineField="true" name="to" inlineLabel="right" label="Red"
type="radio" value="red" />
-->
</td></tr>
</tbody></table>
and I get always a null value. And if I try the comment code I get null as well.
What is it going wrong? How can I do this?
Best reagads,
Jose
11年前 に Subhash Pavuskar によって更新されました。
RE: input radio issue
Regular Member 投稿: 234 参加年月日: 12/03/13 最新の投稿
Hi ,
I have a doubt did you declared inside the <form> tag if yes then pls paste complete snippet !!
I have a doubt did you declared inside the <form> tag if yes then pls paste complete snippet !!
11年前 に Jose Alvarez de Lara によって更新されました。
RE: input radio issue
Junior Member 投稿: 45 参加年月日: 12/12/10 最新の投稿
Here is the complete snippet form,
Thanks a lot for your reply!!!
Regards,
Jose
<aui:form name="fm" method="POST" action="<%= updateBoxURL.toString() %>" onsubmit="<%= updateBoxURL.toString() %>">
<aui:input type="hidden" name="redirectURL" value="<%= renderResponse.createRenderURL().toString() %>" />
<aui:input type="hidden" name="boxId" value="<%= String.valueOf(box.getId()) %>" />
<b>From:</b> blue
<br>
<table>
<tbody><tr><td align="left"><b>To:</b></td></tr>
<tr><td align="center">
<label for="types1">
<input type="radio" name="to" id="types1" value="orange" checked> Orange
</label>
<label for="types2">
<input type="radio" name="to" id="types2" value="red"> Red
</label>
<!--
<aui:input inlineField="true" name="to" inlineLabel="right" label="Orange"
type="radio" value="orange" checked="<%= true %>" />
<aui:input inlineField="true" name="to" inlineLabel="right" label="Red"
type="radio" value="red" />
-->
</td></tr>
</tbody></table>
<aui:input name="message" label="Box Message" value="" />
<br>
<aui:button type="submit" value="Save" />
</aui:form>
Thanks a lot for your reply!!!
Regards,
Jose
11年前 に Jose Alvarez de Lara によって更新されました。
RE: input radio issue
Junior Member 投稿: 45 参加年月日: 12/12/10 最新の投稿
Hi,
It is an error of mine. I have not tested my Service class and I have a sql error.
I am going to work it out.
Regards,
Jose
It is an error of mine. I have not tested my Service class and I have a sql error.
I am going to work it out.
Regards,
Jose