Maybe creating a StatelessWebRequestCycle and StatelessWebRequest (and
possibly others) with a restricted/modified API is the answer.
Because, like Johan pointed out, there are things that just don't make
sense when you are trying to run stateless: features that you just
have to give up. It would have to become very page-centric.
On 7/5/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
> yes.. But that still won't fix that problem.
> Because what i describe must be possible no matter what is used...
>
> I don't want to depend on just Serializeable (because then to much can
> go with it)
> So i think that every component should be something like Externalizeable
> and every component should implement that itself. (can also be a special
> interface of ours)
> But this still doesn't fix this problem:
>
> private Link createLinkToPreviousPage(final Page previousPage)
> {
> return actionLink = new Link("prevLink")
> {
> public void onClick()
> {
> setResponsePage(previousPage);
> }
> };
> }
>
> this construct has to work.
> So the problem is that for this we have to rely on java serialization
> (in what form there is)
> Because in this example previous page will be come a instance variable
> in that anonymous inner class how are we going to serialize that?
>
> johan
>
> Eelco Hillenius wrote:
>
> >
> >>
> >> yes serializing one page is enough except if an other page is a
> >> variable inside a component.
> >> For example a link could have an onClick event that transfers them to
> >> the previous page. Then that page must also be serialized because
> >> else that link wouldn't work anymore.
> >>
> >
> > Nasty! So it seems that if we really want this to work efficiently, we
> > have to tighten up Wicket's API here and there. Hmmmm. Bad thing about
> > that would be that it would make Wicket a bit harder to use. Good
> > thing is that it could shield users from writing inefficient,
> > non-scalable code...
> >
> > Eelco
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> > from IBM. Find simple to follow Roadmaps, straightforward articles,
> > informative Webcasts and more! Get everything you need to get up to
> > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> > _______________________________________________
> > Wicket-develop mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-develop
> >
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Wicket-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop