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
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
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
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)
-