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 Hillenius <[EMAIL PROTECTED]>:
> > 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#appendJavascript. You need to record the markup ids
> > of the text fields you want to update in that javascript. But the rest
> > should be fairly simple.
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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#appendJavascript. You need to record the markup ids
> of the text fields you want to update in that javascript. But the rest
> should be fairly simple.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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#appendJavascript. You need to record the markup ids
of the text fields you want to update in that javascript. But the rest
should be fairly simple.

Eelco


On 7/25/06, JK <[EMAIL PROTECTED]> wrote:
> 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)
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user