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 9211445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:17:52+00:00 2026-06-18T01:17:52+00:00

We’ve been using Wicket 1.3.7 for a few years now and are currently in

  • 0

We’ve been using Wicket 1.3.7 for a few years now and are currently in the process of upgrading our project to wicket 6.x

I did a lot of research regarding to the page version parameters (e.g. ?1) being append to every URL, and how to get rid of them. (Could not find detailed information on this in the official documentation, unfortunately.) While doing so I read a lot of statements (from Wicket developers and users like

It is needed to keep track of the page version, otherwise it would not be possible to be stateful

and

You need to make your pages stateless to get rid of it

It was also suggested to use a custom implementation of AbstractComponentMapper, overriding encodePageComponentInfo not appending the parameter. Which has the obvious disadvantage of breaking statefulness for the mounted page. (see this SO answer for example)

Yesterday I stumbled upon RenderStrategy.ONE_PASS_RENDER.

I gave it a try, and after doing some testing I have got the impression that this is the setting to “restore the old wicket way”: the page version parameters are gone, yet my pages are stateful.

Okay, there’s a drawback, too. If have to take care of the double-submit problem myself, but I can live with that.

Question: are there any other drawbacks I am not (yet) aware of? Any surprises to be expected?

It seems to be the perfect solution, I just wondered why there are so many discussion about how to get rid of these parameter, even with wicket developers, where this is not suggested….

Thanks in advance.

  • 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-18T01:17:53+00:00Added an answer on June 18, 2026 at 1:17 am

    We went through a similar upgrade path and my first reaction after upgrading was “Woah, these are some nasty URLs…”.

    Initially, we also switched to the one-pass render to have nicer URLs. But then after looking more into it, it appeared that the “?id” does more than just solve the double-sumbit problem.

    Pages with Ajax components can be heavily stateful: as the user interacts with the page, you add components, remove others, etc. With the page ID in the URL parameters, you get back the page in the same state as you left it if you refresh the page (F5) or navigate to another page, then press the back button.

    You lose that feature if you switch to one pass rendering since there is no way for the browser to identify which page from the page store is targeted and usually end up with another instance of the page object.

    This was especially visible in “listing result” pages (pages that show a list/table of “items” with Ajax paging and filtering). On such pages with the one pass rendering, you’d often lose your search criteria or be brought back to the beginning of the results even though you had clicked “next page” a couple times.

    We ended up using the “standard” rendering mechanism (not the one pass redering). URLs don’t look so good but we felt the pros outweigh the cons (and the href do look OK, it’s only the browser URL bar).

    Another concern was the “crawlability” of our site. In order not to have the the 302s or the “url?id” impacting the Google index we added the following code in our Wicket application init method to force one-pass render for the Google Bot:

        setPageRendererProvider(new IPageRendererProvider() {
            @Override
            public PageRenderer get(RenderPageRequestHandler handler) {
                return new WebPageRenderer(handler) {
                    @Override
                    protected boolean isOnePassRender() {
                        // To avoid 302s with Google Bot and have good SEO.
                        String userAgent = ((HttpServletRequest) RequestCycle.get().getRequest().getContainerRequest()).getHeader("User-Agent");
                        if (StringUtils.contains(userAgent, "Googlebot")) {
                            return true;
                        } else {
                            return super.isOnePassRender();
                        }
                    }
                };
            }
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have thousands of HTML files to process using Groovy/Java and I need to
Let's say I'm outputting a post title and in our database, it's Hello Y’all
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am using JSon response to parse title,date content and thumbnail images and place
this is what i have right now Drawing an RSS feed into the php,
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only

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.