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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:51:35+00:00 2026-05-25T22:51:35+00:00

I have a problem resolving css classes in wicket parent child pages. I have

  • 0

I have a problem resolving css classes in wicket parent child pages.

I have a wicket base page (BasePage) and a child page (ChildPage) extending BasePage.

The div in BasePage is like,

<div class="container-fluid">
    <wicket:child/>
</div>  

and in ChildPage

<wicket:extend>
       <div class="sidebar">
          ..........
       </div> 
 </wicket:extend>

in my base page css I have INCLUDED a css file in which there is a css rule like

.container-fluid > .sidebar {
  float: left;
  width: 220px;
}

the div container-fluid is in BasePage and sidebar div in ChildPage. Bu the problem
is after rendering the child page, it does not find the sidebar class and the page is not showing properly. But if you put the sidebar class css in ChildPage,it works. But if I have to put all child css specifically ,it will be a messy work in future where is a lot fo child page and the css will be redundant.

any clue ?

  • 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-25T22:51:36+00:00Added an answer on May 25, 2026 at 10:51 pm

    The BasePage/ChildPage relationship mostly exists in Java – when the final page is rendered, it should be rendered as a single entity. For example, if you were inserting your CSS via an IHeaderContributor, it would not make a difference if it were in the ChildPage or BasePage – it would get entered at the same point.

    The CSS you have is very restrictive. The > character implies a direct child (not a descendent). As Draevor indicated, Wicket inserts a lot of extra markup in Development Mode. It is generally not a good idea to mix restrictive CSS or Javascript with Wicket Components. Or, rather, be very careful about it.

    I wonder, perhaps the “extra” div that is inserted by Wicket is skipped when the CSS is inserted via the child page? That doesn’t make sense, but it would be an interesting experiment.

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

Sidebar

Related Questions

i have problem with autorotate on iphone i set up in all classes -
I have a problem with a following HTML/CSS code: CSS * { padding: 0;
I've run into a weird IE7 problem.. I have some standard CSS styled buttons
I have a little problem resolving types with Unity. There's an example of what
Ok...so here is the problem. I have a CSS sprite image made up of
I am using MasterPage and using using a CSS in master page. My problem
I have a problem with CSS on Firefox. A fieldset that renders perfectly on
I have this problem when using CSS in IE8. If I use CSS the
I have a problem removing breakpoints that are set when I attach to a
I have problem in some JavaScript that I am writing where the Switch statement

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.