Hello.
Actually I can't understand what method is being called if I use
None of the below methods are being called
P.S: the save is actually being done to the datasource...
Actually I can't understand what method is being called if I use
Code:
form.setSaveOnEnter(true);
Code:
DataSource dataSource = new DataSource(); dataSource.setClientOnly(true); DataSourceTextField dsField = new DataSourceTextField("Field"); dataSource.setFields(dsField); final DynamicForm form = new DynamicForm() { @Override public void submit() { System.out.println("sublit"); } @Override public void submit(DSCallback callback) { System.out.println("sublit"); } @Override public void submit(DSCallback callback, DSRequest requestProperties) { System.out.println("sublit"); } @Override public void saveData() { System.out.println("sublit"); } @Override public void saveData(DSCallback callback) { System.out.println("sublit"); } @Override public void saveData(DSCallback callback, DSRequest requestProperties) { System.out.println("sublit"); } @Override public void submitForm() { System.out.println("sublit"); } }; form.setDataSource(dataSource); form.setSaveOnEnter(true); VLayout vLayout = new VLayout(); vLayout.setMembersMargin(10); vLayout.addMember(form); vLayout.draw();
Comment