}
final StringBuffer buf = new StringBuffer();
boolean first = true;
for (final FormComponent< ? > formComponent : allFormComponents) {
if (formComponent.hasFeedbackMessage() == true) {
final FeedbackMessage feedbackMessage = formComponent.getFeedbackMessages().first();
if (markAsRendered == true) {
feedbackMessage.markRendered();
}
first = StringHelper.append(buf, first, feedbackMessage.getMessage().toString(), "\n");
}
}
return buf.toString();
}