Re: [Wicket-user] DropDownChoice and ajax fill form TextFields

2006-07-25 Thread Eelco Hillenius
Simple == good. Eelco On 7/25/06, JK <[EMAIL PROTECTED]> wrote: > Thak you very much! My code: > > drop.add(new AjaxEventBehavior("onchange") { > public void onEvent(AjaxRequestTarget target) { > // Update form model > target.addComponent(form); > } > } ); > > 2006/7/25, Eelco

Re: [Wicket-user] DropDownChoice and ajax fill form TextFields

2006-07-25 Thread JK
Thak you very much! My code: drop.add(new AjaxEventBehavior("onchange") { public void onEvent(AjaxRequestTarget target) { // Update form model target.addComponent(form); } } ); 2006/7/25, Eelco Hillenius <[EMAIL PROTECTED]>: > You could add the form to the AjaxRequestTarget, so

Re: [Wicket-user] DropDownChoice and ajax fill form TextFields

2006-07-25 Thread Eelco Hillenius
You could add the form to the AjaxRequestTarget, so that the whole form is re-displayed. Of course, make sure you updated the relevant models of the text fields. Another approach is to update those fields with a javascript function you execute with your ajax response. See AjaxRequestTarget#appendJa

[Wicket-user] DropDownChoice and ajax fill form TextFields

2006-07-25 Thread JK
Hi, This might be stupid question but I can't find out how to do it... A form has DropDownChoice and many TextFields. When choice is made, rest of the form is filled with ajax depending the choice. Should I call some update method or what? (Wicket 1.2.1) -