Hi All.

I have an Autocompleter, which has an 'onValueChanged' event listener.

The event is being triggered and everything up to this point works as expected. What I'd like to do in this event listener is cause a javascript snippet to be executed on the client for example:

@EventListener(targets = "myAutocompleter", events = "onValueChanged")
public void doSomething()
{
   // alert message on client
getRequestCycle().getResponseBuilder().executeJavascript("alert('script executed');");
}

Obviously ResponseBuilder doesn't have an 'executeJavascript' method, but does anyone know of a way to achieve this functionality? I'm sure it's possible somehow.

Thanks, Paul.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to