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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Viritin Problem: screen goes off
Hi
My code:
public class tz1AbstractForm extends AbstractForm<ActorModel> {
private static final long serialVersionUID = 1L;
@PropertyId("name")
private MTextField name = new MTextField("name");
private TextField filter = new MTextField("filtro").withInputPrompt("filter...");
private MButton save = new MButton("Salvar");
private Tz1JPAContainer1<ActorModel> actor = new Tz1JPAContainer1<>(ActorModel.class);
private MTable<ActorModel> list = new MTable<>(ActorModel.class)
.withProperties("id", "name", "email")
.withColumnHeaders("id", "Name", "Email")
.setSortableProperties("name", "email")
.withFullWidth()
.setBeans(actor.dataSource().find(ActorModel.class,1)
);
public tz1AbstractForm() {
list.addMValueChangeListener(new MValueChangeListener<ActorModel>() {
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
public void valueChange(MValueChangeEvent<ActorModel> event) {
setEntity(event.getValue());
}
});
}
/* (non-Javadoc)
* @see org.vaadin.viritin.form.AbstractForm#createContent()
*/
@Override
protected Component createContent() {
list.setCaption("Teste");
list.setSelectable(true);
return new MVerticalLayout(
filter,
list,
new MFormLayout(name),
save
).withFullWidth().withFullHeight();
}
}
In the first run, mText is filled with the contents of JTable. But the second time giving a click, the whole screen goes off and checked by debug that occurs on that line: CoyoteOutputStream.flush() line: 111.
But I do not have access. What could be wrong?First click in Mtable, ok, MTextField
thanks