That PropertyModel is used inside some custom FormComponents that I have that do their own logic on whether to add the RequiredValidator or not depending on the Boolean object returned from the binding RequiredFieldContainer.CLASSIFIED_ACCOUNT_TYPE which is the isClassifiedAccountType method from the User object.
I make a new model because if I just set the model object it causes an OGNL exception because their is no property of the User called "accountForm".
I think after stepping through with a debugger the problem is not actually in Wicket at all, but in some of our own persistance logic.
Andy
>what is that propertyModel = new PropertyModel(accountPage.getUser>(), RequiredFieldContainer.CLASSIFIED_ACCOUNT_TYPE);
>where is that model used?
>and why are you making a new model why net =
>just set the model object on the form itself?
>just set the model object on the form itself?
>form.setModelObject(user)
>johan
