Re: Page content sends twice in response to GET when redirecting after POST

2011-01-09 Thread Marcin Zajączkowski
On 2011-01-09 22:00, Marcin Zajączkowski wrote:
> Hi,
> 
> 
> Following some problems with page rendering in my application after post
> a form I've noticed that when redirect after post strategy is used (both
> REDIRECT_TO_BUFFER and REDIRECT_TO_RENDER) page content is duplicated in
> a response to GET (after 302 Moved Temporarily on POST). I thought it's
> a problem with a configuration of my application (I'm playing with
> AppFuse as a base), but in the first Wicket example with form submission
> found on the web [1] it occurs as well.
> 
> Tested it with Wicket 1.4.15. Response snipset bellow. Full response as
> attachment. I can be easily reproduced using "forminput" example (just

Full response: http://pastebin.com/jQTRExjh


Marcin


> submit form).
> 
> [1] - http://www.wicketstuff.org/wicket14/forminput/
> 
> 
> I don't see a reason for that behavior, but I'm new to Wicket, so maybe
> it's a feature?
> 
> 
> 
> 
> Wicket Examples - forminput
> 
>  href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F"
> />
>  src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F">
> 
> 
> 
>  target="_top"> class="wicketDebugBar">
>onclick="wicketDebugBarCollapse();"> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/
> (...)
> your favorite sites
>  multiple="multiple"
> size="3">
> The Server Side   <--- seems to be cut off
> <-- one again starting from head
> Wicket Examples - forminput
> 
>  href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F"
> />
>  src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F">
> 
> 
> 
>  target="_top"> class="wicketDebugBar">
>onclick="wicketDebugBarCollapse();"> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/
> (...)
> The Server Side <--- second time not cut off
> Java Lobby
> Java.Net
> (...)
> 
> 
> 
> 
> 
> Regards
> Marcin
> 


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



Re: Page content sends twice in response to GET when redirecting after POST

2011-01-09 Thread Igor Vaynberg
really strange because it doesnt happen to me:

http://pastebin.com/fe1pjZjy

-igor



2011/1/9 Marcin Zajączkowski :
> On 2011-01-09 22:00, Marcin Zajączkowski wrote:
>> Hi,
>>
>>
>> Following some problems with page rendering in my application after post
>> a form I've noticed that when redirect after post strategy is used (both
>> REDIRECT_TO_BUFFER and REDIRECT_TO_RENDER) page content is duplicated in
>> a response to GET (after 302 Moved Temporarily on POST). I thought it's
>> a problem with a configuration of my application (I'm playing with
>> AppFuse as a base), but in the first Wicket example with form submission
>> found on the web [1] it occurs as well.
>>
>> Tested it with Wicket 1.4.15. Response snipset bellow. Full response as
>> attachment. I can be easily reproduced using "forminput" example (just
>
> Full response: http://pastebin.com/jQTRExjh
>
>
> Marcin
>
>
>> submit form).
>>
>> [1] - http://www.wicketstuff.org/wicket14/forminput/
>>
>>
>> I don't see a reason for that behavior, but I'm new to Wicket, so maybe
>> it's a feature?
>>
>>
>> 
>> 
>>     Wicket Examples - forminput
>>     
>> > href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F"
>> />
>> > src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F">
>> 
>> 
>>     
>>     > target="_top">> class="wicketDebugBar">
>>               > onclick="wicketDebugBarCollapse();">> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/
>> (...)
>>                         your favorite 
>> sites
>>                         > multiple="multiple"
>> size="3">
>> The Server Side   <--- seems to be cut off
>>             <-- one again starting from head
>>     Wicket Examples - forminput
>>     
>> > href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F"
>> />
>> > src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F">
>> 
>> 
>>     
>>     > target="_top">> class="wicketDebugBar">
>>               > onclick="wicketDebugBarCollapse();">> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/
>> (...)
>> The Server Side <--- second time not cut off
>> Java Lobby
>> Java.Net
>> (...)
>>     
>> 
>> 
>>
>>
>> Regards
>> Marcin
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Page content sends twice in response to GET when redirecting after POST

2011-01-11 Thread Johan Compagner
works fine for me to


2011/1/10 Igor Vaynberg :
> really strange because it doesnt happen to me:
>
> http://pastebin.com/fe1pjZjy
>
> -igor
>
>
>
> 2011/1/9 Marcin Zajączkowski :
>> On 2011-01-09 22:00, Marcin Zajączkowski wrote:
>>> Hi,
>>>
>>>
>>> Following some problems with page rendering in my application after post
>>> a form I've noticed that when redirect after post strategy is used (both
>>> REDIRECT_TO_BUFFER and REDIRECT_TO_RENDER) page content is duplicated in
>>> a response to GET (after 302 Moved Temporarily on POST). I thought it's
>>> a problem with a configuration of my application (I'm playing with
>>> AppFuse as a base), but in the first Wicket example with form submission
>>> found on the web [1] it occurs as well.
>>>
>>> Tested it with Wicket 1.4.15. Response snipset bellow. Full response as
>>> attachment. I can be easily reproduced using "forminput" example (just
>>
>> Full response: http://pastebin.com/jQTRExjh
>>
>>
>> Marcin
>>
>>
>>> submit form).
>>>
>>> [1] - http://www.wicketstuff.org/wicket14/forminput/
>>>
>>>
>>> I don't see a reason for that behavior, but I'm new to Wicket, so maybe
>>> it's a feature?
>>>
>>>
>>> 
>>> 
>>>     Wicket Examples - forminput
>>>     
>>> >> href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F"
>>> />
>>> >> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F">
>>> 
>>> 
>>>     
>>>     >> target="_top">>> class="wicketDebugBar">
>>>               >> onclick="wicketDebugBarCollapse();">>> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/
>>> (...)
>>>                         your favorite 
>>> sites
>>>                         >> multiple="multiple"
>>> size="3">
>>> The Server Side   <--- seems to be cut off
>>>             <-- one again starting from head
>>>     Wicket Examples - forminput
>>>     
>>> >> href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F"
>>> />
>>> >> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F">
>>> 
>>> 
>>>     
>>>     >> target="_top">>> class="wicketDebugBar">
>>>               >> onclick="wicketDebugBarCollapse();">>> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/
>>> (...)
>>> The Server Side <--- second time not cut off
>>> Java Lobby
>>> Java.Net
>>> (...)
>>>     
>>> 
>>> 
>>>
>>>
>>> Regards
>>> Marcin
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Truncated page when using Sitemesh with redirect after post (Was: Re: Page content sends twice in response to GET when redirecting after POST)

2011-01-10 Thread Marcin Zajączkowski
On 2011-01-10 01:40, Igor Vaynberg wrote:
> really strange because it doesnt happen to me:
> 
> http://pastebin.com/fe1pjZjy

Thanks for your check Igor.

I've used Ethereal to sniff my traffic and in fact page from forminput
is sent properly. Maybe it's a bug in Firebug 1.5.4 (for Firefox 3.5).

Nevertheless even Ethereal shows the page in get after post is
truncated. I've found it's probably problem with Sitemesh.
Content-length has the same value for pure page generated by Wicket and
page with Sitemesh decorators. It could be:
http://jira.opensymphony.com/browse/SIM-217

Is Sitemesh "compatible" with Wicket? Maybe there is a better workaround
than switch to ONE_PASS_RENDER?


Regards
Marcin



> 2011/1/9 Marcin Zajączkowski :
>> On 2011-01-09 22:00, Marcin Zajączkowski wrote:
>>> Hi,
>>>
>>>
>>> Following some problems with page rendering in my application after post
>>> a form I've noticed that when redirect after post strategy is used (both
>>> REDIRECT_TO_BUFFER and REDIRECT_TO_RENDER) page content is duplicated in
>>> a response to GET (after 302 Moved Temporarily on POST). I thought it's
>>> a problem with a configuration of my application (I'm playing with
>>> AppFuse as a base), but in the first Wicket example with form submission
>>> found on the web [1] it occurs as well.
>>>
>>> Tested it with Wicket 1.4.15. Response snipset bellow. Full response as
>>> attachment. I can be easily reproduced using "forminput" example (just
>> Full response: http://pastebin.com/jQTRExjh
>>
>>
>> Marcin
>>
>>
>>> submit form).
>>>
>>> [1] - http://www.wicketstuff.org/wicket14/forminput/
>>>
>>>
>>> I don't see a reason for that behavior, but I'm new to Wicket, so maybe
>>> it's a feature?
>>>
>>>
>>> 
>>> 
>>> Wicket Examples - forminput
>>> 
>>> >> href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F"
>>> />
>>> >> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F">
>>> 
>>> 
>>> 
>>> >> target="_top">>> class="wicketDebugBar">
>>>   >> onclick="wicketDebugBarCollapse();">>> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/
>>> (...)
>>> your favorite 
>>> sites
>>> >> multiple="multiple"
>>> size="3">
>>> The Server Side   <--- seems to be cut off
>>> <-- one again starting from head
>>> Wicket Examples - forminput
>>> 
>>> >> href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F"
>>> />
>>> >> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F">
>>> 
>>> 
>>> 
>>> >> target="_top">>> class="wicketDebugBar">
>>>   >> onclick="wicketDebugBarCollapse();">>> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/
>>> (...)
>>> The Server Side <--- second time not cut off
>>> Java Lobby
>>> Java.Net
>>> (...)
>>> 
>>> 
>>> 
>>>
>>>
>>> Regards
>>> Marcin


-- 
http://solidsoft.wordpress.com/ - Working code is not enough



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



Re: Truncated page when using Sitemesh with redirect after post (Was: Re: Page content sends twice in response to GET when redirecting after POST)

2011-01-10 Thread Igor Vaynberg
sure sounds like a sitemesh bug

-igor

2011/1/10 Marcin Zajączkowski :
> On 2011-01-10 01:40, Igor Vaynberg wrote:
>> really strange because it doesnt happen to me:
>>
>> http://pastebin.com/fe1pjZjy
>
> Thanks for your check Igor.
>
> I've used Ethereal to sniff my traffic and in fact page from forminput
> is sent properly. Maybe it's a bug in Firebug 1.5.4 (for Firefox 3.5).
>
> Nevertheless even Ethereal shows the page in get after post is
> truncated. I've found it's probably problem with Sitemesh.
> Content-length has the same value for pure page generated by Wicket and
> page with Sitemesh decorators. It could be:
> http://jira.opensymphony.com/browse/SIM-217
>
> Is Sitemesh "compatible" with Wicket? Maybe there is a better workaround
> than switch to ONE_PASS_RENDER?
>
>
> Regards
> Marcin
>
>
>
>> 2011/1/9 Marcin Zajączkowski :
>>> On 2011-01-09 22:00, Marcin Zajączkowski wrote:
 Hi,


 Following some problems with page rendering in my application after post
 a form I've noticed that when redirect after post strategy is used (both
 REDIRECT_TO_BUFFER and REDIRECT_TO_RENDER) page content is duplicated in
 a response to GET (after 302 Moved Temporarily on POST). I thought it's
 a problem with a configuration of my application (I'm playing with
 AppFuse as a base), but in the first Wicket example with form submission
 found on the web [1] it occurs as well.

 Tested it with Wicket 1.4.15. Response snipset bellow. Full response as
 attachment. I can be easily reproduced using "forminput" example (just
>>> Full response: http://pastebin.com/jQTRExjh
>>>
>>>
>>> Marcin
>>>
>>>
 submit form).

 [1] - http://www.wicketstuff.org/wicket14/forminput/


 I don't see a reason for that behavior, but I'm new to Wicket, so maybe
 it's a feature?


 
 
     Wicket Examples - forminput
     
 >>> href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F"
 />
 >>> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F">
 
 
     
     >>> target="_top" class="wicketDebugBar">
               >>> onclick="wicketDebugBarCollapse();" src="resources/org.apache.wicket.devutils.debugbar.DebugBar/
 (...)
                         your favorite 
 sites
                         >>> multiple="multiple"
 size="3">
 The Server Side   <--- seems to be cut off
             <-- one again starting from head
     Wicket Examples - forminput
     
 >>> href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F"
 />
 >>> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F">
 
 
     
     >>> target="_top" class="wicketDebugBar">
               >>> onclick="wicketDebugBarCollapse();" src="resources/org.apache.wicket.devutils.debugbar.DebugBar/
 (...)
 The Server Side <--- second time not cut off
 Java Lobby
 Java.Net
 (...)
     
 
 


 Regards
 Marcin
>
>
> --
> http://solidsoft.wordpress.com/ - Working code is not enough
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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