Hi,
I am working on a
JSP which uses an action form and <logic:iterate to iterate through the records. Action form looks like this.
public class searchNotifForm extends ActionForm{
ArrayList notifications;
public void setNotifications(ArrayList notifications){
this.notifications = notifications;
}
public ArrayList getNotifications(){
return this.notifications ;
}
}
In JSP I am looping through the list using <logic:iterate> and displaying the records.
<table>
<logic:iterate id="notification" name="searchNotifForm" property="notifications" type="NotificationDisplayObject">
<tr>
<td class="bodyCopy" width="10%" align="center">
<html:ext styleClass="button" name="notification" property="brokerName" />
/td>
<td class="bodyCopy" width="10%" align="center">
<html:checkbox name="notification" property="email"/>
</td>
</logic:iterate>
</table>
The issue is the checkbox does not persist state in the object. Am I missing something here..