String name = form.getElementId(this);
IMarkupWriter wrappedWriter;
if (cycle.getAttribute(ATTRIBUTE_NAME) != null)
throw new ApplicationRuntimeException(
Tapestry.getMessage("LinkSubmit.may-not-nest"),
this,
null,
null);
cycle.setAttribute(ATTRIBUTE_NAME, this);
boolean disabled = isDisabled();
if (!disabled)
{
if (!rewinding)
{
Body body = Body.get(cycle);
if (body == null)
throw new ApplicationRuntimeException(
Tapestry.format("must-be-contained-by-body", "LinkSubmit"),
this,
null,
null);