I have added checkbox in display table using decorator class
as shown in below snippet
public String getStatus()
{
DisplayLogTimeForm dltf =(DisplayLogTimeForm)getCurrentRowObject();
String ret="";
String status= dltf.getStatus();
String date= dltf.getSET_DATE();
//System.out.println("Decorator..." + date);
if(status.equals("notpresent"))
{
System.out.println("Decorator..." + date);
ret="<input type='checkbox' size='10' id = 'statusp"+i+"' name = 'statusp' property = 'status' value='"+date+"' onclick='changeCounter(this.id);' /><input type='hidden' name='checkedBox' value='"+i+"' />";
i++;
System.out.println("id.." + ret);
System.out.println("id.." + i);
return ret;
}
else
{
return null;
}
I want to get the value of checkbox in action class.Please suggest
I also faced like that problem and that is currently used in my project.
Hope that it is useful for you.