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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:39:00+00:00 2026-05-27T01:39:00+00:00

I made a ComponentFeedbackPanel for my inputs where I display message for form components.

  • 0

I made a ComponentFeedbackPanel for my inputs where I display message for form components. I have inputs for pass change, where you type your old pass, new pass and repeat new pass:

final PasswordTextField oldPass = createOldPassField();
final PasswordTextField newPass = createNewPassField();
final PasswordTextField newPassRepeat = createNewPassRepeatField();

add( oldPass );
add( newPass );
add( newPassRepeat );

final ComponentFeedbackPanel oldPassFeedbackPanel = new ComponentFeedbackPanel(OLD_PASS_ERROR, oldPass);
    oldPassFeedbackPanel.setOutputMarkupPlaceholderTag( true );

final ComponentFeedbackPanel newPassFeedbackPanel = new ComponentFeedbackPanel(NEW_PASS_ERROR, newPass);
    newPassFeedbackPanel.setOutputMarkupPlaceholderTag( true );

final ComponentFeedbackPanel newPassRepeatFeedbackPanel = new ComponentFeedbackPanel(NEW_PASS_REPEAT_ERROR, newPassRepeat);
    newPassRepeatFeedbackPanel.setOutputMarkupPlaceholderTag( true );

add( oldPassFeedbackPanel );
add( newPassFeedbackPanel );
add( newPassRepeatFeedbackPanel );

It works great when I use build-up wicket validation methods for example: EqualPasswordInputValidation return nice message that inputs don’t match next to one of the components. However when I create own class that extends AbstractValidator and implements IValidator:

/**
 * Error msgs
 */
private static final String ERROR_WRONG_PASS = "wrong_pass";

(...)

private class UserPassValidator extends AbstractValidator<String> implements IValidator<String>
{
    private static final long serialVersionUID = 1L;

    @Override
    protected void onValidate( IValidatable<String> arg0 )
    {
        final String oldPass = arg0.getValue();
        if ( !user.getCryptedPassword().equals( CypherUtil.encodeMd5( oldPass ) ) )
        {
            error( arg0, ERROR_WRONG_PASS );
        }
    }

}

I get warning that error message could not be locate:

Could not locate error message for component: PasswordTextField@profileModifyForm:mp-oldpass and error: [ValidationError message=[null], keys=[wrong_pass, EditPassForm$UserPassValidator], variables=[]]. Tried keys: mp-oldpass.wrong_pass, wrong_pass, mp-oldpass.EditPassForm$UserPassValidator, EditPassForm$UserPassValidator.

I tried to put .properties for every single page that might be connected with this form, the page structure looks like this:

MainPage
  |
  |---AjaxTabbedPanels (it basically works like from wicket example http://www.wicket-library.com/wicket-examples/ajax/tabbed-panel?1)
          |
          |---ProfilePanel (extends Panel)
              |
              |---editProfileWindow (a Modal Window, opened on button click)
                   |
                   |---ProfileEditPass (extends WebPage, pageCreator for modalWindow)
                       |
                       |---EditPassForm (extends Form<Void>, class for form)
                           |
                           |--oldPass (PasswordTextField)
                           |--newPass (PasswordTextField)
                           |--newPassRepeat( PasswordTextField)
                           |--oldPassFeedbackPanel (ComponentFeedbackPanel)
                           |--...and so on for the rest

Combination for .properties file I tried:

mp-oldpass.wrong_pass = "Wprowadzono błędne hasło"
UserPassValidator = "Wprowadzono błędne hasło"

And properties files I tried:

EditPassForm.properties
ProfileEditPass.properties
ProfilePanel.properties
AjaxTabbedPanels.properties
MemberTemplatePage.properties (its basically a template, extended by AjaxTabbedPanels)
  • 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-27T01:39:01+00:00Added an answer on May 27, 2026 at 1:39 am

    You can add the following to your log4j.properties file to display more verbose information about resource localization:

    log4j.logger.org.apache.wicket.resource=DEBUG
    log4j.logger.org.apache.wicket.Localizer=DEBUG
    

    With that, you will see exactly which property files are tried. For validators, YourWicketAppClass.properties in the same folder/package as your YourWicketAppClass class should work.

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

Sidebar

Related Questions

Made solution change: I am trying to display a html table of data.. In
I made a Java Applet with some Standard GUI Components on it. I used
Made a new window application. Right-clicked Frameworks > Add Existing Frameworks. Selected Frameworks folder,
Made a small contact form on php, it gets $_POST variables and mails to
Made a new project, added main.cpp and wrote the code at this URL: http://www.boost.org/doc/libs/1_43_0/doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp
I made a simple application in which an MDI parent loads a child form
I made a form using the Qt Designer which has some dockwidgets, these dockwidgets
I made a program. I also made my own file type, which the program
Made this custom alert box: <script type="text/javascript"> $(function () { var $alert = $('#alert');
I made a simple login form where a user can click on a register

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.