subclass: DefaultRequestTargetResolverStrategy
and then the method resolveBookmarkablePage(final RequestCycle requestCycle,
final RequestParameters requestParameters)

then create a new:
public CompoundRequestCycleProcessor(IRequestCodingStrategy
requestCodingStrategy,
           IRequestTargetResolverStrategy requestTargetResolverStrategy,
           IEventProcessorStrategy eventProcessorStrategy,
IResponseStrategy responseStrategy,
           IExceptionResponseStrategy exceptionResponseStrategy)

with your subclass of RequestTargetResolverStrategy

And override the method in  WebApplication
   protected IRequestCycleProcessor newRequestCycleProcessor()
   {
       return new  CompoundRequestCycleProcessor(new
WebRequestCodingStrategy(),new Your
RequestTargetResolverStrategy(),null,null,null);
   }




johan

On 11/17/06, Wilson <[EMAIL PROTECTED]> wrote:


Hi Johan,

I am having problems with new instances caused by bookmarkable pages.

I was unable to find how to provide my own implementation of
IRequestTargetResolverStrategy. Probably I must override a method
somewhere,
but I was unable to find it.

How do I provide my implementation to IRequestTargetResolverStrategy?

Tks,

Wilson


subclass: DefaultRequestTargetResolverStrategy
and then resolveBookXXXX

and do what ever you want there. But don't just return a page from a
application wide pool

johan


On 11/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> John,
>
> when I use bookmarkable urls I get every time I reload the page
> a new instance. Is there a way to avoid this?
>
> Maciej
>

--
View this message in context:
http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a7407830
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to