@Test public void formCharsetAdded() { verify(formEncoder, times(1)).addUtf8Charset(form); }
@Test public void formCharsetAdded() { verify(formEncoder, times(1)).addUtf8Charset(form); }
void initForm() { form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); formEncoder.addUtf8Charset(form); // Validation is not performed in a SubmitHandler as it fails to be invoked with GWT-Bootstrap3. See:- // - https://issues.jboss.org/browse/GUVNOR-2302 and // - the underlying cause https://github.com/gwtbootstrap3/gwtbootstrap3/issues/375 // Validation is now performed prior to the form being submitted. form.addSubmitCompleteHandler(event -> { if (isUploadSuccessful(event)) { executeCallback(successCallback); } else { executeCallback(errorCallback); } }); }
void initForm() { form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); formEncoder.addUtf8Charset(form); // Validation is not performed in a SubmitHandler as it fails to be invoked with GWT-Bootstrap3. See:- // - https://issues.jboss.org/browse/GUVNOR-2302 and // - the underlying cause https://github.com/gwtbootstrap3/gwtbootstrap3/issues/375 // Validation is now performed prior to the form being submitted. form.addSubmitCompleteHandler(event -> { if (isUploadSuccessful(event)) { executeCallback(successCallback); } else { executeCallback(errorCallback); } }); }
form.setMethod(FormPanel.METHOD_POST); formEncoder.addUtf8Charset(form);
form.setMethod(FormPanel.METHOD_POST); formEncoder.addUtf8Charset(form);
form.setMethod(FormPanel.METHOD_POST); formEncoder.addUtf8Charset(form);