Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
add a checkbox inside a table
Hi for all,
I have in my table:
addContainerProperty(PROPERTY_active, CheckBox.class, null);
I want to modify the value of checkbox from a list.
boolean activ=true;
for (User userp : list) {
Item item = addItem(userp.getlogin());
if(userp.getIsactive().equals("T")){
activ=true;
}else{
activ=false;
}
item.getItemProperty(PROPERTY_active).setValue(activ);
}
but it doesn't work.
Last updated on
Try to set a Checkbox as property value:
item.getItemProperty(PROPERTY_active).setValue(new Checkbox(null,activ));
Last updated on
You cannot reply to this thread.