the problem with this approach is that the id generated is a page-relative path of the component and can vary drastically depending on what page tha panel is used within. the safest bet is to use classes for css not ids.

-Igor


On 5/30/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
Hi,

About Wicket and CSS,
Well maybe its even already part of wicket and I am not aware but please if its that i am not aware, educate me. Thanks

Now Basically when one creates a component in wicket like for example a Panel.

I will create two files basically

MyPanel.java
MyPanel.html

Now somewhere within the MyPanel.html , i can have:

<div wicket:id="Component1">
 <a wicket:id="LinkComponent1"></a>
</div>

and from wicket naming convention, i realized that Markup Ids are generated like this
Component1_LinkComponent1 which refrences the <a> tag

Now, lets say I need to style the <a> tag

What is the possibility of having the third file like:

MyPanel.css
which will contain as sample:

#Component1_LinkComponent1 {
  color: #FFFFFF;
}

Now please this is not a Must-be-present-at-the-moment feature.... i am just asking if something like this exists or is planned

thanks


Reply via email to