On 10/21/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> 2a: encoding the page in a links is not possible we will not be able to hold
> all the pages in just 2k!
> And as you said the pages whould be HUGE because every link then have that
> page state encoded in the link over and over again
> so 20 links on one page would be 20 times 2K just for all the links.
> So that is really not an option.
Yeah, that would be a bit expensive. So... we could only do this when
we convert the rendered page, in which case it would be best to use a
post anyway.
> You don't have to serialize the whole http session
> only 2 objects: the wicket session and the current page (and the pagemap but
> the pagemap isn't usefull at all in this situation, it doesn't do anything)
Why even the session though. Only the rendered page, we could just
keep the session as is, right?
> this i don't get:
> "ClientPageSavingSessionStore now presumes that the last request was
> encoded by Wicket, but that is a problem for things like shared
> resources and bookmarkable pages. "
>
> that doesn't matter. a shared resource or bookmarkable url call just don't
> have the wicketstate hidden field in the request
> so the page is not deserialized and put in the map. But that map doesn't
> have to be filled because the request isn't comming in for an existing page.
I was distracted by the null pointer I got for even calling the home page
2006-10-21 12:47:26.335::WARN: /wicket-examples/helloworld:
java.lang.NullPointerException
at
wicket.protocol.http.ClientPageSavingSessionStore.getAttribute(ClientPageSavingSessionStore.java:108)
at
wicket.protocol.http.AbstractHttpSessionStore.lookup(AbstractHttpSessionStore.java:194)
at
wicket.protocol.http.WebApplication.getSession(WebApplication.java:635)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:219)
But now I see return super.getAttribute(request, name);, so that
should work yes.
Eelco
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user