Hi,
I understand the usege of this two methods. But what I really don't
understand is that one of them create callback adress which can be process
also on non-active page, but second not.

In my app I had to switch off multi window support. So now I have only one
page map for 
all my pages (also opened in other tabs or window.)
Problem is that my page is composed from several component especially
AjaxLink and 
AjaxButton. So when I open some other page in new tab and then return to
first page
some components do nothing (AjaxButton -> resolve EmptyRequestTarget) and
other works fine (AjaxLink). I tried to find what's the prob and found that
reason is differece between set onlyTargetActivePage param (see my first
question in this thread). 

Dave.



Pedro H. O. dos Santos wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://old.nabble.com/OnlyTargetActivePage-param-tp27786617p27806850.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]

Reply via email to