@Override
public void encodeBegin(FacesContext ctx, UIComponent component) throws IOException {
ResponseWriter writer = ctx.getResponseWriter();
FormDataResultFloat floatFormDatasResultComponent = (FormDataResultFloat) component;
FormDataFloatResult floatFormDataResult = floatFormDatasResultComponent.getFloatFormDataResult();
if (floatFormDataResult != null) {
writer.write("<p>");
writer.write("<ul>");
if(floatFormDataResult.getMinValue() != null && floatFormDataResult.getMaxValue()!= null && floatFormDataResult.getAverage()!= null) {
writer.write("<li>Min value: " + floatFormDataResult.getMinValue() + "</li>");
writer.write("<li>Max value: " + floatFormDataResult.getMaxValue() + "</li>");
writer.write("<li>Average value: " + floatFormDataResult.getAverage() + "</li>");
}
writer.write("</ul>");
writer.write("</p>");
}
}