// create
AllAuthoritiesModel allAuthoritiesModel = new AllAuthoritiesModel();
DropDownChoice parentAuthorityDropDownChoice;
DropDownChoice authorityDropDownChoice;
TextField nameTextField;
parentAuthorityDropDownChoice = new DropDownChoice("parentAuthority", allAuthoritiesModel, (IChoiceRenderer) allAuthoritiesModel);
parentAuthorityDropDownChoice.setLabel(new Model("Parent Authority"));
authorityDropDownChoice = new DropDownChoice("authority", allAuthoritiesModel, (IChoiceRenderer) allAuthoritiesModel);
authorityDropDownChoice.setLabel(new Model("Authority"));
authorityDropDownChoice.setRequired(true);
nameTextField = new TextField("name");
nameTextField.setLabel(new Model("Subsegment name"));
nameTextField.setRequired(true);