reset the model in BandboxSearch when the finder is set, in
order to update the model. FEA: ItEr76S22ExpenseTrackingSystem
This commit is contained in:
parent
24be482a78
commit
c1a96da7de
3 changed files with 9 additions and 0 deletions
|
|
@ -231,6 +231,7 @@ public class BandboxSearch extends HtmlMacroComponent {
|
|||
|
||||
public void setFinder(String classname) {
|
||||
finder = (IBandboxFinder) getBean(StringUtils.uncapitalize(classname));
|
||||
finder.resetModel();
|
||||
}
|
||||
|
||||
public List<? extends BaseEntity> getModel() {
|
||||
|
|
|
|||
|
|
@ -84,4 +84,7 @@ public abstract class BandboxFinder implements IBandboxFinder {
|
|||
}
|
||||
};
|
||||
|
||||
public void resetModel() {
|
||||
this.model = null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,4 +93,9 @@ public interface IBandboxFinder {
|
|||
*/
|
||||
String objectToString(Object obj);
|
||||
|
||||
/**
|
||||
* Reset the model
|
||||
*/
|
||||
void resetModel();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue