You could check out the RichFaces documentation to get the differences:
rich: ClientID
The rich: clientId ('id') function returns the identifier associated with the client to the identifier of the passed component ('id'). If the specified identifier component is not found, a value is returned instead.
: id="myId" . . rich:clientId(id) HTML . - myForm:myPanel:myId.
:
rich: component ('id') RichFaces. $('ClientId'). ( "id" ). , null. JavaScript API .
JavaScript, RichFaces. , .
:
rich: element ('id') document.getElementById(# {rich: clientId ('id')}). , . , null .
HTML dom .