class UserForm extends Form {
User user = new User(); // POJO Bean
<constructor> {
<on submit> {
}...
BoundCompoundPropertyModel model = new BoundCompoundPropertyModel(user);
add(new TextField("name", model));
add(new TextField("email", model)); // Can I do this? Use the same model object for different properties?
}BoundCompoundPropertyModel model = new BoundCompoundPropertyModel(user);
add(new TextField("name", model));
add(new TextField("email", model)); // Can I do this? Use the same model object for different properties?
<on submit> {
String name = user.getName
();
// Why name is still null ?
}// Why name is still null ?
Am I missing something here? Where in the docs has some reference for Property Models ?
--
Bruno Borges
[EMAIL PROTECTED]
Sun Certified Java Programmer for 1.4
Sun Certified Web Component Developer for 1.4
