Hi, I don't see why it should not work. Actually AutoCompleteBehavior itself wont work without this method. It overrides it to do: attributes.setWicketAjaxResponse(false); attributes.setDataType("html");
On Mon, Jan 21, 2013 at 10:09 AM, james yong <i_yon...@yahoo.com.sg> wrote: > Hi all, > > Just to confirm if overriding updateAjaxAttributes has any effect on > AutoCompleteBehavior? > I was tryng to do the following but see no popup nor code reflected in the > html source. > > @Override > protected void updateAjaxAttributes(AjaxRequestAttributes > attributes) { > super.updateAjaxAttributes(attributes); > AjaxCallListener myAjaxCallListener = new AjaxCallListener() { > > @Override > public CharSequence getBeforeHandler(Component component) { > return "alert('I\'m executed before the firing of the > Ajax call')"; > } > }; > List<IAjaxCallListener> list = > attributes.getAjaxCallListeners(); > list.add(myAjaxCallListener); > } > > Regards, > James > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/updateAjaxAttributes-has-no-effect-on-AutoCompleteBehavior-tp4655560.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>