//Title field
TextField<String> titleInput = new TextField<String>(CKEY_CONTRACT_TITLE);
titleInput.setEnabled(isEditEditable);
titleInput.setRequired(true);
form.add(new ValidatableField("titleMarker").add(titleInput));
//Visibility control field
DropDownChoice<ViewPolicy> viewPolicySelector = new StyledDropDownChoice<ViewPolicy>(CKEY_CONTRACT_VISIBILITY,
ViewPolicy.listAll(), new IChoiceRenderer<ViewPolicy>() {
private static final long serialVersionUID = 1L;