final WebMarkupContainer row = new WebMarkupContainer(rows.newChildId());
rows.add(row);
row.add(new Label("label", getString(fieldProperties.getLabel())));
final FieldType type = fieldProperties.getFieldType();
if (type == FieldType.WEB_PAGE) {
row.add(new ActionLinkPanel("value", ActionLinkType.EXTERNAL_URL, valueString));
} else if (type == FieldType.PHONE_NO) {
row.add(new ActionLinkPanel("value", ActionLinkType.CALL, valueString));
} else if (type == FieldType.MOBILE_PHONE_NO) {
row.add(new ActionLinkPanel("value", ActionLinkType.CALL_AND_SMS, valueString));
} else if (type == FieldType.E_MAIL) {
row.add(new ActionLinkPanel("value", ActionLinkType.MAIL, valueString));
} else {
row.add(new Label("value", valueString));
}
}