no, client side state is not something we support, and probably will not in
the foreseeable future. there are a lot of downsides to doing so that are
outlined in numerous threads on this list.

encoding state into the url is not feasible, urls have a limit on how much
they can hold which is last time i checked was around 2000 chars. while this
might be enough for tapestry it is not enough for wicket. remember tapestry
has a static page component hierarchy and separates state away from
components, so for tapestry it is enough to save only that state while
wicket doesnt make the distinction so it has to serialize the entire
component hierarchy. so for wicket it would have to be a hidden form, which
means every link has javascript submit handler, which needs you need to have
javascript, etc, etc, etc. combine that with the overhead of client side
state and it doesnt seem like an attractive solution.

1.3 has the disk store that saves pages to disk. so if you keep session id
in a cookie and reuse it upon login the pages can be retrieved from disk and
thus you have "unlimited" storage. you can wrap that store in your own and
save all session attributes into it not just the pages, that way the session
doesnt really time out.

but in the end how many concurrent users do you expect? you must have a
pretty good idea since this is an intranet app, maybe an ajax callback that
prevents the session from timing out is the simplest solution that will
work.

-igor


On 1/31/07, Sean Sullivan <[EMAIL PROTECTED]> wrote:


Awesome. Thanks Igor.    Can Wicket 1.3 encode page state in URLs or in a
hidden form field?

By the way, I noticed Tapestry 4.1 can optionally encode page state as URL
query parameters:

 http://tapestry.apache.org/tapestry4.1/usersguide/state.html


*The [Tapestry] application may be stateless even when it has persistent
page properties, if those properties use the client persistence strategy
(which encodes pesistent page data into URLs as query parameters). This can
be a very powerful approach, though it introduces its own problems: *

   - *The query parameters are an encoding of Java objects, and could
   be decoded to expose privileged information. *
   - *The encoding of page state can result in very long strings
   included as part of URLs, possibly extending beyond the 3000 to 4000
   character effective maximum URL length. *

Regards,

Sean


On 1/31/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> yes, 1.3 has support for stateless pages and stateless forms. but notice
> that by doing this you give up a lot of what makes wicket wicket
>
> -igor
>
>
> On 1/31/07, Sean Sullivan <[EMAIL PROTECTED] > wrote:
> >
> > Hello again,
> >
> > Will it be possible to have zero serverside state in Wicket 1.3?
> >
> > Using Google, I found two references to this topic:
> >
> > *   The next version of Wicket will support client-side models for
> > zero-state scalability.*
> >
> >    source:  http://wicket.sourceforge.net/Features.html
> >
> >    [...] *in 1.1 we are implementing the means to go near zero
> > serverside state. However, we will again try to make it as easy as possible
> > to go from full serverside state to minimal serverside state.
> > *
> > *  source:  http://www.theserverside.com/news/thread.tss?thread_id=34725
> > *
> > **
> >
>
-------------------------------------------------------------------------
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



-------------------------------------------------------------------------
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