I suggest you read this article:
RichFaces Built-in Functions
To summarize, there are 4 built-in functions:
#{rich:clientId('id')}#{rich:element('id')}#{rich:component('id')}#{rich:findComponent('id')}
Explanation:
- richfaces .
getElementById (HTML-)getElementById ( JavaScript)- , Bean