On Fri, Jun 18, 2010 at 3:21 AM, MattyDE <ufer.mar...@gmail.com> wrote:

>
> Igoooooor... i need your help please :)
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2259861.html
> Sent from the Wicket - User 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
>
>
instead of using wiquery event behavior, use your own and generate the
binding yourself:

new AbstractDefaultAjaxBehavior() {
  CharSequence getCallbackScript(boolean onlyTargetActivePage) {
    return "$('#" + getComponent().getMarkupId() + "').bind('filter',
function() { " +
    "wicketAjaxGet('" + getCallbackUrl(onlyTargetActivePage) + "&myIDs=' +
getSelectedIDs() + );}";
  }
}

notice that the getSelectedIDs() is a JS function that you would need to
define....  Fix the syntax (I probably have typos) and apply it to your use
case.


-- 
Jeremy Thomerson
http://www.wickettraining.com

Reply via email to