I think i have the solution

youre homepage can do redirectTo()
but don't do it in the constructor
do it in checkAccess()
and let checkAccess() return false.

johan


josh lim wrote:
Hi I am new to wicket and have been trying to prototype a simple
application together ...

Here's my problem.

I've basically have 4 WebPage currently. The HomePage is set to
Start.java. This page basically "redirects" or acts as a "branch"
based on some database information.

an example flow would be to:

1) Start -> Page1 -> Page3 -> Start
2) Start -> Page2 -> Start

3) Start -> EndPage

So In the constructor of Start.java, I had used
"redirectToInterceptPage" successfully, but when I return to Start, I
get an error

"Already redirecting to
'/idea/survey?component=4&version=0&interface=IRedirectListener'.
Cannot redirect more than once...." - But the page _does_ load ...

1. Is there a way out of this? 2. should I be doing "redirectToInter..." in the constructor?
3. in Page1 - 3 I use setResponsePage(new nextPage()) - should I reuse
the page rather than instantiate new pages?

any advise?
Thanks
Josh


-------------------------------------------------------
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-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
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-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to