You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by David Skuben <da...@gmail.com> on 2010/03/04 22:12:25 UTC

OnlyTargetActivePage param

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);
    }

Re: OnlyTargetActivePage param

Posted by FakeBoy <da...@gmail.com>.
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 <da...@gmail.com>
> 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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: OnlyTargetActivePage param

Posted by Pedro Santos <pe...@gmail.com>.
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 <da...@gmail.com> 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

Re: How to strip Wicket tags in development mode?

Posted by FakeBoy <da...@gmail.com>.
Hi, 
do you know something about my problem ?
I asked about constructing callback script with OnlyTargetActivePage param.

D.


jWeekend wrote:
> 
> David,
> 
> Take a look here [1].
> 
> Regards - Cemal
> jWeekend
> OO & Java Technologies, Wicket
> Consulting, Development, Training
> http://jWeekend.com
> 
> [1]
> http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html
> 
> 
> On 4 March 2010 23:44, David Chang <da...@yahoo.com> wrote:
>>
>> I understand that in deployment, all Wicket tags are stripped from the
>> rendered markup that is sent to the client.
>>
>> How can I strip all Wicket tags from the rendered markup in development
>> mode. I want to see clean HTML content in the client.
>>
>> Thanks for help!
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/OnlyTargetActivePage-param-tp27786617p27790463.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: How to strip Wicket tags in development mode?

Posted by David Chang <da...@yahoo.com>.
James and Cemal,

Thanks so much for your kind help!

Cheers.

--- On Thu, 3/4/10, Cemal Bayramoglu <jW...@cabouge.com> wrote:

> From: Cemal Bayramoglu <jW...@cabouge.com>
> Subject: Re: How to strip Wicket tags in development mode?
> To: users@wicket.apache.org
> Date: Thursday, March 4, 2010, 6:47 PM
> David,
> 
> Take a look here [1].
> 
> Regards - Cemal
> jWeekend
> OO & Java Technologies, Wicket
> Consulting, Development, Training
> http://jWeekend.com
> 
> [1] http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html
> 
> 
> On 4 March 2010 23:44, David Chang <da...@yahoo.com>
> wrote:
> >
> > I understand that in deployment, all Wicket tags are
> stripped from the rendered markup that is sent to the
> client.
> >
> > How can I strip all Wicket tags from the rendered
> markup in development mode. I want to see clean HTML content
> in the client.
> >
> > Thanks for help!
> >
> >
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > 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
> 
> 


      

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


Re: How to strip Wicket tags in development mode?

Posted by Cemal Bayramoglu <jW...@cabouge.com>.
David,

Take a look here [1].

Regards - Cemal
jWeekend
OO & Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com

[1] http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html


On 4 March 2010 23:44, David Chang <da...@yahoo.com> wrote:
>
> I understand that in deployment, all Wicket tags are stripped from the rendered markup that is sent to the client.
>
> How can I strip all Wicket tags from the rendered markup in development mode. I want to see clean HTML content in the client.
>
> Thanks for help!
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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


Re: How to strip Wicket tags in development mode?

Posted by James Carman <jc...@carmanconsulting.com>.
http://wicket.apache.org/docs/1.4/org/apache/wicket/settings/IMarkupSettings.html#setStripWicketTags%28boolean%29

On Thu, Mar 4, 2010 at 6:44 PM, David Chang <da...@yahoo.com> wrote:
>
> I understand that in deployment, all Wicket tags are stripped from the rendered markup that is sent to the client.
>
> How can I strip all Wicket tags from the rendered markup in development mode. I want to see clean HTML content in the client.
>
> Thanks for help!
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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


How to strip Wicket tags in development mode?

Posted by David Chang <da...@yahoo.com>.
I understand that in deployment, all Wicket tags are stripped from the rendered markup that is sent to the client. 

How can I strip all Wicket tags from the rendered markup in development mode. I want to see clean HTML content in the client.

Thanks for help!




      

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