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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:00:45+00:00 2026-06-11T18:00:45+00:00

the wicket internationalization example available has the following file structure HomePage.java HomePage.html HomePage.properties WicketApplication.java

  • 0

the wicket internationalization example available has the following file structure

HomePage.java
HomePage.html
HomePage.properties
WicketApplication.java
HomePage_nl.properties

Now when creating a project with multiple HTML pages, for example i have
HomePage.html and Login.html, is there a way that i can save all key-value pair in single property for a particular language
or
i will have to have to create all these files

HomePage.properties
HomePage_nl.properties
Login.properties
Login_nl.properties
  • 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-11T18:00:46+00:00Added an answer on June 11, 2026 at 6:00 pm

    Wicket will try to find message resources using the following rules:

    1. Wicket will try to find the message starting from the Page and drilling down to the specific Component through the component hierarchy of the Page. Notice this is a top-down search.

    2. When a message is not found in the component hierarchy, it will be looked for in the Application class.

    The lookup for a resource in every class works in the following way :

    1. Localised searches appending the locale to the file name (Login_nl.properties, then Login.properties), just like Java’s ResourceBundles do.

    2. Down-top through the class hierarchy. That means that if a resource is not found in a class, it will be searched in its superclasses all the way until it hits java.lang.Object.

    So, in your specific case, if Login is a Panel inside HomePage, you can just define the resources in HomePage(_nl).properties. Also, if there are specific application-wide messages, remember that you can define them in WicketApplication(_nl).properties.

    You might find the following Wicket wiki page : Everything about Wicket internationalization useful, it elaborates on this matter.

    (…). This is facilitated by first looking up the message
    (following the algorithm above) for every parent in the component
    hierarchy (aka page hierarchy). Every component can override the
    messages of its child components, so the search starts at the page’s
    properties and then trickles down to the component that uses it (yes,
    its top-down). In order to make overrides specific to a certain child
    component, you can prefix the message key with the component id of the
    child. See ComponentStringResourceLoader for more details.

    If no message was found in the page hierarchy, another search starts
    which will look at your application class and its super classes. So
    Wicket first looks at MyApplication.properties (provided MyApplication
    is the name of your application) and then up the class hierarchy,
    passing org.apache.wicket.Application, up to java.lang.Object. This is
    how Wicket provides its many default i18n texts.

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

Sidebar

Related Questions

I am using wicket framework, and I have made a zip file by Java
I'm new to wicket and stuck with the following problem: I have a table
Wicket has this device called a lazy proxy factory. Given: <property name=foo ref=beanx/> the
I am using wicket 1.5.x and trying to load a css file which will
I have a Wicket AuthenticatedWebApplication which has several pages and features that need to
I'm new to Wicket and was trying the following configuration: class User { private
I've followed the Wicket by Example guide to get the ObjectAutoCompleteField working, and it
package org.apache.wicket.examples.guestbook; import java.util.Date; import org.apache.wicket.IClusterable; public class Comment implements IClusterable { private String
Both GWT and Wicket are stateful, java object oriented based. GWT is completely client
I am looking for wicket project example so I can learn how to create

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.