added 1000 as alternative for amount of rows to show in project idea list

This commit is contained in:
Fredrik Friis 2012-03-22 12:58:30 +09:00
parent c1c128e544
commit 11949a7c16
2 changed files with 5 additions and 4 deletions
src/main/java/se/su/dsv/scipro

@ -1,11 +1,11 @@
package se.su.dsv.scipro.components;
import java.util.Arrays;
import java.util.List;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.model.Model;
import java.util.Arrays;
import java.util.List;
public class ItemsPerPageChoice extends DropDownChoice<Integer> {
@ -19,7 +19,7 @@ public class ItemsPerPageChoice extends DropDownChoice<Integer> {
private void initChoices() {
List<Integer> choices = Arrays.asList(new Integer[]{10, 25, 50, 100});
List<Integer> choices = Arrays.asList(new Integer[]{10, 25, 50, 100, 1000});
setChoices(choices);
setNullValid(false);
setRequired(true);

@ -175,6 +175,7 @@ public class AdminManageProjectIdeaPanel extends Panel {
protected void onUpdate(AjaxRequestTarget target) {
allDataView.setItemsPerPage(itemsPerPageChoice.getModelObject());
target.addComponent(allContainer);
target.addComponent(totalProjectIdeas);
}