detailList = new ArrayList<KeyVal>();
JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
detailList.add(new KeyVal("Name", app.getName()));
detailList.add(new KeyVal("Version", app.getVersion()));
detailList.add(new KeyVal("Description", getDescription(app)));
detailList.add(new KeyVal("Type", getType(app)));
detailList.add(new KeyVal("Services", new Object()
{
String toString(Iterator<JetspeedServiceReference> it)
{
StringBuffer buffer = new StringBuffer();
while (it.hasNext())
{
buffer.append(it.next().getName() + "<br/>");
}
return buffer.toString();
}
}.toString(app.getJetspeedServices().iterator())));
final RefreshingView<KeyVal> dataRepeater = new RefreshingView<KeyVal>("data", new PropertyModel<List<KeyVal>>(this, "detailList"))
{
@Override
protected void populateItem(Item<KeyVal> item)
{
final KeyVal field = item.getModelObject();
item.add(new Label("name", field.getKey()));
item.add(new Label("value", field.getValue()).setEscapeModelStrings(false));
}
@Override
protected Iterator<IModel<KeyVal>> getItemModels()
{