done, it was already so in 2.0 :)
-igor
On 2/9/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
Is there any argument against adding a getFormComponent method to
FormComponentLabel? I am extending this class and it seems redundent for
me
to hold a reference in my object as well as the one in the parent.
If so, what is the reasoning?
If not, here is a patch for 1.3
Index:
Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/markup/html/form/FormComponentLabel.java
===================================================================
---
Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/markup/html/form/FormComponentLabel.java
(revision 505364)
+++
Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/markup/html/form/FormComponentLabel.java
(working copy)
@@ -54,4 +54,9 @@
checkComponentTag(tag, "label");
tag.put("for", fc.getMarkupId());
}
+
+ protected FormComponent getFormComponent()
+ {
+ return fc;
+ }
}
--
View this message in context:
http://www.nabble.com/FormComponentLabel.getFormComponent%28%29-tf3201494.html#a8889360
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user