wow!! cool. That was so educational :) Thanks. If I change this, it will change EVERYTHING, right? What if I want to do something like: <em style="color: green;"> only for this PNL ? Is there a way? My other option is to add this style (attribute and CSS actually) to the inner span.
I think that the second option is better. isn't it? Now I need to look how to do this ... On Tue, Apr 29, 2008 at 1:26 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > a PagingNavigationLink is autoenabled (see constructor of PNL). > for a PNL this means, that when the page the PNL links to is the > same as the current page, the link is automatically disabled. > the <em> tags come from a setting in IMarkupSettings. > check accessors for defaultBeforeDisabledLink and > defaultAfterDisabled link. > > Gerolf > > On Mon, Apr 28, 2008 at 4:29 PM, Eyal Golan <[EMAIL PROTECTED]> wrote: > > > hi all, > > I've been trying to change some styling in the navigation toolbar. > > I have a StyledAjaxNavigationToolbar which inherit from > > AjaxNavigationToolbar. > > I thought to override newPagingNavigator that will return > > StyledAjaxPagingNavigator (inherit AjaxPagingNavigator). > > > > I overridden AjaxNavigationToolbar to add class for the navigation > toolbar > > (A small change in the html file). > > Here's the html: > > <?xml version="1.0"?> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" > > xmlns:wicket="http://wicket.sourceforge.net/" xml:lang="en" > lang="en"> > > <wicket:panel> > > <tr class="navigation"> > > <td wicket:id="span"> > > <div class="navigatorLabel"><span > > wicket:id="navigatorLabel">[navigator-label]</span></div> > > <div class="navigator"><span > > wicket:id="navigator">[navigator]</span></div> > > </td> > > </tr> > > </wicket:panel> > > </html> > > > > OK, so what is actually my question? > > In the navigation toolbar we have the labels of the pages. > > Each label is a link EXCEPT the one of the current page. > > All I want to do is add a class to this label (which is in a span). > > I could not find where Wicket put a <em> before the span of the current > > page > > and how it is not a link. > > How should I build the hierarchy? > > > > thanks > > > > > > -- > > Eyal Golan > > [EMAIL PROTECTED] > > > > Visit: http://jvdrums.sourceforge.net/ > > > -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/