resTime.setVisible(false);
resElevation.setRequired(true);
}
//default value block
DimensionDefaultValueSetting defValueSetting = model.getObject().getDefaultValue();
if (defValueSetting == null){
defValueSetting = new DimensionDefaultValueSetting();
model.getObject().setDefaultValue(defValueSetting);
}
final WebMarkupContainer defValueContainer = new WebMarkupContainer("defaultValueContainer");
defValueContainer.setOutputMarkupId(true);
configs.add(defValueContainer);
final WebMarkupContainer referenceValueContainer = new WebMarkupContainer("referenceValueContainer");
referenceValueContainer.setOutputMarkupId(true);
referenceValueContainer.setVisible((defValueSetting.getStrategyType() == Strategy.FIXED) || (defValueSetting.getStrategyType() == Strategy.NEAREST));
defValueContainer.add(referenceValueContainer);
defaultValueStrategies = new ArrayList<DimensionDefaultValueSetting.Strategy>(Arrays.asList(DimensionDefaultValueSetting.Strategy.values()));
IModel<DimensionDefaultValueSetting.Strategy> strategyModel = new PropertyModel<DimensionDefaultValueSetting.Strategy>(model.getObject().getDefaultValue(), "strategy");
defaultValueStrategy = new DropDownChoice<DimensionDefaultValueSetting.Strategy>("strategy",