Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can extend the core <code>PagingNavigator</code>:</p> <pre><code>import org.apache.wicket.markup.html.navigation.paging.IPageable; import org.apache.wicket.markup.html.navigation.paging.IPagingLabelProvider; import org.apache.wicket.markup.html.navigation.paging.PagingNavigator; class MyPagingNavigator extends PagingNavigator { public MyPagingNavigator(String id, IPageable pageable) { super(id, pageable); } public MyPagingNavigator(String id, IPageable pageable, IPagingLabelProvider labelProvider) { super(id, pageable, labelProvider); } } </code></pre> <p>Then you create a <code>MyPagingNavigator.html</code> where you can make your changes. But be sure that you don't remove any components from MyPagingNavigator.html</p> <p>You can use the original content from the wicket source (src/wicket/src/main/java/org/apache/wicket/markup/html/navigation/paging/PagingNavigator.html):</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --&gt; &lt;html xmlns:wicket&gt; &lt;body&gt; &lt;wicket:panel&gt; &lt;a wicket:id="first"&gt;&amp;lt;&amp;lt;&lt;/a&gt;&amp;nbsp;&lt;a wicket:id="prev"&gt;&amp;lt;&lt;/a&gt; &lt;span wicket:id="navigation"&gt; &lt;a wicket:id="pageLink" href="#"&gt;&lt;span wicket:id="pageNumber"&gt;5&lt;/span&gt;&lt;/a&gt; &lt;/span&gt; &lt;a wicket:id="next"&gt;&amp;gt;&lt;/a&gt;&amp;nbsp;&lt;a wicket:id="last"&gt;&amp;gt;&amp;gt;&lt;/a&gt; &lt;/wicket:panel&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload