You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Doug Donohoe <do...@donohoe.info> on 2008/05/01 17:02:31 UTC
Re: Wicket 2.0 time frame
Hi Jonathan,
I'd like to open a discussion about this stance on "stateless" web ui
because I think the original question is really one about Wicket's use of
the session. By default, all wicket forms and links are stateful or
dependent on the Wicket Session. If the session goes away, the links and
forms cease to work. This can lead to a bad user experience.
For example, in trying to figure out how to do paging, I was using the
Wicket repeater view examples application:
http://wicketstuff.org/wicket13/repeater/. I must have experienced 'page
expired' messages 5 times because I'd look at an example's source code, work
on some code, go back to learn some more only to lose my place and have to
start all over again. That was frustrating and unnecessary. Perhaps this
is just bad application design - they could have used bookmarkable pages -
but they used the default wicket way.
You stated "i personally think 'stateless' web ui is nearly always a fantasy
or an architectural mistake." It seems to me there are two classes of
applications:
* Primarily stateless (or in Wicket parlance, primarily bookmarkable)
* Primarily stateful
Stateless Sites
-----------------
For example, Google's search is apparently stateless. I can bookmark any
search result, go away for hours, days or weeks and re-visit the link
without experiencing a session-expired message. I shop at Amazon quite a
bit. I can have a page open to a product for hours and no matter when I
click "buy now", it always works. My Yahoo page is similar. I use several
computers and I may have a My Yahoo page open from days ago. If I click on
any link, or submit a form (e.g., weather / stock), it always works. So, in
many common sites, they appear to be stateless. Some of these cites
certainly maintain some state on the back-end, but it is transparent to the
user.
Stateful Sites
---------------
Examples of sites which are legitimately stateful and require you to start
over when the session expires are banking and finance sites. If you leave a
page open for a while and go back to click on a link, you often get "your
login timed out" and you have to login again and start over. Some of them
remember where you wanted to go and redirect after you re-login.
Wicket
--------
My experience comes from moving http://online.ddpoker.com/ from jsp to
wicket. I'm about 75% done. Other than normal learning curve time, it
feels like I've been spending too much time fighting the session expiration
consequences. My goal (as is most, I would guess) is to create a site that
has a good user experience. I don't want a user to ever see a "page expired
message". That is bad application design. I want my architecture to help
me avoid bad design.
One example was figuring out how to create a bookmarkable form submission (I
captured my experience on my wiki: http://tinyurl.com/6xhyl3 ).
Another example is trying to get my login form to not expire. However,
since I unveil it via Ajax, it seems to not want to be stateless ... haven't
investigated it much, but I'll probably have to create some workaround.
My point is that wicket should make things easier. These seem like very
common issues - I'm curious to hear other users perspectives and
experiences.
If I were on the wicket team, I'd ask the question: How could one use
Wicket to rebuild sites like Google, Amazon.com, My Yahoo, etc.?
Developers are looking to choose a framework to build cool applications.
There are a lot of choices out there. I chose to use Wicket over other
frameworks like Ruby on Rails because I fundamentally like the approach of
100% Java and very little specialized markup. Being able to refactor, find
usages and leverage IDE support is a huge win.
Moving Forward
------------------
So, to further expand the original question regarding plans for the future
of Wicket, let me add these thoughts:
It seems like there are multiple approaches to address the Session
Expiration issue.
One is to make sessions that never expire. Keeping a session alive for-ever
in memory is obviously not a feasible approach. However, perhaps sessions
could be spooled to disk after some time. Has there been any work done on
this?
Another approach is to provide a more graceful session-expiration strategy.
In many cases, you could redisplay the original page (perhaps there are
cases where the no-arg constructor would work).
Finally, there are likely cases where parts of a page could be stateful and
others stateless. In my case, even though I display a login form via Ajax,
it still should be possible to submit it in a stateless format.
Let me end by saying that I am a big believer in the framework. However, I
feel the session expiration issue is a stumbling block. I welcome others
perspectives on this.
Respectfully,
-Doug
Jonathan Locke wrote:
>
>
> there will be no wicket 2.0 (no breaking changes). wicket 1.4 and 1.5 are
> next.
>
> wicket already provides a good amount of support for statelessness in 1.3
> and it seems unlikely it will provide much more than it does now.
>
> i personally think "stateless" web ui is nearly always a fantasy or an
> architectural mistake.
>
>
> bhitai wrote:
>>
>> Hi all,
>> First of all, I feel that this forum is great, and the technology being
>> developed by the Wicket folks is simply amazing. I am trying to pitch
>> Wicket to my organization that has a Spring mvc implementation in place
>> (yet the web 2.0 requirements are far beyond what it can handle - hence
>> the need for re-investigation). The insistence of Spring designers on
>> stateless-ness has made this idea of transitioning to a session-heavy
>> framework a rather tough one. I'm therefore curious to know about the
>> timeline for Wicket 2.0, which I believe will support stateless
>> components? Can you guys suggest some interim strategies (mitigating
>> factors) in the meanwhile?
>>
>> thanks
>> jaf
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p16993290.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 2.0 time frame
Posted by Jonathan Locke <jo...@gmail.com>.
there may be places where improvements are possible, but i think the answer
is not to ruin your programming model by not using sessions. i think
bookmarkability is a separate issue and one that is quite nicely addressed
in wicket /when you need it/.
one simple thing you can do to increase your session lifetime is to simply
set a longer session expiration time in your container.
i'm not personally having any problems in this area at all since 1.3 came
out and i haven't heard much from anyone else about this either. i'm
curious if others have issues to share.
Doug Donohoe wrote:
>
> Hi Jonathan,
>
> I'd like to open a discussion about this stance on "stateless" web ui
> because I think the original question is really one about Wicket's use of
> the session. By default, all wicket forms and links are stateful or
> dependent on the Wicket Session. If the session goes away, the links and
> forms cease to work. This can lead to a bad user experience.
>
> For example, in trying to figure out how to do paging, I was using the
> Wicket repeater view examples application:
> http://wicketstuff.org/wicket13/repeater/. I must have experienced 'page
> expired' messages 5 times because I'd look at an example's source code,
> work on some code, go back to learn some more only to lose my place and
> have to start all over again. That was frustrating and unnecessary.
> Perhaps this is just bad application design - they could have used
> bookmarkable pages - but they used the default wicket way.
>
> You stated "i personally think 'stateless' web ui is nearly always a
> fantasy or an architectural mistake." It seems to me there are two
> classes of applications:
>
> * Primarily stateless (or in Wicket parlance, primarily bookmarkable)
> * Primarily stateful
>
> Stateless Sites
> -----------------
>
> For example, Google's search is apparently stateless. I can bookmark any
> search result, go away for hours, days or weeks and re-visit the link
> without experiencing a session-expired message. I shop at Amazon quite a
> bit. I can have a page open to a product for hours and no matter when I
> click "buy now", it always works. My Yahoo page is similar. I use
> several computers and I may have a My Yahoo page open from days ago. If I
> click on any link, or submit a form (e.g., weather / stock), it always
> works. So, in many common sites, they appear to be stateless. Some of
> these cites certainly maintain some state on the back-end, but it is
> transparent to the user.
>
> Stateful Sites
> ---------------
>
> Examples of sites which are legitimately stateful and require you to start
> over when the session expires are banking and finance sites. If you leave
> a page open for a while and go back to click on a link, you often get
> "your login timed out" and you have to login again and start over. Some
> of them remember where you wanted to go and redirect after you re-login.
>
> Wicket
> --------
>
> My experience comes from moving http://online.ddpoker.com/ from jsp to
> wicket. I'm about 75% done. Other than normal learning curve time, it
> feels like I've been spending too much time fighting the session
> expiration consequences. My goal (as is most, I would guess) is to create
> a site that has a good user experience. I don't want a user to ever see a
> "page expired message". That is bad application design. I want my
> architecture to help me avoid bad design.
>
> One example was figuring out how to create a bookmarkable form submission
> (I captured my experience on my wiki: http://tinyurl.com/6xhyl3 ).
>
> Another example is trying to get my login form to not expire. However,
> since I unveil it via Ajax, it seems to not want to be stateless ...
> haven't investigated it much, but I'll probably have to create some
> workaround.
>
> My point is that wicket should make things easier. These seem like very
> common issues - I'm curious to hear other users perspectives and
> experiences.
>
> If I were on the wicket team, I'd ask the question: How could one use
> Wicket to rebuild sites like Google, Amazon.com, My Yahoo, etc.?
> Developers are looking to choose a framework to build cool applications.
> There are a lot of choices out there. I chose to use Wicket over other
> frameworks like Ruby on Rails because I fundamentally like the approach of
> 100% Java and very little specialized markup. Being able to refactor,
> find usages and leverage IDE support is a huge win.
>
> Moving Forward
> ------------------
>
> So, to further expand the original question regarding plans for the future
> of Wicket, let me add these thoughts:
>
> It seems like there are multiple approaches to address the Session
> Expiration issue.
>
> One is to make sessions that never expire. Keeping a session alive
> for-ever in memory is obviously not a feasible approach. However, perhaps
> sessions could be spooled to disk after some time. Has there been any
> work done on this?
>
> Another approach is to provide a more graceful session-expiration
> strategy. In many cases, you could redisplay the original page (perhaps
> there are cases where the no-arg constructor would work).
>
> Finally, there are likely cases where parts of a page could be stateful
> and others stateless. In my case, even though I display a login form via
> Ajax, it still should be possible to submit it in a stateless format.
>
> Let me end by saying that I am a big believer in the framework. However,
> I feel the session expiration issue is a stumbling block. I welcome
> others perspectives on this.
>
> Respectfully,
>
> -Doug
>
>
> Jonathan Locke wrote:
>>
>>
>> there will be no wicket 2.0 (no breaking changes). wicket 1.4 and 1.5
>> are next.
>>
>> wicket already provides a good amount of support for statelessness in 1.3
>> and it seems unlikely it will provide much more than it does now.
>>
>> i personally think "stateless" web ui is nearly always a fantasy or an
>> architectural mistake.
>>
>>
>> bhitai wrote:
>>>
>>> Hi all,
>>> First of all, I feel that this forum is great, and the technology being
>>> developed by the Wicket folks is simply amazing. I am trying to pitch
>>> Wicket to my organization that has a Spring mvc implementation in place
>>> (yet the web 2.0 requirements are far beyond what it can handle - hence
>>> the need for re-investigation). The insistence of Spring designers on
>>> stateless-ness has made this idea of transitioning to a session-heavy
>>> framework a rather tough one. I'm therefore curious to know about the
>>> timeline for Wicket 2.0, which I believe will support stateless
>>> components? Can you guys suggest some interim strategies (mitigating
>>> factors) in the meanwhile?
>>>
>>> thanks
>>> jaf
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p16993345.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 2.0 time frame
Posted by Johan Compagner <jc...@gmail.com>.
amazon is also a very simple site if i may say
the webshop are a few pages at most ...
Also they have a lot of cookies called "session" something...
And i didnt see much change in the cookies when i added something to my card
but it could be encoded in one of them i guess.
But removing some cookies didnt loose my order so i guess they do have
something on the server..
By the way, amazon urls are really ugly.. i thought nice looking urls are
soo important....
On Sat, May 3, 2008 at 8:47 PM, Jonathan Locke <jo...@gmail.com>
wrote:
>
>
> i agree with a lot of what eelco says here. that said, i'm definitely
> more
> of the mind to prefer stateful OO techniques over stateless. also, i
> think
> the idea that amazon is actually a stateless web site is probably somewhat
> false already and getting more false as the company grows and scales the
> complexity of their site. even at a company like amazon (actually,
> /particularly/ at a company like amazon given their scale), it would be
> smartest to stress test a simulation/mockup to estimate your actual dollar
> cost per request (or session) over a long period of time (some number of
> years). there are a lot of variables involved and any solid estimate is
> probably better than guessing or going on yesterday's institutional
> "wisdom". just as an example, ten years ago, nobody really believed java
> would ever be fast enough for all the things we're using it for today. 15
> years ago, a megabyte of memory was nearly unthinkable. it might or might
> not be a good idea to scale a stateful site today, but i'd be willing to
> bet
> money that it will be a very good idea before long. the costs of
> statefulness are ramping down fast (in a few short years we will have very
> cheap 64 bit systems with dozens or hundreds of GB of ram, terabytes of
> high
> speed solid state disk, scores of processors, etc... an order of magnitude
> improvement in every dimension should be expected) and on the flip side,
> the
> savings on the complexity/development side are large and growing.
> programming is all about bookkeeping and stateful encapsulation is a
> winner
> in the end. my point is not that you should develop amazon in wicket
> right
> now, but that at some point (and i think soon) it definitely /will/ make
> sense to do so. not understanding where we are concerning these cost
> curves
> could be an incredibly expensive mistake for a company with hundreds or
> thousands of employees and it's not something i'd determine with a bunch
> of
> hand waving or expert opinions. you've got to do the test to find out.
>
>
> Doug Donohoe wrote:
> >
> > Eelco,
> >
> > Thanks for the thorough and thoughtful reply. Perhaps there are things
> > that can be done in the framework with cookies and such.
> >
> > I am going to be looking to additions to wicket. I need to get the
> source
> > built and working in my local environment.
> >
> > -Doug
> >
> >
> >
> > Eelco Hillenius wrote:
> >>
> >>
> >>> Another approach is to provide a more graceful session-expiration
> >>> strategy.
> >>> In many cases, you could redisplay the original page (perhaps there
> are
> >>> cases where the no-arg constructor would work).
> >>
> >> A much better way of solving your problems is to work with plenty of
> >> bookmarkable pages AND use cookies to recognize that you could pick up
> >> a session again, and you could even for instance save the last page or
> >> pages a user visited in the last visited etc (I'm sure Amazon does
> >> something like that). You'll just have to plan carefully for it, and
> >> depend more on your own brainpower than to expect everything to come
> >> from the framework.
> >>
> >>> Finally, there are likely cases where parts of a page could be
> stateful
> >>> and
> >>> others stateless. In my case, even though I display a login form via
> >>> Ajax,
> >>> it still should be possible to submit it in a stateless format.
> >>>
> >>> Let me end by saying that I am a big believer in the framework.
> >>> However, I
> >>> feel the session expiration issue is a stumbling block. I welcome
> >>> others
> >>> perspectives on this.
> >>
> >> The problem that Wicket tries to solve is quite hard*, and
> >> consequently the framework has gotten quite complex. The more we
> >> facilitate corner cases and try to be a framework that fits all
> >> imaginable problems, the harder the framework will be too maintain,
> >> and - due to having more options to cover - the harder it may be to
> >> use.
> >>
> >> We've taken some serious looks at how to come up with a hybrid model
> >> and push Wicket into supporting even more stateless use cases, but so
> >> far these efforts stranded because the solutions we came up with were
> >> very hackish and would probably open up a big fat can of worms we
> >> wouldn't be able to support properly. Maybe we can improve things here
> >> and there (we're all for that!), but it is really important that
> >> people come up with intelligent solutions (patches would be great)
> >> rather than just stating shortcomings.
> >>
> >> Cheers,
> >>
> >> Eelco
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p17036614.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Wicket 2.0 time frame
Posted by Jonathan Locke <jo...@gmail.com>.
i agree with a lot of what eelco says here. that said, i'm definitely more
of the mind to prefer stateful OO techniques over stateless. also, i think
the idea that amazon is actually a stateless web site is probably somewhat
false already and getting more false as the company grows and scales the
complexity of their site. even at a company like amazon (actually,
/particularly/ at a company like amazon given their scale), it would be
smartest to stress test a simulation/mockup to estimate your actual dollar
cost per request (or session) over a long period of time (some number of
years). there are a lot of variables involved and any solid estimate is
probably better than guessing or going on yesterday's institutional
"wisdom". just as an example, ten years ago, nobody really believed java
would ever be fast enough for all the things we're using it for today. 15
years ago, a megabyte of memory was nearly unthinkable. it might or might
not be a good idea to scale a stateful site today, but i'd be willing to bet
money that it will be a very good idea before long. the costs of
statefulness are ramping down fast (in a few short years we will have very
cheap 64 bit systems with dozens or hundreds of GB of ram, terabytes of high
speed solid state disk, scores of processors, etc... an order of magnitude
improvement in every dimension should be expected) and on the flip side, the
savings on the complexity/development side are large and growing.
programming is all about bookkeeping and stateful encapsulation is a winner
in the end. my point is not that you should develop amazon in wicket right
now, but that at some point (and i think soon) it definitely /will/ make
sense to do so. not understanding where we are concerning these cost curves
could be an incredibly expensive mistake for a company with hundreds or
thousands of employees and it's not something i'd determine with a bunch of
hand waving or expert opinions. you've got to do the test to find out.
Doug Donohoe wrote:
>
> Eelco,
>
> Thanks for the thorough and thoughtful reply. Perhaps there are things
> that can be done in the framework with cookies and such.
>
> I am going to be looking to additions to wicket. I need to get the source
> built and working in my local environment.
>
> -Doug
>
>
>
> Eelco Hillenius wrote:
>>
>>
>>> Another approach is to provide a more graceful session-expiration
>>> strategy.
>>> In many cases, you could redisplay the original page (perhaps there are
>>> cases where the no-arg constructor would work).
>>
>> A much better way of solving your problems is to work with plenty of
>> bookmarkable pages AND use cookies to recognize that you could pick up
>> a session again, and you could even for instance save the last page or
>> pages a user visited in the last visited etc (I'm sure Amazon does
>> something like that). You'll just have to plan carefully for it, and
>> depend more on your own brainpower than to expect everything to come
>> from the framework.
>>
>>> Finally, there are likely cases where parts of a page could be stateful
>>> and
>>> others stateless. In my case, even though I display a login form via
>>> Ajax,
>>> it still should be possible to submit it in a stateless format.
>>>
>>> Let me end by saying that I am a big believer in the framework.
>>> However, I
>>> feel the session expiration issue is a stumbling block. I welcome
>>> others
>>> perspectives on this.
>>
>> The problem that Wicket tries to solve is quite hard*, and
>> consequently the framework has gotten quite complex. The more we
>> facilitate corner cases and try to be a framework that fits all
>> imaginable problems, the harder the framework will be too maintain,
>> and - due to having more options to cover - the harder it may be to
>> use.
>>
>> We've taken some serious looks at how to come up with a hybrid model
>> and push Wicket into supporting even more stateless use cases, but so
>> far these efforts stranded because the solutions we came up with were
>> very hackish and would probably open up a big fat can of worms we
>> wouldn't be able to support properly. Maybe we can improve things here
>> and there (we're all for that!), but it is really important that
>> people come up with intelligent solutions (patches would be great)
>> rather than just stating shortcomings.
>>
>> Cheers,
>>
>> Eelco
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p17036614.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 2.0 time frame
Posted by Doug Donohoe <do...@donohoe.info>.
Eelco,
Thanks for the thorough and thoughtful reply. Perhaps there are things that
can be done in the framework with cookies and such.
I am going to be looking to additions to wicket. I need to get the source
built and working in my local environment.
-Doug
Eelco Hillenius wrote:
>
>
>> Another approach is to provide a more graceful session-expiration
>> strategy.
>> In many cases, you could redisplay the original page (perhaps there are
>> cases where the no-arg constructor would work).
>
> A much better way of solving your problems is to work with plenty of
> bookmarkable pages AND use cookies to recognize that you could pick up
> a session again, and you could even for instance save the last page or
> pages a user visited in the last visited etc (I'm sure Amazon does
> something like that). You'll just have to plan carefully for it, and
> depend more on your own brainpower than to expect everything to come
> from the framework.
>
>> Finally, there are likely cases where parts of a page could be stateful
>> and
>> others stateless. In my case, even though I display a login form via
>> Ajax,
>> it still should be possible to submit it in a stateless format.
>>
>> Let me end by saying that I am a big believer in the framework.
>> However, I
>> feel the session expiration issue is a stumbling block. I welcome
>> others
>> perspectives on this.
>
> The problem that Wicket tries to solve is quite hard*, and
> consequently the framework has gotten quite complex. The more we
> facilitate corner cases and try to be a framework that fits all
> imaginable problems, the harder the framework will be too maintain,
> and - due to having more options to cover - the harder it may be to
> use.
>
> We've taken some serious looks at how to come up with a hybrid model
> and push Wicket into supporting even more stateless use cases, but so
> far these efforts stranded because the solutions we came up with were
> very hackish and would probably open up a big fat can of worms we
> wouldn't be able to support properly. Maybe we can improve things here
> and there (we're all for that!), but it is really important that
> people come up with intelligent solutions (patches would be great)
> rather than just stating shortcomings.
>
> Cheers,
>
> Eelco
>
>
--
View this message in context: http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p17034406.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 2.0 time frame
Posted by Eelco Hillenius <ee...@gmail.com>.
Hi,
See reaction inline.
> Stateless Sites
> -----------------
>
> For example, Google's search is apparently stateless. I can bookmark any
> search result, go away for hours, days or weeks and re-visit the link
> without experiencing a session-expired message. I shop at Amazon quite a
> bit. I can have a page open to a product for hours and no matter when I
> click "buy now", it always works. My Yahoo page is similar. I use several
> computers and I may have a My Yahoo page open from days ago. If I click on
> any link, or submit a form (e.g., weather / stock), it always works. So, in
> many common sites, they appear to be stateless. Some of these cites
> certainly maintain some state on the back-end, but it is transparent to the
> user.
Such sites are often relatively simple UI-wise, and bookmarkability
and indexing for searching are important considerations (like you
stated). Wicket might be not the best choice for these kinds of sites.
If you use WIcket for them, you have to plan well, using bookmarkable
pages/ links and other Wicket tricks.
Amongst Wicket's strong points is that it scales very well for
development (due to the fact that you can develop self contained
components and use static typing for instance), and that it makes
developing complex UIs relatively easy. If you don't have to deal with
complex UIs/ large diverse teams etc/ Wicket might actually be
overkill and even in your way. Do note however, that you would likely
replace one hassle (in your case planning for bookmarkability/ session
continuation) with others when using other frameworks (like security
concerns for instance).
> Examples of sites which are legitimately stateful and require you to start
> over when the session expires are banking and finance sites. If you leave a
> page open for a while and go back to click on a link, you often get "your
> login timed out" and you have to login again and start over.
Yeah, such are the sites that I typically had to develop (and still)
during my career. Rather than focussing on whether sessions should be
resumed automatically etc, often a more interesting question is how
complex your UI is. Search and e-commerce sites are fairly simple UI
wise. Things get more interesting - and often very difficult to
implement elegantly with other frameworks - when you incorporate tabs,
wizards, pageable lists etc.
> Some of them
> remember where you wanted to go and redirect after you re-login.
That's easy to achieve with Wicket.
> Wicket
> --------
>
> My experience comes from moving http://online.ddpoker.com/ from jsp to
> wicket. I'm about 75% done. Other than normal learning curve time, it
> feels like I've been spending too much time fighting the session expiration
> consequences. My goal (as is most, I would guess) is to create a site that
> has a good user experience. I don't want a user to ever see a "page expired
> message". That is bad application design. I want my architecture to help
> me avoid bad design.
>
> One example was figuring out how to create a bookmarkable form submission (I
> captured my experience on my wiki: http://tinyurl.com/6xhyl3 ).
>
> Another example is trying to get my login form to not expire. However,
> since I unveil it via Ajax, it seems to not want to be stateless ... haven't
> investigated it much, but I'll probably have to create some workaround.
Yeah, our Ajax implementation is in the way of statelessness. You
could develop something from scratch, where the Ajax part is not based
on behaviors.
> My point is that wicket should make things easier. These seem like very
> common issues - I'm curious to hear other users perspectives and
> experiences.
I would be in favor of having stateless Ajax somehow, at some point.
Not easy though. Wicket is already 10 times more complex than most of
us would like, and facilitating more corner cases (which I mean
respectfully btw) will make it even more complex.
> If I were on the wicket team, I'd ask the question: How could one use
> Wicket to rebuild sites like Google, Amazon.com, My Yahoo, etc.?
> Developers are looking to choose a framework to build cool applications.
> There are a lot of choices out there.
But here is the thing... Most competing frameworks will work OK for
building sites like Google and Amazon etc. Is brilliant as some of
these implementations are I'm sure, the interesting stuff in such
sites happens in the back-end, not so much the UI.
Before I stumbled on Wicket, I was looking for a framework that would
help us scale our development effort, and that would let us develop
web *applications* with complex user interfaces without having to
resort to a big bag of hacks (typically ad-hoc session usage) and
ending up with code that is very hard to maintain.
What I'm saying is that Wicket was *not* designed for Google and
Amazon like sites. If you browse the archives of this list, and even
maybe an interview here and there, you can see that we regularly
stated this in the past.
> I chose to use Wicket over other
> frameworks like Ruby on Rails because I fundamentally like the approach of
> 100% Java and very little specialized markup. Being able to refactor, find
> usages and leverage IDE support is a huge win.
Yeah, that's all nice in itself. But a stateful programming model has
been the basis of Wicket from the start. Jonathan wanted to have an OO
programming model to develop web applications, and OO is stateful by
definition.
> Moving Forward
> ------------------
>
> So, to further expand the original question regarding plans for the future
> of Wicket, let me add these thoughts:
>
> It seems like there are multiple approaches to address the Session
> Expiration issue.
>
> One is to make sessions that never expire. Keeping a session alive for-ever
> in memory is obviously not a feasible approach. However, perhaps sessions
> could be spooled to disk after some time. Has there been any work done on
> this?
I don't think that would go anywhere. Extending session timeouts is
not a real solution by itself.
> Another approach is to provide a more graceful session-expiration strategy.
> In many cases, you could redisplay the original page (perhaps there are
> cases where the no-arg constructor would work).
A much better way of solving your problems is to work with plenty of
bookmarkable pages AND use cookies to recognize that you could pick up
a session again, and you could even for instance save the last page or
pages a user visited in the last visited etc (I'm sure Amazon does
something like that). You'll just have to plan carefully for it, and
depend more on your own brainpower than to expect everything to come
from the framework.
> Finally, there are likely cases where parts of a page could be stateful and
> others stateless. In my case, even though I display a login form via Ajax,
> it still should be possible to submit it in a stateless format.
>
> Let me end by saying that I am a big believer in the framework. However, I
> feel the session expiration issue is a stumbling block. I welcome others
> perspectives on this.
The problem that Wicket tries to solve is quite hard*, and
consequently the framework has gotten quite complex. The more we
facilitate corner cases and try to be a framework that fits all
imaginable problems, the harder the framework will be too maintain,
and - due to having more options to cover - the harder it may be to
use.
We've taken some serious looks at how to come up with a hybrid model
and push Wicket into supporting even more stateless use cases, but so
far these efforts stranded because the solutions we came up with were
very hackish and would probably open up a big fat can of worms we
wouldn't be able to support properly. Maybe we can improve things here
and there (we're all for that!), but it is really important that
people come up with intelligent solutions (patches would be great)
rather than just stating shortcomings.
Cheers,
Eelco
* I'd like to compare Wicket to Hibernate, whereas Hibernate tries to
bridge the gap between OO programming and relational databases, Wicket
tries to gap between OO programming and the stateless HTTP protocol
and the fact that browsers are page oriented rather than widget
oriented. Model 2 frameworks are way less complex because they don't
aim to bridge any paradigm gap.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 2.0 time frame
Posted by Johan Compagner <jc...@gmail.com>.
the examples app are just bad example because there the session expiration
is 5 minutes or something like that
You can up the session expiration to 24 hours or something like that then it
wont happen at all
If you want or use ajax and wicket then you can forget about being stateless
because that will make things statefull no matter what you try.
Google search is just 1 stateless forms, with other stuff google pushes a
lot of state to the browser itself.
If you dont want to up the expiration timeout to 24 hours
then just throw in a ajax poll behavior on your pages
So that as long as the user have the page open in the browser then it will
never expire.
johan
On Thu, May 1, 2008 at 5:02 PM, Doug Donohoe <do...@donohoe.info> wrote:
>
> Hi Jonathan,
>
> I'd like to open a discussion about this stance on "stateless" web ui
> because I think the original question is really one about Wicket's use of
> the session. By default, all wicket forms and links are stateful or
> dependent on the Wicket Session. If the session goes away, the links and
> forms cease to work. This can lead to a bad user experience.
>
> For example, in trying to figure out how to do paging, I was using the
> Wicket repeater view examples application:
> http://wicketstuff.org/wicket13/repeater/. I must have experienced 'page
> expired' messages 5 times because I'd look at an example's source code,
> work
> on some code, go back to learn some more only to lose my place and have to
> start all over again. That was frustrating and unnecessary. Perhaps this
> is just bad application design - they could have used bookmarkable pages -
> but they used the default wicket way.
>
> You stated "i personally think 'stateless' web ui is nearly always a
> fantasy
> or an architectural mistake." It seems to me there are two classes of
> applications:
>
> * Primarily stateless (or in Wicket parlance, primarily bookmarkable)
> * Primarily stateful
>
> Stateless Sites
> -----------------
>
> For example, Google's search is apparently stateless. I can bookmark any
> search result, go away for hours, days or weeks and re-visit the link
> without experiencing a session-expired message. I shop at Amazon quite a
> bit. I can have a page open to a product for hours and no matter when I
> click "buy now", it always works. My Yahoo page is similar. I use
> several
> computers and I may have a My Yahoo page open from days ago. If I click
> on
> any link, or submit a form (e.g., weather / stock), it always works. So,
> in
> many common sites, they appear to be stateless. Some of these cites
> certainly maintain some state on the back-end, but it is transparent to
> the
> user.
>
> Stateful Sites
> ---------------
>
> Examples of sites which are legitimately stateful and require you to start
> over when the session expires are banking and finance sites. If you leave
> a
> page open for a while and go back to click on a link, you often get "your
> login timed out" and you have to login again and start over. Some of them
> remember where you wanted to go and redirect after you re-login.
>
> Wicket
> --------
>
> My experience comes from moving http://online.ddpoker.com/ from jsp to
> wicket. I'm about 75% done. Other than normal learning curve time, it
> feels like I've been spending too much time fighting the session
> expiration
> consequences. My goal (as is most, I would guess) is to create a site
> that
> has a good user experience. I don't want a user to ever see a "page
> expired
> message". That is bad application design. I want my architecture to help
> me avoid bad design.
>
> One example was figuring out how to create a bookmarkable form submission
> (I
> captured my experience on my wiki: http://tinyurl.com/6xhyl3 ).
>
> Another example is trying to get my login form to not expire. However,
> since I unveil it via Ajax, it seems to not want to be stateless ...
> haven't
> investigated it much, but I'll probably have to create some workaround.
>
> My point is that wicket should make things easier. These seem like very
> common issues - I'm curious to hear other users perspectives and
> experiences.
>
> If I were on the wicket team, I'd ask the question: How could one use
> Wicket to rebuild sites like Google, Amazon.com, My Yahoo, etc.?
> Developers are looking to choose a framework to build cool applications.
> There are a lot of choices out there. I chose to use Wicket over other
> frameworks like Ruby on Rails because I fundamentally like the approach of
> 100% Java and very little specialized markup. Being able to refactor,
> find
> usages and leverage IDE support is a huge win.
>
> Moving Forward
> ------------------
>
> So, to further expand the original question regarding plans for the future
> of Wicket, let me add these thoughts:
>
> It seems like there are multiple approaches to address the Session
> Expiration issue.
>
> One is to make sessions that never expire. Keeping a session alive
> for-ever
> in memory is obviously not a feasible approach. However, perhaps sessions
> could be spooled to disk after some time. Has there been any work done on
> this?
>
> Another approach is to provide a more graceful session-expiration
> strategy.
> In many cases, you could redisplay the original page (perhaps there are
> cases where the no-arg constructor would work).
>
> Finally, there are likely cases where parts of a page could be stateful
> and
> others stateless. In my case, even though I display a login form via
> Ajax,
> it still should be possible to submit it in a stateless format.
>
> Let me end by saying that I am a big believer in the framework. However,
> I
> feel the session expiration issue is a stumbling block. I welcome others
> perspectives on this.
>
> Respectfully,
>
> -Doug
>
>
> Jonathan Locke wrote:
> >
> >
> > there will be no wicket 2.0 (no breaking changes). wicket 1.4 and 1.5
> are
> > next.
> >
> > wicket already provides a good amount of support for statelessness in
> 1.3
> > and it seems unlikely it will provide much more than it does now.
> >
> > i personally think "stateless" web ui is nearly always a fantasy or an
> > architectural mistake.
> >
> >
> > bhitai wrote:
> >>
> >> Hi all,
> >> First of all, I feel that this forum is great, and the technology being
> >> developed by the Wicket folks is simply amazing. I am trying to pitch
> >> Wicket to my organization that has a Spring mvc implementation in place
> >> (yet the web 2.0 requirements are far beyond what it can handle -
> hence
> >> the need for re-investigation). The insistence of Spring designers on
> >> stateless-ness has made this idea of transitioning to a session-heavy
> >> framework a rather tough one. I'm therefore curious to know about the
> >> timeline for Wicket 2.0, which I believe will support stateless
> >> components? Can you guys suggest some interim strategies (mitigating
> >> factors) in the meanwhile?
> >>
> >> thanks
> >> jaf
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p16993290.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Wicket 2.0 time frame
Posted by Igor Vaynberg <ig...@gmail.com>.
here are my two cents on this:
wicket is optimized to scale well when building web application with
complex user interfaces. all the examples you gave: amazon, google
search, are web sites, not web applications: they have few pages with
simple user interfaces. so if whatever it is you are building matches
closely to amazon or google search maybe you shouldnt use wicket, it
is simply not the intended use of the framework.
-igor
On Thu, May 1, 2008 at 8:02 AM, Doug Donohoe <do...@donohoe.info> wrote:
>
> Hi Jonathan,
>
> I'd like to open a discussion about this stance on "stateless" web ui
> because I think the original question is really one about Wicket's use of
> the session. By default, all wicket forms and links are stateful or
> dependent on the Wicket Session. If the session goes away, the links and
> forms cease to work. This can lead to a bad user experience.
>
> For example, in trying to figure out how to do paging, I was using the
> Wicket repeater view examples application:
> http://wicketstuff.org/wicket13/repeater/. I must have experienced 'page
> expired' messages 5 times because I'd look at an example's source code, work
> on some code, go back to learn some more only to lose my place and have to
> start all over again. That was frustrating and unnecessary. Perhaps this
> is just bad application design - they could have used bookmarkable pages -
> but they used the default wicket way.
>
> You stated "i personally think 'stateless' web ui is nearly always a fantasy
> or an architectural mistake." It seems to me there are two classes of
> applications:
>
> * Primarily stateless (or in Wicket parlance, primarily bookmarkable)
> * Primarily stateful
>
> Stateless Sites
> -----------------
>
> For example, Google's search is apparently stateless. I can bookmark any
> search result, go away for hours, days or weeks and re-visit the link
> without experiencing a session-expired message. I shop at Amazon quite a
> bit. I can have a page open to a product for hours and no matter when I
> click "buy now", it always works. My Yahoo page is similar. I use several
> computers and I may have a My Yahoo page open from days ago. If I click on
> any link, or submit a form (e.g., weather / stock), it always works. So, in
> many common sites, they appear to be stateless. Some of these cites
> certainly maintain some state on the back-end, but it is transparent to the
> user.
>
> Stateful Sites
> ---------------
>
> Examples of sites which are legitimately stateful and require you to start
> over when the session expires are banking and finance sites. If you leave a
> page open for a while and go back to click on a link, you often get "your
> login timed out" and you have to login again and start over. Some of them
> remember where you wanted to go and redirect after you re-login.
>
> Wicket
> --------
>
> My experience comes from moving http://online.ddpoker.com/ from jsp to
> wicket. I'm about 75% done. Other than normal learning curve time, it
> feels like I've been spending too much time fighting the session expiration
> consequences. My goal (as is most, I would guess) is to create a site that
> has a good user experience. I don't want a user to ever see a "page expired
> message". That is bad application design. I want my architecture to help
> me avoid bad design.
>
> One example was figuring out how to create a bookmarkable form submission (I
> captured my experience on my wiki: http://tinyurl.com/6xhyl3 ).
>
> Another example is trying to get my login form to not expire. However,
> since I unveil it via Ajax, it seems to not want to be stateless ... haven't
> investigated it much, but I'll probably have to create some workaround.
>
> My point is that wicket should make things easier. These seem like very
> common issues - I'm curious to hear other users perspectives and
> experiences.
>
> If I were on the wicket team, I'd ask the question: How could one use
> Wicket to rebuild sites like Google, Amazon.com, My Yahoo, etc.?
> Developers are looking to choose a framework to build cool applications.
> There are a lot of choices out there. I chose to use Wicket over other
> frameworks like Ruby on Rails because I fundamentally like the approach of
> 100% Java and very little specialized markup. Being able to refactor, find
> usages and leverage IDE support is a huge win.
>
> Moving Forward
> ------------------
>
> So, to further expand the original question regarding plans for the future
> of Wicket, let me add these thoughts:
>
> It seems like there are multiple approaches to address the Session
> Expiration issue.
>
> One is to make sessions that never expire. Keeping a session alive for-ever
> in memory is obviously not a feasible approach. However, perhaps sessions
> could be spooled to disk after some time. Has there been any work done on
> this?
>
> Another approach is to provide a more graceful session-expiration strategy.
> In many cases, you could redisplay the original page (perhaps there are
> cases where the no-arg constructor would work).
>
> Finally, there are likely cases where parts of a page could be stateful and
> others stateless. In my case, even though I display a login form via Ajax,
> it still should be possible to submit it in a stateless format.
>
> Let me end by saying that I am a big believer in the framework. However, I
> feel the session expiration issue is a stumbling block. I welcome others
> perspectives on this.
>
> Respectfully,
>
> -Doug
>
>
> Jonathan Locke wrote:
> >
> >
> > there will be no wicket 2.0 (no breaking changes). wicket 1.4 and 1.5 are
> > next.
> >
> > wicket already provides a good amount of support for statelessness in 1.3
> > and it seems unlikely it will provide much more than it does now.
> >
> > i personally think "stateless" web ui is nearly always a fantasy or an
> > architectural mistake.
> >
> >
> > bhitai wrote:
> >>
> >> Hi all,
> >> First of all, I feel that this forum is great, and the technology being
> >> developed by the Wicket folks is simply amazing. I am trying to pitch
> >> Wicket to my organization that has a Spring mvc implementation in place
> >> (yet the web 2.0 requirements are far beyond what it can handle - hence
> >> the need for re-investigation). The insistence of Spring designers on
> >> stateless-ness has made this idea of transitioning to a session-heavy
> >> framework a rather tough one. I'm therefore curious to know about the
> >> timeline for Wicket 2.0, which I believe will support stateless
> >> components? Can you guys suggest some interim strategies (mitigating
> >> factors) in the meanwhile?
> >>
> >> thanks
> >> jaf
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p16993290.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 2.0 time frame
Posted by Jonathan Locke <jo...@gmail.com>.
that's probably because the session timeout on the container hosting that
example is short.
Doug Donohoe wrote:
>
> I'm using Wicket 1.3.3 on Tomcat 6.0.16. I'm using whatever the default
> session store implementation is because I haven't done anything to
> configure it.
>
> Are you suggesting there is a way to avoid session expirations?
>
> I'm not sure your previous suggestion to lengthen session time-out solves
> the issue because (a) it basically delays the problem and (b) causes the
> server to use more memory than perhaps is necessary.
>
> My experience with the wicket-stuff at
> http://wicketstuff.org/wicket13/repeater/ suggests that this is an issue.
> I couldn't step away from a source-code example for more than 10/15
> minutes without having the pages expire, at which point I had to find my
> way back to the right source file. I can't link to the source page since
> it wicket:interface style link (the one at the top of the page).
>
> Rightly or wrongly, as a first time user, what sticks in my mind is an
> awful lot of "page expired" messages. I'm pretty sure I saw them very
> early on when exploring the examples off the main wicket.apache.org page.
> I think this is all hosted life at wicketstuff.org. Is that server
> configured improperly too?
>
> Cheers,
>
> -Doug
>
>
> Jonathan Locke wrote:
>>
>>
>> the more i think about this, the more i'm suspecting you've just got a
>> bunch of configuration problems.
>>
>> what version of wicket are you using and what session store
>> implementation?
>>
>> also, tomcat provides a facility for writing out less active sessions to
>> disk.
>>
>>
>> Doug Donohoe wrote:
>>>
>>> Hi Jonathan,
>>>
>>> I'd like to open a discussion about this stance on "stateless" web ui
>>> because I think the original question is really one about Wicket's use
>>> of the session. By default, all wicket forms and links are stateful or
>>> dependent on the Wicket Session. If the session goes away, the links
>>> and forms cease to work. This can lead to a bad user experience.
>>>
>>> For example, in trying to figure out how to do paging, I was using the
>>> Wicket repeater view examples application:
>>> http://wicketstuff.org/wicket13/repeater/. I must have experienced
>>> 'page expired' messages 5 times because I'd look at an example's source
>>> code, work on some code, go back to learn some more only to lose my
>>> place and have to start all over again. That was frustrating and
>>> unnecessary. Perhaps this is just bad application design - they could
>>> have used bookmarkable pages - but they used the default wicket way.
>>>
>>> You stated "i personally think 'stateless' web ui is nearly always a
>>> fantasy or an architectural mistake." It seems to me there are two
>>> classes of applications:
>>>
>>> * Primarily stateless (or in Wicket parlance, primarily bookmarkable)
>>> * Primarily stateful
>>>
>>> Stateless Sites
>>> -----------------
>>>
>>> For example, Google's search is apparently stateless. I can bookmark
>>> any search result, go away for hours, days or weeks and re-visit the
>>> link without experiencing a session-expired message. I shop at Amazon
>>> quite a bit. I can have a page open to a product for hours and no
>>> matter when I click "buy now", it always works. My Yahoo page is
>>> similar. I use several computers and I may have a My Yahoo page open
>>> from days ago. If I click on any link, or submit a form (e.g., weather
>>> / stock), it always works. So, in many common sites, they appear to be
>>> stateless. Some of these cites certainly maintain some state on the
>>> back-end, but it is transparent to the user.
>>>
>>> Stateful Sites
>>> ---------------
>>>
>>> Examples of sites which are legitimately stateful and require you to
>>> start over when the session expires are banking and finance sites. If
>>> you leave a page open for a while and go back to click on a link, you
>>> often get "your login timed out" and you have to login again and start
>>> over. Some of them remember where you wanted to go and redirect after
>>> you re-login.
>>>
>>> Wicket
>>> --------
>>>
>>> My experience comes from moving http://online.ddpoker.com/ from jsp to
>>> wicket. I'm about 75% done. Other than normal learning curve time, it
>>> feels like I've been spending too much time fighting the session
>>> expiration consequences. My goal (as is most, I would guess) is to
>>> create a site that has a good user experience. I don't want a user to
>>> ever see a "page expired message". That is bad application design. I
>>> want my architecture to help me avoid bad design.
>>>
>>> One example was figuring out how to create a bookmarkable form
>>> submission (I captured my experience on my wiki:
>>> http://tinyurl.com/6xhyl3 ).
>>>
>>> Another example is trying to get my login form to not expire. However,
>>> since I unveil it via Ajax, it seems to not want to be stateless ...
>>> haven't investigated it much, but I'll probably have to create some
>>> workaround.
>>>
>>> My point is that wicket should make things easier. These seem like very
>>> common issues - I'm curious to hear other users perspectives and
>>> experiences.
>>>
>>> If I were on the wicket team, I'd ask the question: How could one use
>>> Wicket to rebuild sites like Google, Amazon.com, My Yahoo, etc.?
>>> Developers are looking to choose a framework to build cool applications.
>>> There are a lot of choices out there. I chose to use Wicket over other
>>> frameworks like Ruby on Rails because I fundamentally like the approach
>>> of 100% Java and very little specialized markup. Being able to
>>> refactor, find usages and leverage IDE support is a huge win.
>>>
>>> Moving Forward
>>> ------------------
>>>
>>> So, to further expand the original question regarding plans for the
>>> future of Wicket, let me add these thoughts:
>>>
>>> It seems like there are multiple approaches to address the Session
>>> Expiration issue.
>>>
>>> One is to make sessions that never expire. Keeping a session alive
>>> for-ever in memory is obviously not a feasible approach. However,
>>> perhaps sessions could be spooled to disk after some time. Has there
>>> been any work done on this?
>>>
>>> Another approach is to provide a more graceful session-expiration
>>> strategy. In many cases, you could redisplay the original page (perhaps
>>> there are cases where the no-arg constructor would work).
>>>
>>> Finally, there are likely cases where parts of a page could be stateful
>>> and others stateless. In my case, even though I display a login form
>>> via Ajax, it still should be possible to submit it in a stateless
>>> format.
>>>
>>> Let me end by saying that I am a big believer in the framework.
>>> However, I feel the session expiration issue is a stumbling block. I
>>> welcome others perspectives on this.
>>>
>>> Respectfully,
>>>
>>> -Doug
>>>
>>>
>>> Jonathan Locke wrote:
>>>>
>>>>
>>>> there will be no wicket 2.0 (no breaking changes). wicket 1.4 and 1.5
>>>> are next.
>>>>
>>>> wicket already provides a good amount of support for statelessness in
>>>> 1.3 and it seems unlikely it will provide much more than it does now.
>>>>
>>>> i personally think "stateless" web ui is nearly always a fantasy or an
>>>> architectural mistake.
>>>>
>>>>
>>>> bhitai wrote:
>>>>>
>>>>> Hi all,
>>>>> First of all, I feel that this forum is great, and the technology
>>>>> being developed by the Wicket folks is simply amazing. I am trying to
>>>>> pitch Wicket to my organization that has a Spring mvc implementation
>>>>> in place (yet the web 2.0 requirements are far beyond what it can
>>>>> handle - hence the need for re-investigation). The insistence of
>>>>> Spring designers on stateless-ness has made this idea of transitioning
>>>>> to a session-heavy framework a rather tough one. I'm therefore curious
>>>>> to know about the timeline for Wicket 2.0, which I believe will
>>>>> support stateless components? Can you guys suggest some interim
>>>>> strategies (mitigating factors) in the meanwhile?
>>>>>
>>>>> thanks
>>>>> jaf
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p16994950.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 2.0 time frame
Posted by Doug Donohoe <do...@donohoe.info>.
I'm using Wicket 1.3.3 on Tomcat 6.0.16. I'm using whatever the default
session store implementation is because I haven't done anything to configure
it.
Are you suggesting there is a way to avoid session expirations?
I'm not sure your previous suggestion to lengthen session time-out solves
the issue because (a) it basically delays the problem and (b) causes the
server to use more memory than perhaps is necessary.
My experience with the wicket-stuff at
http://wicketstuff.org/wicket13/repeater/ suggests that this is an issue. I
couldn't step away from a source-code example for more than 10/15 minutes
without having the pages expire, at which point I had to find my way back to
the right source file. I can't link to the source page since it
wicket:interface style link (the one at the top of the page).
Rightly or wrongly, as a first time user, what sticks in my mind is an awful
lot of "page expired" messages. I'm pretty sure I saw them very early on
when exploring the examples off the main wicket.apache.org page. I think
this is all hosted life at wicketstuff.org. Is that server configured
improperly too?
Cheers,
-Doug
Jonathan Locke wrote:
>
>
> the more i think about this, the more i'm suspecting you've just got a
> bunch of configuration problems.
>
> what version of wicket are you using and what session store
> implementation?
>
> also, tomcat provides a facility for writing out less active sessions to
> disk.
>
>
> Doug Donohoe wrote:
>>
>> Hi Jonathan,
>>
>> I'd like to open a discussion about this stance on "stateless" web ui
>> because I think the original question is really one about Wicket's use of
>> the session. By default, all wicket forms and links are stateful or
>> dependent on the Wicket Session. If the session goes away, the links and
>> forms cease to work. This can lead to a bad user experience.
>>
>> For example, in trying to figure out how to do paging, I was using the
>> Wicket repeater view examples application:
>> http://wicketstuff.org/wicket13/repeater/. I must have experienced 'page
>> expired' messages 5 times because I'd look at an example's source code,
>> work on some code, go back to learn some more only to lose my place and
>> have to start all over again. That was frustrating and unnecessary.
>> Perhaps this is just bad application design - they could have used
>> bookmarkable pages - but they used the default wicket way.
>>
>> You stated "i personally think 'stateless' web ui is nearly always a
>> fantasy or an architectural mistake." It seems to me there are two
>> classes of applications:
>>
>> * Primarily stateless (or in Wicket parlance, primarily bookmarkable)
>> * Primarily stateful
>>
>> Stateless Sites
>> -----------------
>>
>> For example, Google's search is apparently stateless. I can bookmark any
>> search result, go away for hours, days or weeks and re-visit the link
>> without experiencing a session-expired message. I shop at Amazon quite a
>> bit. I can have a page open to a product for hours and no matter when I
>> click "buy now", it always works. My Yahoo page is similar. I use
>> several computers and I may have a My Yahoo page open from days ago. If
>> I click on any link, or submit a form (e.g., weather / stock), it always
>> works. So, in many common sites, they appear to be stateless. Some of
>> these cites certainly maintain some state on the back-end, but it is
>> transparent to the user.
>>
>> Stateful Sites
>> ---------------
>>
>> Examples of sites which are legitimately stateful and require you to
>> start over when the session expires are banking and finance sites. If
>> you leave a page open for a while and go back to click on a link, you
>> often get "your login timed out" and you have to login again and start
>> over. Some of them remember where you wanted to go and redirect after
>> you re-login.
>>
>> Wicket
>> --------
>>
>> My experience comes from moving http://online.ddpoker.com/ from jsp to
>> wicket. I'm about 75% done. Other than normal learning curve time, it
>> feels like I've been spending too much time fighting the session
>> expiration consequences. My goal (as is most, I would guess) is to
>> create a site that has a good user experience. I don't want a user to
>> ever see a "page expired message". That is bad application design. I
>> want my architecture to help me avoid bad design.
>>
>> One example was figuring out how to create a bookmarkable form submission
>> (I captured my experience on my wiki: http://tinyurl.com/6xhyl3 ).
>>
>> Another example is trying to get my login form to not expire. However,
>> since I unveil it via Ajax, it seems to not want to be stateless ...
>> haven't investigated it much, but I'll probably have to create some
>> workaround.
>>
>> My point is that wicket should make things easier. These seem like very
>> common issues - I'm curious to hear other users perspectives and
>> experiences.
>>
>> If I were on the wicket team, I'd ask the question: How could one use
>> Wicket to rebuild sites like Google, Amazon.com, My Yahoo, etc.?
>> Developers are looking to choose a framework to build cool applications.
>> There are a lot of choices out there. I chose to use Wicket over other
>> frameworks like Ruby on Rails because I fundamentally like the approach
>> of 100% Java and very little specialized markup. Being able to refactor,
>> find usages and leverage IDE support is a huge win.
>>
>> Moving Forward
>> ------------------
>>
>> So, to further expand the original question regarding plans for the
>> future of Wicket, let me add these thoughts:
>>
>> It seems like there are multiple approaches to address the Session
>> Expiration issue.
>>
>> One is to make sessions that never expire. Keeping a session alive
>> for-ever in memory is obviously not a feasible approach. However,
>> perhaps sessions could be spooled to disk after some time. Has there
>> been any work done on this?
>>
>> Another approach is to provide a more graceful session-expiration
>> strategy. In many cases, you could redisplay the original page (perhaps
>> there are cases where the no-arg constructor would work).
>>
>> Finally, there are likely cases where parts of a page could be stateful
>> and others stateless. In my case, even though I display a login form via
>> Ajax, it still should be possible to submit it in a stateless format.
>>
>> Let me end by saying that I am a big believer in the framework. However,
>> I feel the session expiration issue is a stumbling block. I welcome
>> others perspectives on this.
>>
>> Respectfully,
>>
>> -Doug
>>
>>
>> Jonathan Locke wrote:
>>>
>>>
>>> there will be no wicket 2.0 (no breaking changes). wicket 1.4 and 1.5
>>> are next.
>>>
>>> wicket already provides a good amount of support for statelessness in
>>> 1.3 and it seems unlikely it will provide much more than it does now.
>>>
>>> i personally think "stateless" web ui is nearly always a fantasy or an
>>> architectural mistake.
>>>
>>>
>>> bhitai wrote:
>>>>
>>>> Hi all,
>>>> First of all, I feel that this forum is great, and the technology being
>>>> developed by the Wicket folks is simply amazing. I am trying to pitch
>>>> Wicket to my organization that has a Spring mvc implementation in place
>>>> (yet the web 2.0 requirements are far beyond what it can handle -
>>>> hence the need for re-investigation). The insistence of Spring
>>>> designers on stateless-ness has made this idea of transitioning to a
>>>> session-heavy framework a rather tough one. I'm therefore curious to
>>>> know about the timeline for Wicket 2.0, which I believe will support
>>>> stateless components? Can you guys suggest some interim strategies
>>>> (mitigating factors) in the meanwhile?
>>>>
>>>> thanks
>>>> jaf
>>>>
>>>>
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p16994426.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 2.0 time frame
Posted by Jonathan Locke <jo...@gmail.com>.
the more i think about this, the more i'm suspecting you've just got a bunch
of configuration problems.
what version of wicket are you using and what session store implementation?
also, tomcat provides a facility for writing out less active sessions to
disk.
Doug Donohoe wrote:
>
> Hi Jonathan,
>
> I'd like to open a discussion about this stance on "stateless" web ui
> because I think the original question is really one about Wicket's use of
> the session. By default, all wicket forms and links are stateful or
> dependent on the Wicket Session. If the session goes away, the links and
> forms cease to work. This can lead to a bad user experience.
>
> For example, in trying to figure out how to do paging, I was using the
> Wicket repeater view examples application:
> http://wicketstuff.org/wicket13/repeater/. I must have experienced 'page
> expired' messages 5 times because I'd look at an example's source code,
> work on some code, go back to learn some more only to lose my place and
> have to start all over again. That was frustrating and unnecessary.
> Perhaps this is just bad application design - they could have used
> bookmarkable pages - but they used the default wicket way.
>
> You stated "i personally think 'stateless' web ui is nearly always a
> fantasy or an architectural mistake." It seems to me there are two
> classes of applications:
>
> * Primarily stateless (or in Wicket parlance, primarily bookmarkable)
> * Primarily stateful
>
> Stateless Sites
> -----------------
>
> For example, Google's search is apparently stateless. I can bookmark any
> search result, go away for hours, days or weeks and re-visit the link
> without experiencing a session-expired message. I shop at Amazon quite a
> bit. I can have a page open to a product for hours and no matter when I
> click "buy now", it always works. My Yahoo page is similar. I use
> several computers and I may have a My Yahoo page open from days ago. If I
> click on any link, or submit a form (e.g., weather / stock), it always
> works. So, in many common sites, they appear to be stateless. Some of
> these cites certainly maintain some state on the back-end, but it is
> transparent to the user.
>
> Stateful Sites
> ---------------
>
> Examples of sites which are legitimately stateful and require you to start
> over when the session expires are banking and finance sites. If you leave
> a page open for a while and go back to click on a link, you often get
> "your login timed out" and you have to login again and start over. Some
> of them remember where you wanted to go and redirect after you re-login.
>
> Wicket
> --------
>
> My experience comes from moving http://online.ddpoker.com/ from jsp to
> wicket. I'm about 75% done. Other than normal learning curve time, it
> feels like I've been spending too much time fighting the session
> expiration consequences. My goal (as is most, I would guess) is to create
> a site that has a good user experience. I don't want a user to ever see a
> "page expired message". That is bad application design. I want my
> architecture to help me avoid bad design.
>
> One example was figuring out how to create a bookmarkable form submission
> (I captured my experience on my wiki: http://tinyurl.com/6xhyl3 ).
>
> Another example is trying to get my login form to not expire. However,
> since I unveil it via Ajax, it seems to not want to be stateless ...
> haven't investigated it much, but I'll probably have to create some
> workaround.
>
> My point is that wicket should make things easier. These seem like very
> common issues - I'm curious to hear other users perspectives and
> experiences.
>
> If I were on the wicket team, I'd ask the question: How could one use
> Wicket to rebuild sites like Google, Amazon.com, My Yahoo, etc.?
> Developers are looking to choose a framework to build cool applications.
> There are a lot of choices out there. I chose to use Wicket over other
> frameworks like Ruby on Rails because I fundamentally like the approach of
> 100% Java and very little specialized markup. Being able to refactor,
> find usages and leverage IDE support is a huge win.
>
> Moving Forward
> ------------------
>
> So, to further expand the original question regarding plans for the future
> of Wicket, let me add these thoughts:
>
> It seems like there are multiple approaches to address the Session
> Expiration issue.
>
> One is to make sessions that never expire. Keeping a session alive
> for-ever in memory is obviously not a feasible approach. However, perhaps
> sessions could be spooled to disk after some time. Has there been any
> work done on this?
>
> Another approach is to provide a more graceful session-expiration
> strategy. In many cases, you could redisplay the original page (perhaps
> there are cases where the no-arg constructor would work).
>
> Finally, there are likely cases where parts of a page could be stateful
> and others stateless. In my case, even though I display a login form via
> Ajax, it still should be possible to submit it in a stateless format.
>
> Let me end by saying that I am a big believer in the framework. However,
> I feel the session expiration issue is a stumbling block. I welcome
> others perspectives on this.
>
> Respectfully,
>
> -Doug
>
>
> Jonathan Locke wrote:
>>
>>
>> there will be no wicket 2.0 (no breaking changes). wicket 1.4 and 1.5
>> are next.
>>
>> wicket already provides a good amount of support for statelessness in 1.3
>> and it seems unlikely it will provide much more than it does now.
>>
>> i personally think "stateless" web ui is nearly always a fantasy or an
>> architectural mistake.
>>
>>
>> bhitai wrote:
>>>
>>> Hi all,
>>> First of all, I feel that this forum is great, and the technology being
>>> developed by the Wicket folks is simply amazing. I am trying to pitch
>>> Wicket to my organization that has a Spring mvc implementation in place
>>> (yet the web 2.0 requirements are far beyond what it can handle - hence
>>> the need for re-investigation). The insistence of Spring designers on
>>> stateless-ness has made this idea of transitioning to a session-heavy
>>> framework a rather tough one. I'm therefore curious to know about the
>>> timeline for Wicket 2.0, which I believe will support stateless
>>> components? Can you guys suggest some interim strategies (mitigating
>>> factors) in the meanwhile?
>>>
>>> thanks
>>> jaf
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p16993349.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org