Hello,
I have a little problem. I have a table that I fill with some data.
In the first screenshot (table_ok.png), everything works well, I can see 2 buttons at the bottom, and table.setSizeFull() works well.
When I add this code to make first and second cells to use DateField component :
table.setTableFieldFactory(new DefaultFieldFactory()
{
private static final long serialVersionUID = 1L;
/**
* (non-Javadoc)
*
* @see com.vaadin.ui.DefaultFieldFactory#createField(com.vaadin.data.Container, java.lang.Object,
* java.lang.Object, com.vaadin.ui.Component)
*/
@Override
public Field createField(Container container, Object itemId, Object propertyId, Component uiContext)
{
if(propertyId.equals("debut") || propertyId.equals("fin"))
{
return new DateField();
}
else
{
return super.createField(container, itemId, propertyId, uiContext);
}
}
});
Now, table is unable to compute the full size, it makes the 2 buttons to disapear, and row height are strange. (second screenshot : table_error.png)
What can I do to make it works well ?
Thanks.