ups .. reverted. Thanks Juergen
On Mon, Oct 19, 2009 at 8:50 AM, Martin Grigorov <[email protected]> wrote: > El dom, 18-10-2009 a las 14:17 +0000, [email protected] escribió: >> --- >> wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/link/AbstractLink.java >> (original) >> +++ >> wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/link/AbstractLink.java >> Sun Oct 18 14:17:56 2009 >> @@ -109,6 +109,9 @@ >> return this; >> } >> >> + /** >> + * @see org.apache.wicket.Component#onBeforeRender() >> + */ >> @Override >> protected void onBeforeRender() >> { >> @@ -157,7 +160,8 @@ >> protected void onComponentTagBody(final MarkupStream >> markupStream, final ComponentTag openTag) >> { >> // Draw anything before the body? >> - if (!isLinkEnabled() && getBeforeDisabledLink() != >> null) >> + boolean beforeAfter = (!isLinkEnabled() && >> getBeforeDisabledLink() != null); >> + if (beforeAfter) >> { >> getResponse().write(getBeforeDisabledLink()); >> } >> @@ -166,7 +170,7 @@ >> renderComponentTagBody(markupStream, openTag); >> >> // Draw anything after the body? >> - if (!isLinkEnabled() && getAfterDisabledLink() != >> null) >> + if (beforeAfter) >> { >> getResponse().write(getAfterDisabledLink()); >> } > Hi, > > Now it is possible to write "null" to response. > Is this intentional ? > >
