On Tue, 13 Nov 2007, Pills wrote:
> Well, I use this method to edit a record. The form is bound with the field
> "formTarget". When called, it loads data in formTarget from the parameter.
>
> If I don't call modelChanging/modelChanged, some components like
> DropDownChoices aren't properly inited
elect old cached values. I
don't know if it is a bug or if I wrote something wrong...
--
View this message in context:
http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778358.html#a137226
On Fri, 09 Nov 2007, Pills wrote:
> public void edit(MyClass l) {
> [...]
>
> shops.modelChanging();
> formTarget.setShops(l.getShops());
> shops.modelChanged();
>
> [...]
What's the point of this method?
And why is it calling modelChanging and modelChanged? I think
that n
;ve found the problem: I didn't override equals and hashcode in
> >> my
> >> class "Shop".
> >>
> >> Can anybody confirm that was the cause of that problem?
> >> --
> >> View t
think I've found the problem: I didn't override equals and hashcode in
>> my
>> class "Shop".
>>
>> Can anybody confirm that was the cause of that problem?
>> --
>> View this message in context:
>> http://www.nabble.com/Strange-behavi
ew this message in context:
> http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778359.html#a13669424
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To un
I think I've found the problem: I didn't override equals and hashcode in my
class "Shop".
Can anybody confirm that was the cause of that problem?
--
View this message in context:
http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778359.html#a13
d... (and I'm sure the property isn't null)
Is is a known issue? How can I fix it?
Thank you very much ;)
--
View this message in context:
http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778359.html#a13669186
Sent from the Wicket - User mailing list archive at Nabble.com.
(and I'm certain the property isn't null)
Is is a known issue? How can I fix it?
Thank you very much ;)
--
View this message in context:
http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778358.html#a13669185
Sent from the Wicket - User mailing list archive at Nabble.com.