PageableListView item removal

2013-03-15 Thread N. Metzger
Hi all,

I'm looking at a strange behavior of my PageableListView. 

I have a PageableListView with an AjaxPagingNavigator within a
WebMarkupContainer. Recently I added an AjaxLink to the list view that
removes an element from the underlying list. The view refreshes, but takes
off the first(!) element of the list view instead of the element that was
really deleted. If I refresh the whole page, the view displays correctly.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageableListView-item-removal-tp4657283.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: PageableListView item removal

2013-03-15 Thread Sven Meier

Hi,

you're probably using #setReuseItems(true) ?

Show us your #populateItem() please.

Sven

On 03/15/2013 07:04 PM, N. Metzger wrote:

Hi all,

I'm looking at a strange behavior of my PageableListView.

I have a PageableListView with an AjaxPagingNavigator within a
WebMarkupContainer. Recently I added an AjaxLink to the list view that
removes an element from the underlying list. The view refreshes, but takes
off the first(!) element of the list view instead of the element that was
really deleted. If I refresh the whole page, the view displays correctly.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageableListView-item-removal-tp4657283.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: PageableListView item removal

2013-03-15 Thread N. Metzger
"(login " +
service.getServiceLogin() +") from current user.");
services.remove(service);
} 
catch (UnavailableDataSourceException e) {
error("A database error occurred while
trying to remove the service " + service);
}
target.add(feedback, serviceContainer);
}
};
if (!isAccountChangePermitted)
removeServiceLink.setVisible(false);
item.add(removeServiceLink);
}
};
serviceContainer.add(serviceList);

AjaxPagingNavigator serviceNavigator = new
AjaxPagingNavigator("serviceNavigator", serviceList);
if (services.size() > ELEMENTS_PER_PAGE)
serviceNavigator.setVisible(true);
else
serviceNavigator.setVisible(false);
serviceContainer.add(serviceNavigator);
add(serviceContainer);



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageableListView-item-removal-tp4657283p4657290.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: PageableListView item removal

2013-03-15 Thread N. Metzger
Also, the ajax timer on the markup container stops after I hit the
removeLink. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageableListView-item-removal-tp4657283p4657291.html
Sent from the Users forum mailing list archive at Nabble.com.

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