So if you have a Field that gets its value from a map then you just have to type youre field first:
TextField datePropertyTextField = new TextField("map.property", Date.class);
I already thought about looking at the current key/index and then convert it to that one.
But type conversion should be done at front. And this will be handled by wicket before the object is set.
johan
On 11/1/05, Laurent PETIT <[EMAIL PROTECTED]
> wrote:
Hello,
some thoughts:
> "property": This can can then be a bean property with get and set method.
> Or if a map is given as an object it will be lookup with the property as a
> key when there is not get method for that property.
If the model is a Map, how is the property converted ?
Could it be possible to check the type of the property by doing a
get() first on the old value of the property, and this old value (if
not null) could give the type of the property ?
> "property1.property2": Both properties are lookup as written above. If
> property1 evaluates to null then if there is a setMethod (or if it is a map)
> and the Class of the property has a default constructor then the object will
> be constructed and set on the object.
in the case of the map, how will you guess the correct type for
property1 ? (without strongly typed setter ? !)
Thanks in advance,
--
laurent
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user