if (error)
emptyTextArea.addError("This field is in error.");
// Password field
Password password = list.addItem().addPassword("password");
password.setLabel("password");
if (help)
password.setHelp("This is helpfull text.");
if (error)
password.addError("This field is in error.");
// Hidden field
Hidden hidden = list.addItem().addHidden("hidden");
hidden.setLabel("Hidden");
hidden.setValue("You can not see this.");