hi all.i am trying to show some of checkboxes visible, some invisible of datagrid.jsp part is:
<dmf:checkbox name="check" onclick="itemSelected"
value="<%=String.valueOf(form.hepsiniSec) %>" runatclient="true"
visible="<%= String.valueOf(form.otomatiklermi[i])%>">
<dmf:argument name="objectId" datafield="r_object_id" />
</dmf:checkbox>
the java side is:(onControlInitialized method)
Label otomatikLbl=(Label)getControl("otomatik"+i,Label.class);
String otomatikmi=otomatikLbl.getLabel();
// if(otomatikmi==null)
// return;
System.out.println(otomatikmi);
if("1".equals(otomatikmi)){
otomatiklermi[i]=true;
}
else if("0".equals(otomatikmi)){
otomatiklermi[i]= false;
}
else{
otomatiklermi[i]=true;
}
///////////
}
when i system.out the otomatiklermi[i] variable it truely prints the values as true or false.but when i tried to see the otomatiklermi[i] values on jsp page allof checkboxes visible and all visible values are true.
how can it be possible?