private String filterZone = "5";
private String filterValue="";
private ArrayList<SelectItem> filterZones = new ArrayList<SelectItem>();
public boolean filterStates(Object current) {
Capital currentCapital = (Capital)current;
if (filterValue.length()==0) {
return true;
}
if (currentCapital.getState().toLowerCase().startsWith(filterValue.toLowerCase())) {
return true;
}else {
return false;
}
}