Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

InputDialog doesn't work with file parameter (port to 1.0) #650

Closed
Flaurite opened this issue Sep 8, 2021 · 0 comments
Closed

InputDialog doesn't work with file parameter (port to 1.0) #650

Flaurite opened this issue Sep 8, 2021 · 0 comments
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@Flaurite
Copy link
Contributor

Flaurite commented Sep 8, 2021

See original: #646

Description from original

Code to reproduce:

dialogs.createInputDialog(this).withCaption("Upload files")
                .withParameter(InputParameter.fileParameter("upload"))
                .withActions(DialogActions.OK)
                .show();

Exception:

java.lang.IllegalArgumentException: InputDialog doesn't support datatype: class io.jmix.core.metamodel.datatype.impl.FileRefDatatype
	at io.jmix.ui.app.inputdialog.InputDialog.createField(InputDialog.java:387)
	at io.jmix.ui.app.inputdialog.InputDialog.initParameters(InputDialog.java:321)
	at io.jmix.ui.app.inputdialog.InputDialog.onBeforeShow(InputDialog.java:126)
	at io.jmix.core.common.event.EventHub.publish(EventHub.java:170)
	at io.jmix.ui.screen.Screen.fireEvent(Screen.java:124)
	at io.jmix.ui.screen.UiControllerUtils.fireEvent(UiControllerUtils.java:58)
	at io.jmix.ui.sys.ScreensImpl.fireScreenBeforeShowEvent(ScreensImpl.java:1358)
	at io.jmix.ui.sys.ScreensImpl.show(ScreensImpl.java:354)
	at io.jmix.ui.screen.Screen.show(Screen.java:306)
	at io.jmix.ui.sys.DialogsImpl$InputDialogBuilderImpl.show(DialogsImpl.java:839)
	at com.haulmont.plannig.screen.plan.PlanEdit.onImportFromExcelClick(PlanEdit.java:155)
	at io.jmix.core.common.event.EventHub.publish(EventHub.java:170)
	at io.jmix.ui.component.impl.AbstractComponent.publish(AbstractComponent.java:85)
	at io.jmix.ui.component.impl.ButtonImpl.buttonClicked(ButtonImpl.java:78)
	at io.jmix.ui.widget.JmixButton.fireClick(JmixButton.java:77)
@Flaurite Flaurite added the type: bug Something isn't working label Sep 8, 2021
@Flaurite Flaurite added this to the 1.0.x milestone Sep 8, 2021
@knstvk knstvk modified the milestones: 1.0.x, 1.0.2 Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants