Set message on input dialog

Hi

Is it possible to add a ‘withMessage’ method on input dialog builder like on option dialog builder

 dialogs.createOptionDialog()
            .withCaption("Confirm")
            .withMessage("Are you sure?")
    dialogs.createInputDialog(this)
            .withCaption("Enter some values")

Regards
Michael

Hi!

InputDialog does not contain this method. It is always possible to add components to the dialog using getWindow() or getDialogWindow() methods.

For instance:

InputDialog inputDialog = dialogs.createInputDialog(this)
        .withParameters(
                InputParameter.parameter("name").withCaption("Name"),
                InputParameter.parameter("description").withCaption("Description"))
        .withCaption("Enter good information")
        .build();

Label<String> label = uiComponents.create(Label.NAME);
label.setValue("Please, fill the following fields:");
inputDialog.getWindow().add(label, 0);

inputDialog.show();

I created an issue: cuba-platform/cuba#2666.

Thanks @Pinyazhin, I did find another workaround but that’s good to know