IModel namespaceModel = new NamespaceParamModel(paramsModel, paramName);
IModel paramLabelModel = new ResourceModel(paramLabel, paramLabel);
parameterPanel = new NamespacePanel(componentId, namespaceModel, paramLabelModel, true);
} else if (Boolean.class == binding) {
// TODO Add prefix for better i18n?
parameterPanel = new CheckBoxParamPanel(componentId, new MapModel(paramsModel,
paramName), new ResourceModel(paramLabel, paramLabel));
} else if (String.class == binding && paramMetadata.isPassword()) {
parameterPanel = new PasswordParamPanel(componentId, new MapModel(paramsModel,
paramName), new ResourceModel(paramLabel, paramLabel), required);
} else {
IModel model;
if("url".equalsIgnoreCase(paramName)) {
model = new URLModel(paramsModel, paramName);
} else {
model = new MapModel(paramsModel, paramName);
}
TextParamPanel tp = new TextParamPanel(componentId,
model, new ResourceModel(paramLabel, paramLabel), required);
// if it can be a reference to the local filesystem make sure it's valid