Should use proper richfaces example code 3 wont work with richfaces 4