Form form = new Form("form", new CompoundPropertyModel(jaiModel));
add( form );
// All the fields
// ... memory capacity and threshold are percentages
NumberValidator percentageValidator = NumberValidator.range(0, 1);
TextField memoryCapacity = new TextField("memoryCapacity");
memoryCapacity.add(percentageValidator);
form.add(memoryCapacity);
TextField memoryThreshold = new TextField("memoryThreshold");
memoryThreshold.add(percentageValidator);