This discussion is archived
2 Replies Latest reply: Jun 26, 2012 10:10 PM by Rajan.Panchal RSS

OnApplyTemplatesHandler

Rajan.Panchal Newbie
Currently Being Moderated
How to use this event handler -OnApplyTemplatesHandler ?
What all can be done in this even handler? Can anyone list that can be done by implementing this handler?

thanks,
Rajan
  • 1. Re: OnApplyTemplatesHandler
    Ian Clough Explorer
    Currently Being Moderated
    One very useful way to use this is to retrieve some data from the OPA session and add it to the velocity context for display on the screen, this is much easier than trying to navigate the API directly from velocity.

    You could also put helper classes into the velocity context that the templates may find useful in generating the screens.
  • 2. Re: OnApplyTemplatesHandler
    Rajan.Panchal Newbie
    Currently Being Moderated
    Hi,
    Thanks for the information. Can you please provide a working example on each of the above points so that I can experiment with it.
    Please send me the working example to rajan.panchal24@gmail.com?
    I am not aware how to code a helper class and modifying the session data into onapplytemplateshandler.
    Thanks,
    Rajan

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points