The application I'm building must always have bookmarkable URLs which contain
all page parameters needed to reconstruct the page.

Achieved this currently by letting all page events update state/model, then
redirect to a new URL based on that state, so that the URL includes the new
state. But this has the downside of generating a new page every time, so I
was trying to find a way to remove the old pages which I know I don't need,
since the application is all bookmarkable URLs anyway.

I realize we are killing Wicket back button support, but since our entire
app has bookmarkable URLs anyway, I think we'll be fine. We don't need a
whole lot of state preserved from one page to the next, and where we do
we'll implement the flow with ajax anyway, probably, all on a single page.

Still not sure if my approach makes sense, this is just what I've worked out
so far.

If anyone has any tips on how better to approach this, I'd love to hear
them. I'm getting a sense that Wicket is built more to support stateful
flows managed entirely by Wicket than to support a whole slew of
bookmarkable URLs. If there is a way I can keep using the wicket event
framework such that it posts page parameters in the URL somehow against
bookmarkable URLs, it would be much easier than having to do it myself.

-Jason


igor.vaynberg wrote:
> 
> you do realize that by doing this you are completely killing the back
> button
> support in your app....
> 
> -igor
> 
> 
> On 1/23/07, dukejansen <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Eelco Hillenius wrote:
>> >
>> > Well, every user (session) will use memory, correct. But only to a
>> > certain limit. Wicket 1.2 holds a couple of page/ versions in a
>> > session, and Wicket 2.0 by default only holds the current one. So the
>> > creation of a fresh instance (e.g. a bookmarkable page) will replace
>> > another one. Hence, how much memory you'll need is a simple function
>> > of the number of concurrent sessions times the size of your session
>> > and page(s) in it.
>> >
>>
>> How can I instruct Wicket not to maintain the multiple versions of a
>> given
>> page within the session? I've tried the following but when I dump the
>> session contents I still see multiple page versions:
>>
>> getSessionSettings().setMaxPageMaps(1);
>> getPageSettings().setMaxPageVersions(1);
>>
>> Am I missing the boat on this entirely?
>>
>> -Jason
>> --
>> View this message in context:
>> http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a8553452
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a8570548
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to