@Override
public void encodeBegin(FacesContext ctx, UIComponent component) throws IOException {
ResponseWriter writer = ctx.getResponseWriter();
FormDataResultString stringFormDatasResultComponent = (FormDataResultString) component;
FormDataStringResult stringFormDataResult = stringFormDatasResultComponent.getStringFormDataResult();
if (stringFormDataResult != null && stringFormDataResult.getStringFormDataResults() != null && !stringFormDataResult.getStringFormDataResults().isEmpty()) {
writer.write("<p>");
writer.write("<ul>");
for (String value : stringFormDataResult.getStringFormDataResults()) {
writer.write("<li>" + value + "</li>");
}
writer.write("</ul>");
writer.write("</p>");
}