I am new to Struts and I need some help using it <s:radio within a displaytag table.
One of the columns in my displaytag table has a group of radio stations “Yes” and “No”. This value (Yes or No) will be pre-selected from the database, but the user can change these values and submit the form. For this, I use the following code:
<display:table name="mmiq" pagesize="-1" requestURI="" uid="mmiq">
...
...
<display:column title="Response">
<s:radio theme="simple" name="mmiq_%{#attr.mmiq_rowNum - 1}"
list="#attr.mmiq.response" value="#attr.mmiq.selectedResponse" />
</display:column>
</display:table>
Support list for this mapping table mmiq<RowData>. Bean RowDatahas ArrayList<String> responsewith two values "Yes" and "No", filled in the constructor. The method getSelectedResponsein the RowData Bean returns the preselected value for this Bean from the database.
The table is displayed in order, and the values are preselected as returned from the database.
, , , . ( ): No object in the CompoundRoot has a publicly accessible property named 'mmiq_9' (no setter could be found).
- , ? !