I want to use the Editor Framework of GWT within my project.
In my View(which implements Editor) I have my UiBinder Field:
@UiField
TextBox text;
In my Presenter I inject via GIN the driver instance:
@Inject
public AppointmentPopupPresenter(EventBus eventBus, MyView view, final AppointmentDriver appointmentDriver)
When the presenter is called I try to initialize the driver with:
this.appointmentDriver.initialize(getView());
this.appointmentDriver.edit(new Appointment());
GINModule:
bind(SimpleBeanEditorDriver.class).to(AppointmentDriver.class);
AppointmentDriver interface:
public interface AppointmentDriver extends SimpleBeanEditorDriver<Appointment, AppointmentPopupPresenter.MyView>{
}
Later when I listen to a button event I call:
appointmentDriver.flush();
but all properties are null and no error msg is thrown. If I look into the debugger into the textbox widget the instance of "editor" is null as well. dont know the internas but maybe this is a hint for you.
Appointment POJO(of course with void setText(String text)/String getText()):
String text;
At the moment I am completely stuck so any help is more than welcome.
Thank you!!