Ajax Action
a4j:ajax
a4j:commandButton
a4j:commandLink
a4j:actionListener
a4j:jsFunction
a4j:poll
a4j:push
a4j:param
Ajax Queue
a4j:queue
a4j:attachQueue
Ajax Output/Containers
a4j:outputPanel
a4j:status
a4j:region
a4j:mediaOutput
a4j:log
Validation
Client Side Validation
rich:graphValidator
rich:message
rich:messages
rich:notify
Data Iteration
a4j:repeat
rich:dataTable
rich:extendedDataTable
rich:collapsibleSubTable
rich:dataScroller
rich:list
rich:dataGrid
Trees
rich:tree
Tree Adaptors
Output/Panels
rich:chart
rich:panel
rich:togglePanel
rich:tabPanel
rich:collapsiblePanel
rich:accordion
rich:popupPanel
rich:progressBar
rich:tooltip
Menus
rich:panelMenu
rich:toolbar
rich:contextMenu
rich:dropDownMenu
Inputs
rich:autocomplete
rich:calendar
rich:editor
rich:inputNumberSlider
rich:inputNumberSpinner
rich:inplaceInput
rich:fileUpload
Selects
rich:inplaceSelect
rich:select
rich:orderingList
rich:pickList
Drag and Drop
Drag and Drop
Miscellaneous
Standard elements skinning
rich:placeholder
RichFaces functions
rich:focus
rich:componentControl
rich:hashParam
rich:hotKey
rich:jQuery

RichFaces provides a set of JavaScript functions to make working with the DOM tree and client side component API easier.

Here is the current list:

  • rich:clientId(id) - returns client Id for component by it's short id.
  • rich:element(id) - returns DOM element for the passed short id
  • rich:component(id) - returns richfaces client component instance to call some API method.
  • rich:isUserInRole(role) - returns if the user has specified role.
  • rich:findComponent(id) - returns component instance for given short id
  • rich:jQuery(id) - returns a jQuery object with an element for given short id

As an example, the result of # {rich:element('input')} expression would be the same as calling: document.getElementById('formId:input').

Below is another example that shows how to pull a value directly from a component using the rich:findComponent call.