protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
{
if (cycle.isRewinding())
return;
IFormComponent field = getField();
String displayName = getDisplayName();
if (displayName == null)
{
if (field == null)
throw Tapestry.createRequiredParameterException(this, "field");
displayName = field.getDisplayName();
if (displayName == null)
{
String msg = Tapestry.format("FieldLabel.no-display-name", field.getExtendedId());
throw new BindingException(msg, this, null, getBinding("field"), null);
}
}