Wicket Password Field

Using the RecordEditForm class, how do I add a password field instead of showing plain text?

In the PersistentRecord the form is modeling you set the editor source for the column:

static {
    PASSWORD.getFormMeta().setEditorSource(PasswordEditorSource.getSharedInstance());
}

where PASSWORD is a StringField or EncodedStringField of the record.

2 Likes