You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by josef46 <jo...@gmx.net> on 2010/03/16 14:56:30 UTC

Re: PagingNavigator - Image for navigation and onclick


josef46 wrote:
> 
> i found myself the/a solution
> 
> i commented in my "public class XY extends WebApplication init-methode"
> this line:
> //    getMarkupSettings().setAutomaticLinking(true);
> 
> 

hello,


1)
i would like to replace the naviagtion chars < << ... by images,
following this 
http://javathoughts.capesugarbird.com/2007/04/how-to-change-markup-of-built-in-wicket.html 
instructions.

2)
Here you can see a generated link from me app
...
?x=pPt1KTjFgq7jCvFV7Vtod43EPo0hbPO-EDP4AMUHOsUoaAgCgpvR6F6GtmhTk1TRCvllRbG1Pu4 
img/previous_btn.gif 

...
my problem is the "onclick..."-part - is it possible to leave it?

3)
so i googled and found: 
http://old.nabble.com/extra-%27onclick%27-is-generated-for-an-image-wrapped-by-a-link-td20980894.html;
... instead of wicket:link, use bookmarkablepagelink component instead.

4)
is there any possible way to perform step 3) in my case?

5)
addition: java-src:

import org.apache.wicket.markup.html.navigation.paging.IPageable;
import org.apache.wicket.markup.html.navigation.paging.PagingNavigator;

public class CustomPagingNavigator extends PagingNavigator {

   private static final long serialVersionUID = 1L;

   public CustomPagingNavigator(String id, IPageable pageable) {
     super(id, pageable);
   }
}

5)
addition: html-src:
<wicket:panel>
<div class="dataviewNavigator">
<!-- TODO: 19.02.2010 JO:  email an wicket. 
https://issues.apache.org/jira/browse/WICKET-2754 -->
  img/first_btn.gif   
  img/previous_btn.gif   
&nbsp;

# 
5


&nbsp;
  img/next_btn.gif   
  img/last_btn.gif   
</div>
</wicket:panel>

6)
addition: html-output in firefox(i):
<wicket:panel>
<div class="dataviewNavigator">
<em>  img/first_btn.gif  </em>
<em>  img/previous_btn.gif  </em>
&nbsp;

<em>
1
</em>

?x=3T9OhwrOZt--R3HzzNwd0xe1LmcsK2pHT5s9ZfNnRwzogD2Oli57Zg9fZvz3a0DZQEvwKwF4UkokgM6gq5WEGMnL*Nw12f22 
2


?x=3T9OhwrOZt--R3HzzNwd0xe1LmcsK2pHT5s9ZfNnRwxA7NuB8dKvzti588UuFsExZSeXhb6AJXxgFOh4uYcC1qZBjlucfKIM 
3



&nbsp;
?x=3T9OhwrOZt--R3HzzNwd0xe1LmcsK2pHR7jJcylQSnVTkhGhyoytRIHsOmkLOOIh  
img/next_btn.gif   
?x=3T9OhwrOZt--R3HzzNwd0xe1LmcsK2pHwZiHUF--DlGkX-89FhTk2Of51oKgQbbQ  
img/last_btn.gif   
</div>
</wicket:panel>


Josef




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


-- 
View this message in context: http://old.nabble.com/PagingNavigator---Image-for-navigation-and-onclick-tp27664880p27918172.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org