2 Replies Latest reply: Jun 27, 2012 12:10 AM by Rajan.Panchal RSS

    OnApplyTemplatesHandler

    Rajan.Panchal
      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-Oracle
          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
            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