Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8049097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:41:21+00:00 2026-06-05T06:41:21+00:00

Just a little question. How can I implements a double redirect between three page?

  • 0

Just a little question.
How can I implements a double redirect between three page?

Es.

    public class A extends BasePage{

    public A() {
        super("A");
        setResponsePage(new B());
    }

}

public class B extends BasePage{

    public B() {
        super("B");
        setResponsePage(new C());
    }

}

Wicket just stop at Page B without redirect to page C.

Don’t ask why I have to do this this. I only need to know if is possibile even not using setResponsePage.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:41:23+00:00Added an answer on June 5, 2026 at 6:41 am

    Wicket will use the last executed setResponsePage() to determine its redirect-page. In your case, that’s setResponsePage(new B()) and not setResponsePage(new C()). Indeed, the latter is executed while constructing B.

    If you would do

    public class A extends BasePage{
    
        public A() {
            super("A");
            B pageB = new B();
            setResponsePage(pageB);
            pageB.init();
        }
    
    }
    
    public class B extends BasePage{
    
        public B() {
            super("B");
        }
    
        public init() {
            setResponsePage(new C());
        }
    
    }
    

    it should work, and you would get a redirect to C!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sure it's just a little mistake, but i can't find it. When
Ok. I have looked EVERYWHERE and my little brain just can't understand a better
I am using Gamelogic class which implements no one (just object to be honest
maybe this is just a little misunderstanding but how can a programming language be
I have this class set for a page I'm testing (just starting to try
Before I ask my question, let me just say that I know very little
Just a little confused here... I have a function in postgres, and when I'm
This sounds funny..just a little experiment. i wanted to simulate a drag drop of
Just need a little bit of Javascript to warn people that press the back
I was just reading a little bit on them from http://www.cplusplus.com/doc/tutorial/namespaces/ and it seems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.