Patches item #1315986, was opened at 2005-10-07 17:09
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1315986&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Igor Vaynberg (ivaynberg)
Assigned to: Nobody/Anonymous (nobody)
Summary: fixes a bug in Link
Initial Comment:
now that isenabled() is no longer final it is not safe
to use enabled field in code directly, have to use
isenabled() instead.
Index: src/java/wicket/markup/html/link/Link.java
===================================================================
RCS file:
/cvsroot/wicket/wicket/src/java/wicket/markup/html/link/Link.java,v
retrieving revision 1.42
diff -u -r1.42 Link.java
--- src/java/wicket/markup/html/link/Link.java 2 Oct
2005 10:18:54 -0000 1.42
+++ src/java/wicket/markup/html/link/Link.java 7 Oct
2005 17:06:46 -0000
@@ -408,7 +408,7 @@
final ComponentTag openTag)
{
// Draw anything before the body?
- if (!enabled && beforeDisabledLink != null)
+ if (!isEnabled() && beforeDisabledLink != null)
{
getResponse().write(beforeDisabledLink);
}
@@ -417,7 +417,7 @@
renderComponentTagBody(markupStream, openTag);
// Draw anything after the body?
- if (!enabled && afterDisabledLink != null)
+ if (!isEnabled() && afterDisabledLink != null)
{
getResponse().write(afterDisabledLink);
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1315986&group_id=119783
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop