You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by harrytalky <ha...@gmail.com> on 2011/04/07 12:18:22 UTC

Redirect back to wicket page problem

I am having a populate details link on my page which redirects to linkedin
site to authorize user and fetch his information back to wicket page. What
is happening right now is when user click continue on linkedin site to move
back to the our site then a pin is sent to the page. Using this pin we fetch
a authorization token but the problem is in case of IE  the page's
constructor is called twice and by then the token gets expired.
             I have debugged a lot but not able to find why constructor is
being called twice in case of IE.

I am using wicket 1.4.16, jdk1.6.24 and tomcat6

Please help. 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-back-to-wicket-page-problem-tp3432947p3432947.html
Sent from the Users forum 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: Redirect back to wicket page problem

Posted by harrytalky <ha...@gmail.com>.
Thanx for reply but non of static resource markup has empty src.

One thing i would like to mention here that It's generating different-2 src
string for static resources.

On first hit  ../js/abc.js

On second hit ../../js/abc.js

This is happening in IE8 but IE7 and firefox, it works in the first hit
itself.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-back-to-wicket-page-problem-tp3433517p3433707.html
Sent from the Users forum 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: Redirect back to wicket page problem

Posted by "jam.ntk" <ja...@gmail.com>.
Forgot to mention I am using  wicket 1.4.17 and IE 8

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-back-to-wicket-page-problem-tp3433517p4649773.html
Sent from the Users forum 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: Redirect back to wicket page problem

Posted by "jam.ntk" <ja...@gmail.com>.
Hi, I am also seeing a similar issue.

Did you find a fix to this issue?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-back-to-wicket-page-problem-tp3433517p4649772.html
Sent from the Users forum 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: Redirect back to wicket page problem

Posted by harrytalky <ha...@gmail.com>.
Using Tamper data plugin i found during first hit the page header contains
the following script:


if (window.name=='' || (window.name.indexOf('wicket') > -1 &&
window.name!='wicket-wicket:Default')) {
window.location="../con/prof.html/?oauth_token=e8b44a83-480f-4cf3-97cb-6dd162269c90&oauth_verifier=44646&wicket:PageMapName=wicket-16"
+ (window.location.hash != null ? window.location.hash : ""); }


is this the reason for the second hit?

Please provide any help, i m stuck to this from past 3 days.

Thanks in advance :)




Martin Grigorov-4 wrote:
> 
> check for    in your page markup.
> this would cause a second request to the page itself
> 
> there is a IResponseFilter in Wicket for this problem:
> EmptySrcAttributeCheckFilter
> it is enabled only in DEV mode in newer versions
> 
> On Thu, Apr 7, 2011 at 12:18 PM, harrytalky &lt;harrytalky@gmail.com&gt;
> wrote:
> 
>> I am having a populate details link on my page which redirects to
>> linkedin
>> site to authorize user and fetch his information back to wicket page.
>> What
>> is happening right now is when user click continue on linkedin site to
>> move
>> back to the our site then a pin is sent to the page. Using this pin we
>> fetch
>> a authorization token but the problem is in case of IE  the page's
>> constructor is called twice and by then the token gets expired.
>>             I have debugged a lot but not able to find why constructor is
>> being called twice in case of IE.
>>
>> I am using wicket 1.4.16, jdk1.6.24 and tomcat6
>>
>> Please help.
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Redirect-back-to-wicket-page-problem-tp3432947p3432947.html
>> Sent from the Users forum 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
>>
>>
> 
> 
> -- 
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com &lt;http://jweekend.com/&gt;
> 


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-back-to-wicket-page-problem-tp3433517p3435562.html
Sent from the Users forum 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: Redirect back to wicket page problem

Posted by Martin Grigorov <mg...@apache.org>.
check for <img src=""/> in your page markup.
this would cause a second request to the page itself

there is a IResponseFilter in Wicket for this problem:
EmptySrcAttributeCheckFilter
it is enabled only in DEV mode in newer versions

On Thu, Apr 7, 2011 at 12:18 PM, harrytalky <ha...@gmail.com> wrote:

> I am having a populate details link on my page which redirects to linkedin
> site to authorize user and fetch his information back to wicket page. What
> is happening right now is when user click continue on linkedin site to move
> back to the our site then a pin is sent to the page. Using this pin we
> fetch
> a authorization token but the problem is in case of IE  the page's
> constructor is called twice and by then the token gets expired.
>             I have debugged a lot but not able to find why constructor is
> being called twice in case of IE.
>
> I am using wicket 1.4.16, jdk1.6.24 and tomcat6
>
> Please help.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Redirect-back-to-wicket-page-problem-tp3432947p3432947.html
> Sent from the Users forum 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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>