Could'nt you encourage Petr to create a wicket stuff for it :)
hint hint...
Eelco Hillenius wrote:
Hello Eelco,
thank you for your response. I've checked the FormComponentPanel, but if I
want to use it in forms I would have to reimplement all the functionality of
such components (eg. Button, CheckBox, TextField, ...), which would be
definitely reinventing the wheel. I'm looking for how to do the following:
1. create subclass of existing component (eg. TextField) and corresponding
html file.
2. modify my class (override some method(s) or better by implement some
interface (hopefully empty))
As a result I would be able to use it in repeaters.
I did it in my example, but I think and hope it could be done in some better
way.
Yeah, that's just not possible at this time. You'll have to duplicate
the components by wrapping them in these panels. This is an area where
we'd love to have some more power in the language (mixins for
instance). Maybe we'll find a better way to do it in Wicket sometime,
but that won't be anytime soon I'm afraid.
Eelco
--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684