use of org.mifos.customers.center.struts.actionforms.CenterCustActionForm in project head by mifos.
the class CenterCustAction method search.
/**
* invoked when searching for centers from group creation screen
*/
@Override
@TransactionDemarcate(joinToken = true)
public ActionForward search(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
ActionForward actionForward = super.search(mapping, form, request, response);
CenterCustActionForm actionForm = (CenterCustActionForm) form;
String searchString = actionForm.getSearchString();
CustomerSearch searchResult = this.customerServiceFacade.search(searchString);
addSeachValues(searchString, searchResult.getOfficeId(), searchResult.getOfficeName(), request);
SessionUtils.setQueryResultAttribute(Constants.SEARCH_RESULTS, searchResult.getSearchResult(), request);
return actionForward;
}
Aggregations