HtmlFormBuilder.createForm(request, "logon.app", hiddenFields.toArray(new HiddenInputField[hiddenFields.size()]), fields, className, id, formTitle, null, null, loginButtonTitle, entryState == null ? null : entryState.getError(), null);
}
protected static InputField createdField(final String fieldName, final String fieldLabel, final int type, final FormState entryState) {
final InputField nameField = new InputField(fieldName);
nameField.setType(type);
nameField.setLabel(fieldLabel);
if (entryState != null) {
final FieldEditState fieldState = entryState.getField(fieldName);
final String entry = fieldState == null ? "" : fieldState.getEntry();
nameField.setValue(entry);
final String error = fieldState == null ? "" : fieldState.getError();
nameField.setErrorText(error);
}
return nameField;
}