added 1000 as alternative for amount of rows to show in project idea list
This commit is contained in:
parent
c1c128e544
commit
11949a7c16
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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user