> Solutions I found:
>
> - only use bookmarkable links, stateless pages -> can't use a lot of the
> wicket-goodness, no stateless forms in 1.2 (?)

Even though stateless forms make things better, it is still limited
compared to normal pages.

> - keep pages alive with an ajax ping (doesn't help for the back button)

As I'm trying to get into the rythm of regularly writing blog items
again, I thought it would be nice to do one about this topic :)

See 
http://chillenious.wordpress.com/2007/06/19/how-to-create-a-text-area-with-a-heart-beat-with-wicket/

> Consider the following scenario's:
>
> 1
> ---
> User Frederick logs in, searches the book "Snales and other monsters" and
> views the details for that book. He gets distracted by the pineapple at his
> desk for quite a while. He gets his attention back to the screen and clicks
> to edit the book "Snales and other monsters" he was viewing before. He gets
> redirected to the login page because the session has expired. He logs in and
> gets automatically redirected to the edit form for the book "Snales and
> other monsters".

So keep that last page he accessed in a cookie.

> 2 (nearly the same, but with a form)
> ---
> User Sarah logs in, searches a song "Anton aus Tirol" and starts editing the
> song data, but doesn't submit the data. She gets away from her desk and when
> she returns everyting seems fine to her. She continues editing the data of
> "Anton aus Tirol" and submits. Her session has expired, so she gets
> redirected to the login page. She logs in again and the data she wanted to
> submit get submitted by the application. Sarah is shown the new data of
> "Anton aus Tirol", which she submitted.

Yeah, this is only possible with stateless forms, or using
bookmarkable pages and code the forms yourself (this might be an
option for 1.2).

Better: do what e.g. gmail and lots of other web applications do: save
drafts. This is probably the best solution: you can keep using the
programming model, and the user doesn't have to worry about loosing
data. Additionally, this will protect users somewhat from when the
browser window is closed or the computer crashes or whatever.

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to