code: public static void show(Map<String, Object> args, IInputCallback callback) {
          Window dialog = (Window) PageUtil
                  .createPage(DialogConstants.RESOURCE_PREFIX + "inputDialog.fsp", ExecutionContext.getPage(), args).get(0);
  
          dialog.modal(callback == null ? null : (event) -> {
              callback.onComplete(dialog.getAttribute("result", String.class));
          }
docs: Prompt user for input.
  
  @param args The argument map.
  @param callback The callback to receive the text input. If the dialog was cancelled, the text
  input will be returned as null.