reset the model in BandboxSearch when the finder is set, in

order to update the model.

FEA: ItEr76S22ExpenseTrackingSystem
This commit is contained in:
Susana Montes Pedreira 2012-04-24 18:56:55 +01:00
parent 24be482a78
commit c1a96da7de
3 changed files with 9 additions and 0 deletions

View file

@ -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() {

View file

@ -84,4 +84,7 @@ public abstract class BandboxFinder implements IBandboxFinder {
}
};
public void resetModel() {
this.model = null;
}
}

View file

@ -93,4 +93,9 @@ public interface IBandboxFinder {
*/
String objectToString(Object obj);
/**
* Reset the model
*/
void resetModel();
}