In fact something similar did happen.  I tried running the same app with a 
different container (Resin) and saw it issue an IllegalStateException 
because the Content-Length was far smaller than the actual # of bytes.

It turns out that SiteMesh isn't setting the content length to the size of 
the decorated page; the size of the page created by Wicket is what either 
gets set or stays set as the content length, 2842 bytes in my case.  The 
actual size of the page should have been more like 11k.

Martijn Dashorst suggested trying to switch the redirect strategies. I 
will look into that also and post what I learn.

    Nick

On Sun, 22 Oct 2006, Per Ejeklint wrote:

> Might be completely unrelated but I once saw this in an app where an 
> exception was caught and logged to file but never shown. Execution continued 
> but with uncomplete data rendered. Just an idea...
>
> /Per
>
> 22 okt 2006 kl. 06.19 skrev Nick Johnson:
>
>> 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
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
> Per Ejeklint: Consultant at Heimore Group AB, Kungsg. 33 11th floor, SE-111 
> 56 Stockholm, Sweden
> Contact: [EMAIL PROTECTED]; mobile +4670-5090052
>

-- 
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to