1 Reply Latest reply on Sep 7, 2012 8:35 AM by v.bannur

    How to write custom viewhandler with AjaxViewHandler

    v.bannur

      Hi forum,

       

      I wanted to hide the actual URL of the application, for that I wanted to use URL rewrite by creating custom viewhandler class.

      But currently I am using AjaxViewHandler in my application with following settings.

       

      In Faces-Config.xml:

       

      <application>

              <view-handler>org.ajax4jsf.application.AjaxViewHandler</view-handler>

      </application>

       

      In Web.xml:

       

      <context-param>

              <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

              <param-value>com.sun.facelets.FaceletViewHandler</param-value>

      </context-param>

       

      Pleae let me know in my custom viewhandler class which class i need to extend (either JSF viewhandler or richfaces AjaxViewHandler)?

       

      And in which method i have to rewrite the custom URL?

       

      And where the settings can be changed for custom view handler?