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

  • Home
  • SEARCH
  • 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 6860715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:26:36+00:00 2026-05-27T02:26:36+00:00

I have a wicket application which can be deployed in different environments. One of

  • 0

I have a wicket application which can be deployed in different environments. One of this environments is a server (lets call it S) behind a https proxy (lets call it P) so the pages on the application are accessed as

https://P:443/path/mountedPackage/Page?params=values

Everything worked fine in wicket 1.4 but with the migration to wicket 1.5, the request URL is changed to

http://P:443/path/mountedPackage/Page?params=values

(https is replaced by http) which leads to a “400 Bad Request” error. I don’t know why this happens but it brokes my external links to the application.

NOTE: I had this same problem before when submitting a form and calling the method setResponsePage(Page.class) and I solved it by setting a different RequestTarget and manually adding “https” instead of “http” when corresponds:

on wicket 1.4

component.getRequestCycle().setRequestTarget
      (new RedirectRequestTarget("newURLWithPropperHttps"));

and on wicket 1.5

component.getRequestCycle().scheduleRequestHandlerAfterCurrent(new 
    RedirectRequestHandler("newURLWithPropperHttps"));

but now I am not calling any setResponsePage() or similar it happens when following a normal link from outside.

Any help? It is ok to use same solution as shown, but I don’t know where to implement it (I have tried on method get() of the IRequestCycleProvider but that leads me to anohter error)

  • 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-05-27T02:26:37+00:00Added an answer on May 27, 2026 at 2:26 am

    I fixed the problem by writting my own IRequestMapper which acts like the default one but on method mapHandler() sets the protocol to https if it has to.

    final IRequestMapper o=getRootRequestMapper();
    
    setRootRequestMapper(new IRequestMapper() {
       [...] 
       @Override
       public Url mapHandler(IRequestHandler r) {
           Url u=o.mapHandler(r);
           if (condition)
              u.setProtocol("https");
           return u;
       }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I occasionally have some long running AJAX requests in my Wicket application. When this
I have a Java EE 6 Wicket application deployed with maven using IntelliJ IDEA
I have a Wicket application and my pages expire very quickly. Why is this,
I have this web application that i have created using Wicket, Guice and JPA.
Situation In my Wicket application, I have a page which contains two tags. Each
I have a Google Appengine/Guice/Wicket Application. My problem is that due to the mapping
I have a small Wicket app that I can deploy to Glassfish v3 without
i have a web site which is created by wicket(java) but in special cases
I have a Wicket AuthenticatedWebApplication which has several pages and features that need to
I have web application that is behind a proxy. If the user has logged

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.