Thanks Johan, that did the trick. However, that behaviour did change since snapshot 20060302.

More on a philosophic note though, for all components I have used sofar, when there is a Property-model backing those components, there are getters and setters called to set or retrieve values into the model. This even was the case for a ListMultipleChoice in snapshot 20060302 (okay, I will stop now ;)). No seriously, the ListMultipleChoice is now the only exception to the rule (that I know of), and when it comes to programming, I don't like Exceptions. Do you?

Maybe it is possible to set the updated Collection through a setter back into the PropertyModel using the setter that accepts a Collection of the same type that was retrieved by the getter? You may argue that this is unnecessary work, but (1) you get uniform behaviour between the components that use PropertyModels and (2) as in my use-case, the property is a derived property and my getter and setter perform a conversion.

Best regards,

Dave



Johan Compagner wrote:
we don't set the values. We only do that when there is nothing returned in the get If a collection is returned by the get that collection is filled with the values. But as far as i know we always did that, there is some code changed i think but we couldn't just set a List in it. Because who is telling us that it is a list and not a set?

johan


On 4/20/06, *Dave* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    I just upgraded wicket in my project from snapshot 20060302 to
    Release
    Candidate 2 and am currently testing it.

    I find that a ListMultipleChoice, which is accepting multiple
    selections, is no longer receiving the selections made by the
    user. The
    ListMultipleChoice is created with a PropertyModel that has a setter
    with a List as parameter, but it is never called when I submit the
    form.
    The getter is called just fine prior to showing the form to the user.

    Is this a bug introduced somewhere between snapshot 20060302 and
    Release
    Candidate 2 or do I have to change something as result of changed API?

    Thanks in advance and best regards,

    Dave





-------------------------------------------------------
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

Reply via email to