You can look at how e.g. wantsOnSelectionChanged is implemented in
DropDownChoice.
// Should a roundtrip be made (have onSelectionChanged called)
when
the selection changed?
if (wantOnSelectionChangedNotifications())
{
// url that points to this components IOnChangeListener
method
final CharSequence url =
urlFor(IOnChangeListener.INTERFACE);
try
{
Form form = getForm();
tag.put("onchange",
form.getJsForInterfaceUrl(url) );
}
catch (WicketRuntimeException ex)
{
// NOTE: do not encode the url as that would
give invalid JavaScript
tag.put("onchange", "location.href='" + url +
"&" + getInputName()
+ "=' +
this.options[this.selectedIndex].value;");
}
}
Which can be implemented as a behavior if you don't want to put this
in a custom component class.
Additionally, there is ajax: look at AjaxEventBehavior for instance.
Eelco
On 6/7/06, Neeti Garg <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there a way I could trigger an event [Like loading a response page] after
> a Text Box has been populated?
>
> Thanks
> Neeti Garg
>
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user