addSelectItem( select, null, null );
}
// Add the select items
SelectItems selectItems = new SelectItems();
selectItems.putAttribute("value", valueExpression);
// For each item to be displayed, set the label to the reverse primary key value
if (attributes.containsKey(REVERSE_PRIMARY_KEY))
{
selectItems.putAttribute("var", SELECT_ITEM);
selectItems.putAttribute("itemValue", StaticFacesUtils.wrapExpression(SELECT_ITEM));
String displayExpression = "forgeview:display(_item)";
((BaseStaticXmlWidget) selectItems).putAdditionalNamespaceURI("forgeview", "http://jboss.org/forge/view");
selectItems.putAttribute("itemLabel", StaticFacesUtils.wrapExpression(displayExpression));
}
select.getChildren().add( selectItems );
}