Problems with AjaxPagingNavigation

2010-06-23 Thread Matthias Klass

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 campaignList = new 
PageableListView("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:
/ 

(...)








/
What am I doing wrong? Should I use the AjexPagingNavigator instead? 
What's the difference?


Thank you very much in advance,
Matthias



Problems with AjaxPagingNavigation

2010-06-23 Thread Matthias Klass

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 campaignList = new 
PageableListView("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:
/ 

(...)








/
What am I doing wrong? Should I use the AjexPagingNavigator instead? 
What's the difference?


Thank you very much in advance,
Matthias