// Empty envelope attribute to give the possibility for no envelope selection.
setAttribute("envelopeDescription", bundle.getString("ui.admin.configuration.envelope.sameGraphicElement"));
setAttribute("envelopeId", "");
renderFragment("outputSelectedEnvelope");
for (int i = 0; i < envelopes.length; i++) {
Envelope envelope = (Envelope) envelopes[i];
setAttribute("envelopeDescription", envelope.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
setAttribute("envelopeId", envelope.getId());
renderFragment("outputEnvelope");
}
} else {
// Empty envelope attribute to give the possibility for no envelope selection.
setAttribute("envelopeDescription", bundle.getString("ui.admin.configuration.envelope.sameGraphicElement"));
setAttribute("envelopeId", "");
renderFragment("outputEnvelope");
for (int i = 0; i < envelopes.length; i++) {
Envelope envelope = (Envelope) envelopes[i];
boolean currentEnvelope = envelope.getId().equals(getSectionPropertiesHandler().getEnvelope());
setAttribute("envelopeDescription", envelope.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
setAttribute("envelopeId", envelope.getId());
renderFragment(currentEnvelope ? "outputSelectedEnvelope" : "outputEnvelope");
}
}
renderFragment("envelopesEnd");