I tried something that should throw an exception IMO.
public class Foo implements Serializable {}
public Index extends WebPage {
private Foo foo = null;
public Index() {
Form form = new Form("form");
form.add(new TextField("foo", new PropertyModel(this, "foo")));
}
}
<html>
<body>
<form wicket:id="form">
<input type="text" wicket:id="foo" />
<input type="submit" />
</form>
</body>
</html>
If you don't register a convertor for Foo, then this should result in
a ConversionException in my opinion, but the field will become null
instead without any error.
If this is desired behavior, then at least throw the exception in
development mode.
But I may be missing something important here (apart from the fact
that doing this is very stupid).
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/