Hi Folks,

i want to add an "custom" Event "filter" to an HTML-Component. So that
another plugin/function or something else, on client-side could call this
event and transfer some parameters (by ajax-post) to wicket on server-side.

Any Ideas for this?

I Tried with 

                gridView.add(new
WiQueryAjaxEventBehavior(FilterEvent.FILTER) {
                        
                        @Override
                        protected void onEvent(AjaxRequestTarget target) {
                            Request request = RequestCycle.get().getRequest();
                            String[] params = request.getParameters("ids");
                            //params is every time empty
                        }
                });

this generates a

 $('#grid__view5').bind('filter', function() {
48 var
wcall=wicketAjaxGet('?wicket:interface=:1:table_watchlist:grid_view::IBehaviorListener:2:',null,null,
function() {return true}.bind(this));
49}); 

in my markup.

And it works, except for not transfering any parameters if i call
"$(#componentId).trigger("filter")"

Thanks in Advance for Help!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2251592.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

Reply via email to