Prototype? You're talking about the Javascript library Prototype?
Oh, now I see it. You didn't mention about it at all. You seemed to insist that it is part of RichFaces/JSF, you didn't mention that you're mixing RichFaces with Prototype. That was just your fault. It may also be my fault that I assumed it as part of RichFaces, sorry about that then. But with your last attitude where in you insist that I was not helpful, I am indeed not motivated anymore to help you.
For future problems with Javascript libraries, concentrate you on the client side code (HTML), not on the server side code, because that is the only one what Javascript can see and interact with.
You should know that better.