private static final PFlowPanel createDateBox() {
final PFlowPanel flowPanel = Element.newPFlowPanel();
final PDateBox dateBox = Element.newPDateBox();
dateBox.setValue(new Date(0));
flowPanel.add(dateBox);
<BUG>final PButton button = Element.newPButton("reset");
button.addClickHandler(new PClickHandler() {
@Override
public void onClick(final PClickEvent event) {
dateBox.setValue(null);
}
});</BUG>
flowPanel.add(button);

private static final PFlowPanel createDateBox() {
final PFlowPanel flowPanel = Element.newPFlowPanel();
final PDateBox dateBox = Element.newPDateBox();
dateBox.setValue(new Date(0));
flowPanel.add(dateBox);
final PButton button = Element.newPButton("reset");
button.addClickHandler(event -> dateBox.setValue(null));
flowPanel.add(button);
return flowPanel;
