5 Replies Latest reply on Oct 20, 2010 7:26 PM by Alexander Smirnov

    How to pass absolute URL with A4J.AJAX.Submit when switching tab in a rich:tabPanel

    kevin 2 Newbie



      The component rich:tabPanel generates the following code for each rich:tab (when switchType is ajax):


      <table cellspacing="0" cellpadding="0" border="0" style="position: relative; height: 100%;" 
       onclick="if (RichFaces.isTabActive('j_id25_lbl')) return false; 
        if (!RichFaces.onTabChange(event, 'j_id11','j_id25')) return false;
        A4J.AJAX.Submit(null,event,{'similarityGroupingId':'j_id25','parameters':{'j_id25':'j_id25'} ,'actionUrl':'/RichfacesProject/page.jsf?javax.portlet.faces.DirectLink=true'} ); 
        return false; this.onclick = null;" id="j_id25_shifted">


      I'm in a portlet environment and the URL should be absolute to be gatewayed by the portal.

      There is the same issue for other Ajax components like rich:datascroller.


      How could I change this "actionUrl" parameter from relative to absolute ?


      Thanks by advance.