2007/7/18, Arunkumar Balasubramanian <[EMAIL PROTECTED]>:

Hi

Thanks for your response.

Could you please elaborate on this. I read your message and was trying to
extract the information from it. If you could elaborate it, It will be of
great help.




Ok, I'll try to tell you step by step.

1. Create one (better two, one for each javascript command) "Controller", by
extending the "ControllerSupport" class. In the controller, fill the
attributes through the "ComponentContext" object in the "execute" method.
2. Associate the "controllers" to your definitions:

<definition name="mydefinition" controllerClass="
my.controller.ControllerClass">
...
</definition>

You should use the same template/attributes, since you want to reuse them.
3. Use your definitions.

I hope I have been clearer.

Antonio

Reply via email to