if (!alwaysSubmit)
{
// Make it possible for the FormFragment to locate the hidden field, even if
// FormFragments get nested in some complex way. When the always submit option
// is enabled, there's no need for the hidden field to be locatable.
hidden.attributes("data-for-fragment", clientId);
}
writer.end(); // div