You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Laurie Harper <la...@holoweb.net> on 2005/09/29 22:30:29 UTC
Re: [OT] display checkbox with unique value using displaytag
R.Vijayaraghavan wrote:
> Hello,
>
> I am using displaytag to display a table of records. I am able to add a
> checkbox as the first column using:
>
> <display:column>
> <html-el:checkbox property="checkbox_name" value="" />
> </display:column>
>
> The problem is that I am not able to set a unique value for each checkbox. I
> am having a column in the recordset stored in a RowSetDynaClass that has the
> unique values for all the checkboxes. I just need to assign them
> appropriately.
If your display:table is using the RowSetDynaClass as its data source,
you can set uid="row" in the table tag, then set value with
value="${row.someProperty}". See the displaytag documentation for
information on the uid attribute.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org