else {
// Render avaliable DS table.
renderFragment("outputStartTable");
renderFragment("outputDataSource");
for (int i = 0; i < existingDataSources.size(); i++) {
DataSourceEntry entry = (DataSourceEntry) existingDataSources.get(i);
if (getDataSourceManagementHandler().isEDIT_MODE() && entry.getName().equals(getDataSourceManagementHandler().getDS_EDIT()))
{
setAttribute("selected", new Boolean(true));
} else {
setAttribute("selected", new Boolean(false));
}
setAttribute("dataSName", entry.getName());
setAttribute("entry", entry);
setAttribute("Name", StringEscapeUtils.escapeHtml(entry.getName()));
setAttribute("index", i);
if (entry instanceof JNDIDataSourceEntry) {
setAttribute("entryType", JNDI_DATA_SOURCE_ENTRY);
setAttribute("entryPath", StringEscapeUtils.escapeHtml(entry.getJndiPath()));
} else if (entry instanceof JDBCDataSourceEntry) {
setAttribute("entryType", JDBC_DATA_SOURCE_ENTRY);
setAttribute("entryPath", StringEscapeUtils.escapeHtml(entry.getUrl()));
}
setAttribute("statusIcon", checkDataSource(entry));
renderFragment("output");