On Tue, 07 Oct 2008, Adriano dos Santos Fernandes wrote:
> I need to call the server side from a javascript (generated by a 
> component) function. Kind of Link/AjaxLink onClick, but instead of have 
> it attached to a DOM event, I need to generate the javascript function 
> that does the job.

E.g.

  myComponent.add(new AjaxEventBehavior("onblur") {
      @Override
      public void onEvent(AjaxRequestTarget target) {
          doStuff();
      }
  });

Read up on Wicket ajax, and check out the ajax examples in
wicket-examples.

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to