GeoServerTablePanel<SolrAttribute> atts = new GeoServerTablePanel<SolrAttribute>(
"solrAttributes", attProvider) {
@Override
protected Component getComponentForProperty(String id, IModel itemModel,
Property<SolrAttribute> property) {
SolrAttribute att = (SolrAttribute) itemModel.getObject();
boolean isGeometry = att.getType() != null
&& Geometry.class.isAssignableFrom(att.getType());
boolean isPK = att.isPk();
if (property == SolrAttributeProvider.PK) {
if (isPK) {
Fragment f = new Fragment(id, "checkboxPk", SolrConfigurationPage.this);
f.add(new CheckBox("pk", new PropertyModel<Boolean>(itemModel, "pk")));
return f;