I need to know how to populate a DYNAMIC list of radio buttons using Stripes.
My code works find with stripes:checkbox tag.
That is, the correct checkbox is
checked. But I want the user to only be able to
select one of these dynamic
lists of dashboards as their active dashboard.
I have played with this for hours and searched
the user group but the only thing
I could find dealt with static radio buttons
that are hardcoded.
Here is the code that works with the stripes:checkbox tag.
I would like to know
how to convert this to a single select interface
like a group of radio buttons
using stripes. I know how to do this using Java
and scriplets but that is so ugly.
<c:forEach items="${actionBean.userDashboards}" var="dashboard"
varStatus="stat">
<tr class="${stat.index%2==0?'odd':'even'}">
<td>
<s:checkbox id="isDefault${stat.index}" name="isDefault"
checked="${dashboard.defaultDashboard}" />
<s:label for="isDefault">Active</s:label>
</td>
<td>${dashboard.dashboardName}</td>
<td>${dashboard.description}</td>
<td>${dashboard.ownerName}</td>
</tr>
</c:forEach>
Any ideas?
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users