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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:44:58+00:00 2026-06-09T16:44:58+00:00

I have a simple register page with a captcha image and I offer the

  • 0

I have a simple register page with a captcha image and I offer the user an option to get a different captcha image. At first I just tried reloading the page which gives me a new captcha image, but unfortunately the form is then cleared which would be unacceptable and annoying for a user.

How would you solve this issue? If I submit the form from the “new image” link the wicket posting process will return with all sorts of validation errors before it reaches my onSubmit function which is also not good behaviour.

I guess I could also add ajax partial reloading of the captcha image although that is a more complex solution. Any pointers to a good and clean solution would be nice.

  • 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-09T16:44:59+00:00Added an answer on June 9, 2026 at 4:44 pm

    You can submit the form in your “new image” link by making it either a Button or a [Ajax]SubmitLink. Then you can skip everything but the link’s onSubmit method by calling setDefaultFormProcessing(false) on that link:

    checkForm.add(new SubmitLink("submit") {
        @Override
        public void onSubmit() {
            super.onSubmit();
            // ...new captcha here...
        }
    }.setDefaultFormProcessing(false));
    

    This will cause everything to be submitted (and retained for the next render) but it will skip conversion of values, validation, and model updating.

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

Sidebar

Related Questions

I want to make a simple login page, without register just a username and
I have a ASP.NET page with 2 user controls registered. The first one has
I have a simple page that pops up a telerik radwindow on button click.
As of right now, I have the user register/log in and then if successful,
I have a simple user control that contains some buttons that fire events which
ok fairly simple, I have a ToggleSwitch on my page like so. <toolkit:ToggleSwitch x:Name=togLocation
I have simple user control with include ajax control - CalendarExtender. This is code:
I have a simple checkin app: there's a page with a series of pictures
I have an ASP.NET page with two instances of the same Web User Control
I am Working on simple login application in which user is first shown login

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.