Skip to content

Commit

Permalink
fixing search on resource pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed May 2, 2016
1 parent 376da3c commit 831d17f
Show file tree
Hide file tree
Showing 2 changed files with 364 additions and 310 deletions.
Expand Up @@ -153,7 +153,15 @@ private void initLayout() {
Form<O> mainForm = new Form<O>(ID_MAIN_FORM);
add(mainForm);

searchModel = new LoadableModel<Search>(false) {
searchModel = createSearchModel();

BoxedTablePanel<SelectableBean<O>> table = createTable();
mainForm.add(table);

}

protected LoadableModel<Search> createSearchModel(){
return new LoadableModel<Search>(false) {

private static final long serialVersionUID = 1L;

Expand All @@ -173,10 +181,6 @@ public Search load() {
return search;
}
};

BoxedTablePanel<SelectableBean<O>> table = createTable();
mainForm.add(table);

}

protected BaseSortableDataProvider<SelectableBean<O>> getProvider() {
Expand Down

0 comments on commit 831d17f

Please sign in to comment.