« Return to Thread: Wicket and javascript

Re: Wicket and javascript

by Martin Funk-3 :: Rate this Message:

Reply to Author | View in Thread

you are getting closer...

next step is to get the callbackURL to the browser and than pick it up  
by your javascript.
it could be rendered as an attribute using an AttributeModifier.

given that wicket supplies the javaScript method wicketAjaxGet.
If that gets called with the callbackURL the call will hit right  
through to the onLinkClicked()

so far i did that trick with behaviors, but this is an interesting  
approach too.

mf


Am 05.07.2009 um 13:52 schrieb Mathias Nilsson:

>
> Sorry for not getting this totally.
>
> If I do something like this
>
> class Comp extends WebComponent implements ILinkListener{
>
> public Comp(String id) {
> super(id);
>
> }
>
> public String getCallbackURL(){
> return  urlFor( ILinkListener.INTERFACE ).toString();
> }
> public void onLinkClicked() {
> // TODO Auto-generated method stub
>
> }
>
> }
>
> Then how could I update it via AJAX?
> --
> View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24342389.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


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

 « Return to Thread: Wicket and javascript