FieldAttributes fieldAttributes = (FieldAttributes) fieldsIterator.next();
// Get attributes of refered input element.
String inputId = fieldAttributes.getRef();
XFFormFieldAttributes formFieldAttributes = actualProtocol.getFormFieldAttributes(inputId);
// If no attributes were found, it means that the refered text
// input field
// does not exist. In that case, don't render it.
if (formFieldAttributes != null) {
// Render comma, if this is not the first rendered field.
if (!firstField) {
scriptWriter.write(", ");
}
// Get styles of the input element.
stylesExtractor.setStyles(formFieldAttributes.getStyles());
stylesExtractor.setPseudoClass(null);
// Render field name, which equals to ID of the input
// element.