throw new ApplicationRuntimeException(message, component, null, null);
}
cycle.setAttribute(Tapestry.LINK_COMPONENT_ATTRIBUTE_NAME, component);
ILink link = component.getLink(cycle);
writer.begin("button");
writer.attribute("type", "button");
if (component.isDisabled())
{
writer.attribute("disabled", "disabled");
}
String url = link.getURL(component.getAnchor(), true);
String target = component.getTarget();
String onclick = (target == null) ? getScript(url) : getScript(url, target);
writer.attribute("onclick", onclick);