/** * Renders this link's body. * * @param markupStream * the markup stream * @param openTag * the open part of this tag * @see org.apache.wicket.Component#onComponentTagBody(MarkupStream, ComponentTag) */ protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Draw anything before the body? if (!isLinkEnabled() && getBeforeDisabledLink() != null) { getResponse().write(getBeforeDisabledLink()); } // Render the body of the link renderComponentTagBody(markupStream, openTag); // Draw anything after the body? if (!isLinkEnabled() && getAfterDisabledLink() != null) { getResponse().write(getAfterDisabledLink()); } }
/** * Renders this link's body. * * @param markupStream * the markup stream * @param openTag * the open part of this tag * @see org.apache.wicket.Component#onComponentTagBody(MarkupStream, ComponentTag) */ @Override protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { // Draw anything before the body? if (!isLinkEnabled() && getBeforeDisabledLink() != null) { getResponse().write(getBeforeDisabledLink()); } // Render the body of the link renderComponentTagBody(markupStream, openTag); // Draw anything after the body? if (!isLinkEnabled() && getAfterDisabledLink() != null) { getResponse().write(getAfterDisabledLink()); } }