this is a example for validator in jsf