What are the differences between rich: clientId, rich: component and rich: element?

I mean these three arguments of wealthy individuals:

#{rich:clientId('id')}
#{rich:element('id')}
#{rich:component('id')}

For example, in this method call (actionListener):

 <a4j:support event="onchange" ajaxSingle="true"
    actionListener="#{Bean.actionReset('#{rich:clientId('id')}')}"              
    oncomplete="jsFunction(this.value).text;" />
+4
source share
1 answer

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 .

+6

Source: https://habr.com/ru/post/1527655/


All Articles