InputDialog Java doc bugs

Hi all,
for me working with “InputDialog d = dialogs.createInputDialog(…”
gives me really hard times…

I just want very basic Input Dialog with one input line and OK CANCEL buttons with Esc and ENTER shortcuts. I still did not get working after several hours…

Anyway, the JavaDoc shows an example.
In the example following lines are incorrect and not working.

  • InputDialog inputDialog = event.getInputDialog();
  • .withIcon(VaadinIcon.CLOSE.create())

There is no event.getInputDialog()
There is no VaadinIcon.CLOSE.

Please fix it and make correct working example.
Thank you.
Regards
Tomas

I have been successful using the documentation on Dialogs. There is an assumption the code runs within your view controller.

https://docs.jmix.io/jmix/flow-ui/dialogs.html#input-dialog

1 Like

Hi!

I created a task to update examples in JavaDocs: Fix javadoc examples in Dialogs · Issue #3615 · jmix-framework/jmix · GitHub
Thanks for your report.

Regards,
Dmitriy