Hi!

I'm migrating from Wicket 1.5 to 6, and I have a couple of
generateCallbackScript usage that I have no idea what to do.

An example:

    class ToolbarBehaviour extends AbstractDefaultAjaxBehavior
    {
        private static final long serialVersionUID = 1L;

        @Override
        protected void respond(AjaxRequestTarget target)
        {
            int itemNumber =
getRequest().getRequestParameters().getParameterValue("item").toInt();
            ToolItem item = Toolbar.this.registeredItems.get(itemNumber);
            item.onClick(target);
        }

        public CharSequence getAjaxUrl(String params)
        {
            return generateCallbackScript("wicketAjaxGet('" +
getCallbackUrl() +
                "&" + params + "'");
        }
    };


This is an integration with ExtJS toolbar, and getAjaxUrl() isused to
build an ajax call in another place.

I do also have similar JQueryBehavior's using generateCallbackScript and
adding parameters to them.

How to code this with Wicket 6?


Adriano


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to