public UIFormUploadInput(String name, String bindingExpression, int limit) { super(name, bindingExpression, String.class); uploadId_ = Integer.toString(Math.abs(hashCode())); UploadService service = getApplicationComponent(UploadService.class); service.addUploadLimit(uploadId_, Integer.valueOf(limit)); // Use the limit set by constructor. setComponentConfig(UIFormUploadInput.class, null); }
public UIFormUploadInput(String name, String bindingExpression, boolean isAutoUpload) { super(name, bindingExpression, String.class); uploadId_ = Integer.toString(Math.abs(hashCode())); this.isAutoUpload = isAutoUpload; UploadService service = getApplicationComponent(UploadService.class); service.addUploadLimit(uploadId_, null); setComponentConfig(UIFormUploadInput.class, null); }
public UIFormUploadInput(String name, String bindingExpression) { super(name, bindingExpression, String.class); uploadId_ = Integer.toString(Math.abs(hashCode())); UploadService service = getApplicationComponent(UploadService.class); service.addUploadLimit( uploadId_, null); // Use the limit set by the service. Warning, the service can allow no size limit // (value to 0) setComponentConfig(UIFormUploadInput.class, null); }