Apache MyFaces Tomahawk - Sandbox 2.0 Examples

This example uses s:jsCallbackFunction to render a inline function that fade the image using f:ajax 'onevent' property.

The typical use case is how to hook f:ajax 'onevent' with a function callback. The param 'e' knows the source of the ajax operation, but doesn't know the target of further operations. In this case, s:effectFade forId="panel" is used to indicate that a fade operation is required to be applied on the panel with the image.

To generate the event name there are two options:

  • mc:findComponentFrom(component,'someId').functionName
  • s:jsCallbackFunctionName(component,'someId')

Panel A

The generated function name is :click_mainForm_3Aitems_3A0_3AjsFC


MyFaces Logo

Panel B

The generated function name is :click_mainForm_3Aitems_3A1_3AjsFC


MyFaces Logo

Panel C

The generated function name is :click_mainForm_3Aitems_3A2_3AjsFC


MyFaces Logo

Accessed Managed Beans and Resource Bundles




[HOME] [SOURCE OF CURRENT PAGE]