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 <[email protected]>: >> 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? >>> >>> >>> <html> >>> <head> >>> <title>Wicket Examples - forminput</title> >>> <link rel="stylesheet" type="text/css" href="../style.css"/> >>> <link rel="stylesheet" type="text/css" >>> href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F" >>> /> >>> <script type="text/javascript" >>> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F"></script> >>> </head> >>> <body> >>> <span> >>> <div><a href="../index.html" style="color: #E9601A" >>> target="_top"><img src="../logo.png"/></a><div id="wicketDebugBar" >>> class="wicketDebugBar"> >>> <a id="wicketDebugBarCollapse" >>> onclick="wicketDebugBarCollapse();"><img >>> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/ >>> (...) >>> <label for="siteSelection">your favorite >>> sites</label> >>> <select id="siteSelection" name="siteSelection" >>> multiple="multiple" >>> size="3"> >>> <option value="0">The Server Side</<html> <--- seems to be cut off >>> <head> <------ one again starting from head >>> <title>Wicket Examples - forminput</title> >>> <link rel="stylesheet" type="text/css" href="../style.css"/> >>> <link rel="stylesheet" type="text/css" >>> href="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.css;jsessionid=E218340AA4A63320747D134AA1985E7F" >>> /> >>> <script type="text/javascript" >>> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar.js;jsessionid=E218340AA4A63320747D134AA1985E7F"></script> >>> </head> >>> <body> >>> <span> >>> <div><a href="../index.html" style="color: #E9601A" >>> target="_top"><img src="../logo.png"/></a><div id="wicketDebugBar" >>> class="wicketDebugBar"> >>> <a id="wicketDebugBarCollapse" >>> onclick="wicketDebugBarCollapse();"><img >>> src="resources/org.apache.wicket.devutils.debugbar.DebugBar/ >>> (...) >>> <option value="0">The Server Side</option> <--- second time not cut off >>> <option value="1">Java Lobby</option> >>> <option value="2">Java.Net</option> >>> (...) >>> </div> >>> </body> >>> </html> >>> >>> >>> Regards >>> Marcin -- http://solidsoft.wordpress.com/ - Working code is not enough --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
