I have created simple form accepting address and country, whenever I enter text having # character in address field, in validator it trims all char from # to end also sets other bean variables as null.
and in validator address always trims # char and trailing characters also country is set as null when address contains # character.
I googled lot about but not found anything on this.
public void validate()
if(location.getCountry().equalsIgnoreCase("US")) //getCountry is null when # is in address.