// Empty skin attribute to give the possibility for no skin selection.
setAttribute("skinDescription", bundle.getString("ui.admin.configuration.skin.sameGraphicElement"));
setAttribute("skinId", "");
renderFragment("outputSelectedSkin");
for (int i = 0; i < skins.length; i++) {
Skin skin = (Skin) skins[i];
setAttribute("skinDescription", skin.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
setAttribute("skinId", skin.getId());
renderFragment("outputSkin");
}
} else {
// Empty skin attribute to give the possibility for no skin selection.
setAttribute("skinDescription", bundle.getString("ui.admin.configuration.skin.sameGraphicElement"));
setAttribute("skinId", "");
renderFragment("outputSkin");
for (int i = 0; i < skins.length; i++) {
Skin skin = (Skin) skins[i];
boolean currentSkin = skin.getId().equals(getSectionPropertiesHandler().getSkin());
setAttribute("skinDescription", skin.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
setAttribute("skinId", skin.getId());
renderFragment(currentSkin ? "outputSelectedSkin" : "outputSkin");
}
}
renderFragment("skinsEnd");