How to call JavaScript API on components?

    ←  RichFaces FAQ ←  Common client side


    There are two ways to call JavaScript API on components:

    1. using useful functions such as #{rich:clientId('id')}.component.foo() (#{rich:clientId('modalPanel')}.component.show() for example)
    2. using <rich:componentControl>
    <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>

    You can find real-live example of <rich:componentControl> usage at the RichFaces Live Demo page.