Sorry for not voting in this reply, but do you really consider the
constructor with type parameter confusing for noobs?

-Matej

On 7/10/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
Matej had the brilliant idea of auto discovery of the type parameter
for FormComponents when they use a PropertyModel or
CompoundPropertyModel. In order to remove confusion for noobs, and to
point out that there is a Better Way (tm) I propose the following
options:

For those wondering if it is still possible to set the target type:
yes you can, just use the setType() method on the form component.

I know it is a tad late in the game, but I think the clean up is
something worthwile.

[ ] remove the affected FormComponent constructors with the type parameter
[ ] deprecate the affected FormComponent constructors with the type parameter
[ ] leave them

Martijn

--
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/

Reply via email to