Thanks for the tip, Martijn!
A call to
getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER)
corrected the trouble. REDIRECT_TO_RENDER also works. It's
REDIRECT_TO_BUFFER that does not work properly with Sitemesh due to
content length problems.
Nick
On Sun, 22 Oct 2006, Martijn Dashorst wrote:
> The default redirect strategy of Wicket is to render into a buffer,
> issue a redirect and then return the buffer.
>
> Did you try to switch the redirect strategies?
>
> Martijn
>
> On 10/22/06, Nick Johnson <[EMAIL PROTECTED]> wrote:
>> Greetings,
>>
>> I'm writing this in the hope that someone has seen this problem before and
>> can offer a solution.
>>
>> I use Sitemesh to decorate pages of various sources (html, jsp, text) and
>> I'm experimenting with converting some legacy web apps to use Wicket.
>>
>> The problem I'm having is that when hitting the submit button on a Wicket
>> form, the resulting page gets truncated after 2842 bytes, which is well
>> inside the Sitemesh decorator page. If I hit the browser's reload button,
>> I get the whole page.
>>
>> It's unclear whether this behaviour is caused by Wicket, Sitemesh or
>> Tomcat. It's surely bizarre that hitting reload would cause the page to
>> display properly. Maybe something to do wish sessions?
>>
>> This is using Wicket 1.2.2 with Sitemesh 2.2.1 in Tomcat 5.5.20..
>>
>> Has anyone else seen similar behaviour and found a workaround or fix?
>>
>> Nick
>>
>> --
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Wicket-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
>
>
--
When you're a kid, they tell you it's all grow up, get a job, get married,
get a house, have a kid, and that's it. No, the truth is the world is so
much stranger than that. It's so much darker, and so much madder.
And so much better.
-- Elton, Doctor Who, "Love and Monsters"
This message has been brought to you by Nick Johnson 2.1 and the number 6.
http://healerNick.com/ http://morons.org/ http://spatula.net/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user