TextField criterionNameField = new TextField("criterionNameField", new PropertyModel(RuleEditPanel.this, "criterion.name"));
criterionNameField.setRequired(true);
TextField criterionValueField = new TextField("criterionValueField", new PropertyModel(RuleEditPanel.this, "criterion.value"));
DropDownChoice criterionResolverTypeField = new DropDownChoice("criterionResolverTypeField", resolvers);
criterionResolverTypeField.setModel(new PropertyModel(RuleEditPanel.this, "criterion.type"));
criterionResolverTypeField.setRequired(true);
DropDownChoice criterionFallbackField = new DropDownChoice("criterionFallbackField", fallbackTypes, new FallbackTypeChoiceRenderer());
criterionFallbackField.setModel(new PropertyModel(RuleEditPanel.this, "criterion.fallbackType"));
criterionFallbackField.setRequired(true);
TextField criterionOrderField = new TextField("criterionOrderField", new PropertyModel(RuleEditPanel.this, "criterion.fallbackOrder"));
criterionOrderField.setRequired(true);
criterionEditForm.add(criterionNameField);