docs: protected String createDialogHtml(String dialog) {
  
          StringBuffer result = new StringBuffer(1024);
  
          // create table
          result.append(createWidgetTableStart());
  
          // show error header once if there were validation errors
          result.append(createWidgetErrorHeader());
  
          Iterator<CmsWidgetDialogParameter> i = getWidgets().iterator();
          // iterate the type sequence
          while (i.hasNext()) {
              // get the current widget base definition
              CmsWidgetDialogParameter base = i.next();
              // check if the element is on the requested dialog page
              if ((dialog == null) || dialog.equals(base.getDialogPage())) {
                  // add the HTML for the dialog element
                  result.append(createDialogRowHtml(base));
              }
          }
          // close table
          result.append(createWidgetTableEnd());
  
          return result.toString();
      }