One method will return an url that address the behavior, the another one will to return an script that send an ajax request to that behaviour. the usage in javascript looks like: document.location = generatedUrlReturnedByBehaviour; eval( generatedScriptGeneratedByBehaviour);
On Thu, Mar 4, 2010 at 6:12 PM, David Skuben <[email protected]> wrote: > Hi everybody, > > I'm now looking in classes AbstractAjaxBehavior and > AbstractDefaultAjaxBehavior. > There are two similar methods: getCallbackUrl() and getCallbackScript() and > I don't understand why > first set onlyTargetActivePage to "true" and second to "false". Is it > right > ? > > If someone know about that, please let me know. > Thanks a lot. > Dave > > AbstractAjaxBehavior: > public CharSequence getCallbackUrl() > { > return getCallbackUrl(true); > } > > AbstractDefaultAjaxBehavior: > protected CharSequence getCallbackScript() > { > return getCallbackScript(false); > } > -- Pedro Henrique Oliveira dos Santos
