Joel Halbert wrote:
OK, thanks for the reply. I'm at least glad to hear that this appears to
be a 'known issue', rather than some local quirk of my setup.

I'll liase with the Jetty team to see if there is a workaround and will
keep this thread updated.

Joel


On Fri, 2008-12-05 at 10:28 -0800, Igor Vaynberg wrote:
not sure if we can do much about this. on the one hand jetty is quirky
because it initializes objects that belong to the webapp before
actually initializing the webapp itself. on the other hand wicket is
quirky because it stores things in session that depend on objects
outside the session. try getting in touch with jetty people and see if
they are willing to add a setting to control this, and please keep us
informed.

Let me ask something:

As a newbie, I'm wondering if some exceptions I can trigger in w/ use of the back button

->using the simple Wicket in Action examples (Chapter 3)
->hosting the apps in Jetty 6.1.10
->accessing the apps using FF2 and FF3, on either Windows or Linux

are somehow related to the way Jetty is storing things in sessions. Is Jetty just known to be quirky about how it deals with sessions, and my example and Joel's example are symptomatic of a larger problem with the Jetty app server session management implementation, not Wicket's session management support? When I host those apps in Tomcat6 instead of Jetty, I don't trigger the same exceptions, and since the only difference is the hosting app server, I'm more suspicious of Jetty after reading this thread.

I won't be using Jetty as a rule, so I won't invest the effort in filing bugs. However, I would like to be using Jetty for simple examples, and would like to be able to anticipate session related quirks, so I don't think it's me, the newbie, doing things wrong.

Read on for more details...

***

The problem I see with Jetty and the back button - easy to reproduce with the WIA examples. First deploy the WIA war file to Jetty and then access Example 3.2 "Creating the Storefront" as follows.

1) add a cheese to my cart by clicking on the Add button
2) remove the cheese I just added by clicking on the Remove button
3) press the back button on the FF browser

Result: The cart I see rendered has the cheese I just removed in it. When I click on the remove button again, I get an out of range exception, because in fact, the cheese got removed from my underlying model in Step 2. Indeed, the use of Firebug indicates that the browser doesn't go back out and ask the Jetty server to give me the session back.

But what's strange is that when I deploy the WIA war file to *Tomcat* (Tomcat5 or 6) and run through the same scenario, the cart I see rendered after step 3 reflects the fact I've really and truly deleted that cheese from the model in Step 2. In other words, I don't see it anymore in the restored cart. Firebug tells me that in the *Tomcat* deployment, the browser DOES go back and ask the *Tomcat* server for session info.

I am aware of an issue with FF, Wicket and the back button (https://issues.apache.org/jira/browse/WICKET-923), but I don't experience the problem with Tomcat/FF, only with Jetty/FF. That's a surprise - if the problem was related to how FF caches the initial DOM, wouldn't I see the same behavior in the tomcat deployments if I'm using the same FF browser instance?

Yes, I can solve the caching problem regardless of hosting app server by adding the Cache-Control "no-store" flag, as Mataj recommends in that ticket, but is it possible that there are more quirks in Jetty w/r/t sessions and playing well with Wicket?

Thanks.

Susan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to