only i can use your saying this way,

final FileUploadField fileUploadField = new FileUploadField("fileUpload",
new IModel<List&lt;FileUpload>>() {

            public List<FileUpload> getObject() {
                return null;
            }

            public void setObject(List<FileUpload> object) {

            }

            public void detach() {

            }
        });

because i am getting error "java.lang.NullPointerException" when i use
Model<FileUpload>(),

anyway, i didnt understand :( only i want to hold my pojo class information
into FileUploadField...

the solution works when i use  diffrent object type like these

final TextField email = new TextField("email", new
PropertyModel<String>(user1, "email"));
        email.setRequired(true);
        email.add(EmailAddressValidator.getInstance());
        form.add(email);
final PasswordTextField password = new PasswordTextField("password", new
PropertyModel<String>(user1, "password"));
        password.setRequired(true);
        form.add(password);


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-use-PropertyModel-for-saving-image-to-database-tp4667580p4667586.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to