Use property models to update the fields on your java objects directly. Then you don't have to query the textfield yourself, and Wicket will perform the validation, conversion and population for you.

Person person = personDao.getPerson(1);

Form form = new Form("form", new CompoundPropertyModel(person)) {
    protected void onSubmit() {
        personDao.save((Person)getModelObject());
    }
};
form.add (new TextField("name"));
add(form);
add(new SubmitLink("save", form));

Note that the submitlink is outside the form.

Martijn

On 5/19/06, ketan gote <[EMAIL PROTECTED]> wrote:
hello

friends ,
we are fetching some values from database and displaying in some TextField bu model,
on other part we have one image link on page on which on onClick method we want to get all the form component value, which we are not able to get

wating for reply

regards

ketan d.gote



--
Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org

Reply via email to