diff options
author | Tomi Virtanen <tltv@vaadin.com> | 2013-12-09 13:44:27 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-01-07 09:27:08 +0000 |
commit | 0579fba63048ffa8daa22db5243a149e67f73594 (patch) | |
tree | b59603dcbe436e2c5433e44120bfabe3881dd915 /shared | |
parent | 0b95f8d6f6e3f278b51c0242e8ce2dfc82ed829e (diff) | |
download | vaadin-framework-0579fba63048ffa8daa22db5243a149e67f73594.tar.gz vaadin-framework-0579fba63048ffa8daa22db5243a149e67f73594.zip |
Upload control with empty selection (#9602)
Event is now sent on submit even if no file is selected. Removed forceSubmit UIDL attribute and replaced it with a UploadClientRpc call. Added TestBench3 test.
Change-Id: Id32b82532ec34e61a9c0718413fd1755015d2c30
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/upload/UploadClientRpc.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/upload/UploadClientRpc.java b/shared/src/com/vaadin/shared/ui/upload/UploadClientRpc.java new file mode 100644 index 0000000000..1757ddb001 --- /dev/null +++ b/shared/src/com/vaadin/shared/ui/upload/UploadClientRpc.java @@ -0,0 +1,26 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.vaadin.shared.ui.upload; + +import com.vaadin.shared.communication.ClientRpc; + +public interface UploadClientRpc extends ClientRpc { + + /** + * Forces the upload the send selected file to the server. + */ + void submitUpload(); +} |