Hello,

If I have the following code:

 textField.add(new AbstractAutoCompleteBehavior() {
            /**
             *
             */
            private static final long serialVersionUID = 1L;

            @Override
            protected void onRequest(final String input,
                    RequestCycle requestCycle) {
            }

            @Override
            protected void respond(AjaxRequestTarget target) {
                  target.appendJavascript("alert(\"hello\");");
            }
        });

When the page renders, the textfield is calling this event and I see the
response in the Wicket debug box, but the response is never being parsed and
the alert never shows up.   Am I missing something here?  I tested using an
AjaxEventBehavior with onkeypress and it works great.  The only problem is
that I have no way of getting the text typed into the text field, which is
why I used the auto complete stuff.  Any thoughts?

Thanks for your help!

Reply via email to