inputPanel = fs.add(new TextField<String>(fs.getTextFieldId(), new PropertyModel<String>(parameter, "stringValue")));
} else if (parameter.getType() == ScriptParameterType.DECIMAL) {
inputPanel = fs.add(new TextField<BigDecimal>(fs.getTextFieldId(), new PropertyModel<BigDecimal>(parameter, "decimalValue")));
} else if (parameter.getType() == ScriptParameterType.DATE || parameter.getType() == ScriptParameterType.TIME_PERIOD) {
final String property = parameter.getType() == ScriptParameterType.TIME_PERIOD ? "timePeriodValue.fromDate" : "dateValue";
datePanel1[index] = new DatePanel(fs.newChildId(), new PropertyModel<Date>(parameter, property));
fs.add(datePanel1[index]);
if (parameter.getType() == ScriptParameterType.TIME_PERIOD) {
fs.add(new DivTextPanel(fs.newChildId(), " - "));
datePanel2[index] = new DatePanel(fs.newChildId(), new PropertyModel<Date>(parameter, "timePeriodValue.toDate"));
fs.add(datePanel2[index]);
quickSelectPanel[index] = new QuickSelectPanel(fs.newChildId(), parentPage, "quickSelect:" + index, datePanel1[index]);
fs.add(quickSelectPanel[index]);
quickSelectPanel[index].init();
}