Hi: guys I am getting "No get method defined for class RegisteredUser
expression: countryList" when I try to execute this code
registeredUser = new RegisteredUser();
Address address = new Address();
registeredUser.setAddress(address);
model = new CompoundPropertyModel(registeredUser);
setModel(model);
add(new TextField("firstName", model.bind("firstName")));
add(new TextField("lastName", model.bind("lastName")));
add(new TextField("userName", model.bind("userName")));
add(new TextField("emailAddress", model.bind("email")));
add(new PasswordTextField("password", model.bind("password")));
DropDownChoice countryList = new DropDownChoice("countryList",
model.bind("address.country"));
countryList.setChoices(new AbstractReadOnlyModel() {
public Object getObject() {
List list = null;
try {
........
}
});
I don't understand why the errors happens at DropDownChoice even though the
model object has a complex property address that in turn has a property
called country. I am not sure what I am missing here
Thanks,
RJ
--
View this message in context:
http://www.nabble.com/No-get-method-defined-for-class-error-tp22130142p22130142.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]