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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:54:32+00:00 2026-05-13T20:54:32+00:00

In Apache Wicket web framework every component returns false from getOuputMarkupId() by default .

  • 0

In Apache Wicket web framework every component returns false from getOuputMarkupId() by default.

I am curious about the reason. The design decision behind.

I am using ajax components and I need to refresh some others components on a page. To do that I got to setOutputMarkupId(true) on every component which is involved in ajax page refreshing. Because I heavily use ajax I got to do it very often.
And it’s not very convenient. Besides “The Best Code is No Code At All“.

I can handle it this way:

class MyApp extends Application {

   @Override
   public init() {

       Application.addComponentInstantiationListener(
            new  IComponentInstantiationListener() {

                   public void onInstantiation(Component component) {
                      component.setOutputMarkupId(true);
                      component.setOutputMarkupPlaceholderTag(true);
                   }

            }
       );

But is there any trade-off?
Only trade-offs comes to my mind are:

  • rendered page (html) is larger
  • there is some rendering overhead (ie. when id attributes are write down to html)

But those have only small footprint imho.

  • 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-13T20:54:32+00:00Added an answer on May 13, 2026 at 8:54 pm

    It can’t pickup id’s from the .html (yet, it can in 1.5).
    So this would override those id’s, that you may be using for css/js etc

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

Sidebar

Related Questions

I've deployed an Apache Wicket web-application that uses Spring and Hibernate to my Tomcat
How do you set focus on a component with Apache Wicket? Searching leads to
Scenario: Apache Wicket based web application running on Tomcat server. User opens URL in
Where I can find a class from Apache Wicket to implement the selection list
Apache Wicket ( http://wicket.apache.org/ ) and Apache Tapestry ( http://wicket.apache.org/ ) are both component
What is the use of web.xml and why do we use? <filter> <filter-name>wicket.mysticpaste</filter-name> <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
So, I have an web-based application that is using the Wicket 1.4 framework, and
I'm building a new web application that uses Linux, Apache, Tomcat, Wicket, JPA/Hibernate, and
Using Apache Wicket 1.4: I have a panel that calls some setup Javascript in
I'm working on an Apache Wicket project in Eclipse with Maven2 -- my SCM

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.