wrong usage of RichFaces functions fixed