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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:11:18+00:00 2026-05-19T22:11:18+00:00

I have a modal dialog in Wicket that contains a link. I need to

  • 0

I have a modal dialog in Wicket that contains a link. I need to open an external web page (for example, http://www.google.com) by clicking on the link. The target of the link is set dynamically. How can I do this?


I think that my question hasn’t been so clear(I apologize for that). I need to open Web page from modal dialog. Actually, I can explain the problem in the example of modal dialog that @Don Roby has proposed me (wicketstuff.org/wicket14/ajax/modal-window.0). If we click the “Show modal dialog with a page” link in the example, there will be shown the modal dialog with another link called “Open another modal dialog”. By clicking on that link, I want to open Web page (for example: http://www.google.com). My question is: how to open a Web page in this situation?

  • 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-19T22:11:18+00:00Added an answer on May 19, 2026 at 10:11 pm

    You can use a PageCreator (instead of setContent()), and return a RedirectPage:

    ModalWindow modal = new ModalWindow("modal");
    modal.setPageCreator(new ModalWindow.PageCreator() {
        @Override
        public Page createPage() {
            return new RedirectPage("http://www.google.com");
        }
    });
    add(modal);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a requirement for a modal dialog that makes the page modal except
I have a modal dialog (jqueryui) that contains an accordion (jqueryui). The accordion is
Good morning. I have a modal JQuery dialog that on Open calls and loads
I want to have a modal dialog over part of a web page, just
I have an open modal dialog (Windows Forms). I want, that the dialog is
I have a jQuery modal dialog that loads a different page on an iframe.
I have a modal dialog that contains some input components. The problem appears when
I have a web page and a modal dialog page. On clicking the save
I like to have a popup modal dialog that need to show the list
I have a modal form that is pretty much same as this one: http://jqueryui.com/demos/dialog/modal-form.html

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.