Hi,

I've added a AjaxPagingNavigation to a Panel. Yet, when clicking on the created link nothing happens - no redirection to the new page. When I copy the link directly from the markup and paste it into the browser window, the new page shows up - it's just about the "click" link.

First I created a PageableListView:

/PageableListView<Campaign> campaignList = new PageableListView<Campaign>("campaignList", campaigns, pagesize) {
    (...)
}/

Afterwards I added the campaignList and the Navigator to a markup container:

/ WebMarkupContainer container = new WebMarkupContainer("campaignList.listContainer");
        container.add(campaignList);


AjaxPagingNavigation navigation = new AjaxPagingNavigation("campaignList.navigation", campaignList);
        container.add(navigation);

        if (campaignList.getModelObject().size() < pagesize) {
            navigation.setVisible(false);
        }

        add(container);/

The markup is the following:
/ <div wicket:id="campaignList.listContainer">
<ul class="campaignListlist">
            (...)
</ul>

<span wicket:id="campaignList.navigation">
<a wicket:id="pageLink" href="#">
<span wicket:id="pageNumber"></span>
</a>
</span>
</div>
/
What am I doing wrong? Should I use the AjexPagingNavigator instead? What's the difference?

Thank you very much in advance,
Matthias

Reply via email to