final IModel hiddenTagModel = modelFactory.createModel();
final String hiddenName = WebDataBinder.DEFAULT_FIELD_MARKER_PREFIX + name;
final String hiddenValue = "on";
final IStandaloneElementTag hiddenTag =
modelFactory.createStandaloneElementTag(INPUT_TAG_NAME, true);
<BUG>hiddenTag.getAttributes().setAttribute("type", "hidden");
hiddenTag.getAttributes().setAttribute("name", hiddenName);
hiddenTag.getAttributes().setAttribute(
"value", RequestDataValueProcessorUtils.processFormFieldValue(context, hiddenName, hiddenValue, "hidden"));
</BUG>
hiddenTagModel.add(hiddenTag);

final IModel hiddenTagModel = modelFactory.createModel();
final String hiddenName = WebDataBinder.DEFAULT_FIELD_MARKER_PREFIX + name;
final String hiddenValue = "on";
final IStandaloneElementTag hiddenTag =
modelFactory.createStandaloneElementTag(INPUT_TAG_NAME, true);
final IElementAttributes hiddenTagAttributes = hiddenTag.getAttributes();
StandardProcessorUtils.setAttribute(hiddenTagAttributes, this.typeAttributeDefinition, TYPE_ATTR_NAME, "hidden");
StandardProcessorUtils.setAttribute(hiddenTagAttributes, this.nameAttributeDefinition, NAME_ATTR_NAME, hiddenName);
StandardProcessorUtils.setAttribute(
hiddenTagAttributes, this.valueAttributeDefinition, VALUE_ATTR_NAME, RequestDataValueProcessorUtils.processFormFieldValue(context, hiddenName, hiddenValue, "hidden"));
hiddenTagModel.add(hiddenTag);
