← RichFaces FAQ ← Common client side
There are two ways to call JavaScript API on components:
- using useful functions such as #{rich:clientId('id')}.component.foo() (#{rich:clientId('modalPanel')}.component.show() for example)
- 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.
Comments