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

The Archive Base Latest Questions

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

I have button which works: Button options = new Button(sheets, new StringResourceModel(sheets, null)) {

  • 0

I have button which works:

    Button options = new Button("sheets", new StringResourceModel("sheets", null)) {

        private static final long serialVersionUID = 1L;

        @Override
        public void onSubmit() {
            setResponsePage(new TournamentOptionsPage(tournament, table) {

                private static final long serialVersionUID = 1L;
            });
        }
    };

now I want to replace this button with downloadLink:

        add(new DownloadLink("sheets", new AbstractReadOnlyModel<File>() {
            private static final long serialVersionUID = 1L;

            @Override
            public File getObject() {
                File tempFile;
                try {
                    tempFile = PdfFactory.createSheets(WicketApplication.getSheetsPath(),
                            tournamentService.getSchedule(table, tournament), table);
                } catch (Exception e) {
                    e.printStackTrace();
                    throw new RuntimeException(e);
                }
                return tempFile;
            }
        }, new StringResourceModel("sheets", null)).setCacheDuration(Duration.NONE).setDeleteAfterDownload(true));

but here I have problem with StringResourceModel and when I push link I got exception:

Caused by: java.util.MissingResourceException: Unable to find property: 'sheets'
    at org.apache.wicket.Localizer.getString(Localizer.java:239)
    at org.apache.wicket.Localizer.getString(Localizer.java:170)
    at org.apache.wicket.model.StringResourceModel.getString(StringResourceModel.java:425)
    at org.apache.wicket.model.StringResourceModel.getString(StringResourceModel.java:400)
    at org.apache.wicket.model.StringResourceModel.load(StringResourceModel.java:583)
    at org.apache.wicket.model.StringResourceModel.load(StringResourceModel.java:182)
    at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:119)
    at org.apache.wicket.markup.html.link.DownloadLink.onClick(DownloadLink.java:151)
    at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:188)

Why this doesnt work ?

  • 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-11T02:44:39+00:00Added an answer on June 11, 2026 at 2:44 am

    I’ve opened an issue to discuss this problem

    https://issues.apache.org/jira/browse/WICKET-4738

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

Sidebar

Related Questions

I have a button which when toggled displays/hides a div ('.reportOptions'), this works perfectly
I have a Search Button in my Options menu, which shows a Dialog with
I have following code which works for radio buttons but need to be changed
I have a button in a view which refuses to work. I've got in
I have two simple submit buttons on my form, which work just fine: <button
I have button which post values of form to url but during post i
I have a button which on Click loads another activity, but before it loads
I have a button which creates form elements on click . My addelement function
I have a button which needs to get created dynamically but the problem is
I have a button which is in update panel. When I click on button

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.