Thanks for your help, Matthew, but it seems doesn't help me
neither... I still cannot distinguish a regular page link and a
incrementing link (which is made of angle brackets).

On Sun, Mar 30, 2008 at 3:18 AM, Matthew Young <[EMAIL PROTECTED]> wrote:
> Ok, I see what your problem really is.  Here is your solution:
>
>     final IBehavior currentPageLinkClassifier = new AbstractBehavior() {
>         private static final long serialVersionUID = 1L;
>         @Override public void onComponentTag(Component c, ComponentTag tag)
>  {
>             if (((Link) c).isEnabled() == false) {
>                 CharSequence current = tag.getString("class");
>                 tag.put("class", "current_page_link "
>                         + (current == null ? "" : current));
>             }
>         }
>     };
>
>
>
>       navigator = new PagingNavigator("navigator", photoListView) {
>             private static final long serialVersionUID = 1L;
>             @Override protected PagingNavigation newNavigation(final
>  IPageable pageable,
>                     final IPagingLabelProvider labelProvider) {
>                 return new AjaxPagingNavigation("navigation", pageable,
>  labelProvider) {
>                     private static final long serialVersionUID = 1L;
>                     @Override protected Link newPagingNavigationLink(String
>  id, IPageable pageable, int pageIndex) {
>                         Link link = super.newPagingNavigationLink(id,
>  pageable, pageIndex);
>                         link.add(currentPageLinkClassifier);
>                         return link;
>                     }
>                 };
>             }
>         };
>
>
>  .current_page_link {
>
>    whatever
>
>  }
>
>  On Sat, Mar 29, 2008 at 5:56 PM, Vitaly Tsaplin <[EMAIL PROTECTED]>
>
>
> wrote:
>
>  >   It works but as I said it highlights not only the link to a current
>  > page, but also links to next and previous pages (increments) if you
>  > navigate to the leftmost or rightmost page since <em> is created for
>  > links to which a navigation is impossible or makes no sense.
>  >
>  > On Sun, Mar 30, 2008 at 1:38 AM, Igor Vaynberg <[EMAIL PROTECTED]>
>  > wrote:
>  > > <div class="nav" wicket:id="navigator">
>  > >
>  > >  <style> div.nav em { color:red; } </style>
>  > >
>  > >  -igor
>  > >
>  > >
>  > >  On Sat, Mar 29, 2008 at 5:04 PM, Vitaly Tsaplin
>  > >
>  > >
>  > > <[EMAIL PROTECTED]> wrote:
>  > >  >    It simply doesn't work. That's why I am asking... <em> tag is
>  > >  >  created for surrounding disabled "links" and <a> for active ones. I
>  > do
>  > >  >  not see any way how to distinguish the current page...
>  > >  >
>  > >  >
>  > >  >
>  > >  >  On Sun, Mar 30, 2008 at 12:59 AM, Matthew Young <[EMAIL PROTECTED]>
>  > wrote:
>  > >  >  > The current page is like this:
>  > >  >  >
>  > >  >  >  <span id="pageLink21" wicket:id="pageLink"><em><span
>  > >  >  >  wicket:id="pageNumber">7</span></em></span>
>  > >  >  >
>  > >  >  >  So you can just style the <em> tag to whichever way you like.
>  > >  >  >
>  > >  >  >  On Sat, Mar 29, 2008 at 4:46 PM, Vitaly Tsaplin <
>  > [EMAIL PROTECTED]>
>  > >  >  >  wrote:
>  > >  >  >
>  > >  >  >
>  > >  >  >
>  > >  >  >  >   Hi,
>  > >  >  >  >
>  > >  >  >  >   How do I change an appearance of a link pointing to a
>  > currently
>  > >  >  >  > presented page? It seems I am supposed to implement my own
>  > navigator
>  > >  >  >  > component from scratch? Any ideas?
>  > >  >  >  >
>  > >  >  >  >   Vitalz
>  > >  >  >  >
>  > >  >  >  >
>  > ---------------------------------------------------------------------
>  > >  >  >  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > >  >  >  > For additional commands, e-mail: [EMAIL PROTECTED]
>  > >  >  >  >
>  > >  >  >  >
>  > >  >  >
>  > >  >
>  > >  >
>  >  ---------------------------------------------------------------------
>  > >  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > >  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  > >  >
>  > >  >
>  > >
>  > >  ---------------------------------------------------------------------
>  > >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > >  For additional commands, e-mail: [EMAIL PROTECTED]
>  > >
>  > >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to