You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by dideep <am...@gmail.com> on 2008/10/20 15:45:55 UTC

Javascript callback

I've got a highly functional JS widget (a grid) which I'm trying to wrap up
in a wicket component.  The JS widget has an object it uses to talk to the
server - you tell this object a URL.  I've got as far as adding a
DefaultAjaxBehavior to my component and telling the JS widget the callback
URL - is this the right way to go?
-- 
View this message in context: http://www.nabble.com/Javascript-callback-tp20067507p20067507.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Javascript callback

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Yes. if you checkout open layers contrib & mootips theres something there:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-openlayers/src/main/java/org/wicketstuff/openlayers/event/ClickEventListenerBehavior.java
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-minis/src/main/java/org/wicketstuff/minis/mootipbehavior/MootipAjaxListener.java


dideep wrote:
> I've got a highly functional JS widget (a grid) which I'm trying to wrap up
> in a wicket component.  The JS widget has an object it uses to talk to the
> server - you tell this object a URL.  I've got as far as adding a
> DefaultAjaxBehavior to my component and telling the JS widget the callback
> URL - is this the right way to go?
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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


Re: Javascript callback

Posted by Martin Funk <ma...@googlemail.com>.
2008/10/20, dideep <am...@gmail.com>:
>
> I've got a highly functional JS widget (a grid) which I'm trying to wrap up
> in a wicket component.  The JS widget has an object it uses to talk to the
> server - you tell this object a URL.  I've got as far as adding a
> DefaultAjaxBehavior to my component and telling the JS widget the callback
> URL - is this the right way to go?
Well how shall we know ? :-)
If you are trying to solve something like a half object pattern, like
having the same sort of state on the client side (your widget) and on
the serverside (your component) plus trying to keep em in sync, than
DefaultAjaxBehavior might be a good starting point to get a
CallbackUrl for the JS widget to call back to.
That's what happens in the wicket-contib-gmap2 project of wicket-stuff.

mf
> --
> View this message in context:
> http://www.nabble.com/Javascript-callback-tp20067507p20067507.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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