ok: non-Wicket-JavaScript-Function is bingJavaScriptFunctionCalledOnYourApp
so:
function bingJavaScriptFunctionCalledOnYourApp(){
/* callback script */
}
How can I get the callback script?
I'm wondering something like:
class BingTask extends AbstractDefaultAjaxBehavior {
@Override
protected void respond(AjaxRequestTarget target) {
System.out.println("task executed!");
}
@Override
public CharSequence getCallbackScript() {
return super.getCallbackScript();
}
}
on your java code:
BingTask taskToAddOnYourMap = new BingTask();
add(taskToAddOnYourMap);
System.out.println("The javascript to call this task: "+
taskToAddOnYourMap.getCallbackScript());
the callback javascript that get out on console will look like:
var
wcall=wicketAjaxGet('?wicket:interface=:0::IBehaviorListener:4:',null,null,
function() {return true;}.bind(this));
You still have to find a way of generate the
bingJavaScriptFunctionCalledOnYourApp calling this callback, it will depend
of how you create (or want to) your components ( getCallbackScript() was
just publicated to the println output example ). Hope that are what you look
for...
On Wed, Sep 9, 2009 at 2:34 PM, t3_chris <[email protected]> wrote:
>
> Thanks for your Response!
>
> As I am quite new to Wicket I don't exactly understand what you mean...
>
> Do you have any sample code? It isn't required to be Bing specific, it
> would
> also be helpful
> if you could demonstrate how i can get the result of a
> non-Wicket-JavaScript-Function
> into the Wicket session.
>
> Thanks!
>
> chris
> --
> View this message in context:
> http://www.nabble.com/Using-Wicket-together-with-Microsoft-VirtualEarth-BingMaps-tp25367085p25369801.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>