createRequestScopedBean("bean1", getEntityInstance());
createRequestScopedBean("bean2", getEntityInstance());
rootComponent = new UIViewRoot();
HtmlForm form = new HtmlForm();
form.setId("form");
rootComponent.getChildren().add(form);
//input1
inputComponent1 = new HtmlInputText();
inputComponent1.setId("input1");
inputComponent1.setConverter(new DateTimeConverter());
((DateTimeConverter)inputComponent1.getConverter()).setPattern("dd.MM.yyyy");
form.getChildren().add(inputComponent1);
//input2
inputComponent2 = new HtmlInputText();
inputComponent2.setId("input2");
inputComponent2.setConverter(new DateTimeConverter());
((DateTimeConverter)inputComponent2.getConverter()).setPattern("dd.MM.yyyy");
form.getChildren().add(inputComponent2);
}