Hi,
I'm hoping I'm just missing something REALLY obvious here...
I am trying to create a standard list that a user can select one item
from using a radio button.
For the radio button's value, I want to place the mediaId (changes per
row). I have done this successfully, but now EVERY radio button is
selected. From what I understand this is because the name and property
attributes are used to determine if it should be checked. Here is my
code...
<slogic:iterate id="media" name="mediaList"
type="com.tarity.data.dataRecord.QMediaList">
<TR>
<TD CLASS="content"><shtml:radio name="media" property="mediaId"
value="<%= media.getMediaId().toString() %>"/> </TD>
<TD CLASS="content"><sbean:write name="media" property="imgLoc1"/></TD>
<TD CLASS="content"><sbean:write name="media"
property="description"/></TD>
</TR>
</slogic:iterate>
I know I can simply use the following straight HTML code to solve the
problem, but would like to better understand this tag.
<INPUT TYPE="radio" name="mediaId" value="<%=
media.getMediaId().toString() %>"/>
Does anyone know how I can use the radio tag in such a manner that the
value is the mediaID, the name for the radio button is mediaID, and the
radio button isn't checked?
Thanks in advance,
Kevin Williams
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]