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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:06:11+00:00 2026-06-04T02:06:11+00:00

I need to dynamically change the loaded keys through a parameter. Imagine there yould

  • 0

I need to dynamically change the loaded keys through a parameter. Imagine there yould be 2 properties like

<entry key="property.to.load.somesuffix">value1</entry>
<entry key="property.to.load.anothersuffix">value2</entry>

loading these based on the values of the model of the pageclass could be accomblished, for example, with a stringresourcemodel like

new StringResourceModel( "property.to.load.${pageParam.suffix}", this, new Model(pageModel))));

and adding this resource model to a label and render the loaded value of the property in that label. but I need to render the properties value as usual html text as it is rendered by using the wicket:message tag for example like

<wicket:message key="property.to.load.${pageParam.suffix}" />

this, off course, does not work. Any Solutions for that? Maybe Override the internal functionality of the interpretation of the wicket:message tag ?!

Edit

Although the text rendering in the Label seems to be very well, as stated below, and you can set the escapemodelstring, it might be useful to have a possibility to this kind of parameterizing in wicket:message tag and not to add a label for every key.

This issue might be a big Problem from the perspective, that you wont want to have any java code specific stuff in your markup like model specific method names in the keyparameter. So there would be also a need for a generalization of this technique.
any ideas to accomblish that?

  • 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-04T02:06:12+00:00Added an answer on June 4, 2026 at 2:06 am

    I found a good article which describes how to customize the behaviour of a wicket tag or implement your own one.

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

Sidebar

Related Questions

I need to dynamically load banner images into a HTML5 app and would like
We have a system where we need to dynamically change what happens at the
I have a Flash widget (kind of player). I need to dynamically change height
I need to dynamically change tables and variables from time to time, so I
I need to dynamically change the style with jQuery on a select menu. Here's
I'm having a problem with the ID property of dynamically loaded UserControls changing during
I need a char array that will dynamically change in size. I do not
I need to dynamically generate radio or checkbox by jQuery. I use the following
I need to dynamically create textbox. This is my code, but with this I
I need to dynamically build a list of textboxes using javascript and jquery. The

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.