-
1. Re: How to pass absolute URL with A4J.AJAX.Submit when switching tab in a rich:tabPanel
klhoste2 Jul 19, 2010 11:47 AM (in response to klhoste2)I've found a piece of solution here : http://forums.oracle.com/forums/thread.jspa?threadID=822378&tstart=62 but I don't know how to modify the JS file, because it has changed a lot since 2007... I think it must be the ui.pack.js file but there is only a _flashGetActionUrl function and it's not really human readable.
Any idea ?
Thanks
-
2. Re: How to pass absolute URL with A4J.AJAX.Submit when switching tab in a rich:tabPanel
nbelaevski Jul 19, 2010 6:09 PM (in response to klhoste2)Hi,
Are you using JBoss Portlet Bridge?
-
3. Re: How to pass absolute URL with A4J.AJAX.Submit when switching tab in a rich:tabPanel
klhoste2 Jul 20, 2010 2:27 AM (in response to nbelaevski)Hi,
Yes I'm using the JBoss portlet bridge but with the Oracle WCI Portal.
-
4. Re: How to pass absolute URL with A4J.AJAX.Submit when switching tab in a rich:tabPanel
klhoste2 Jul 21, 2010 4:41 AM (in response to nbelaevski)I found the method getActionUrl in org/ajax4jsf/framework.pack.js and it looks like this:
getActionUrl:function(A) { var B=this._actionUrl; var C=B.indexOf("?"); if(B.substring(0,1)=="/") { B=this._pageBase+B } if(!A) { A=this._ext } if(C>=0) { return B.substring(0,C)+A+B.substring(C) } else { return B+A } }
I'd like to add this after the B variable declaration:
if(window.PTIncluder) { B = PTPortlet.getPortletById(getPortletId(this._form)).transformURL(B); // builds gatewayed url }
But I don't know how to write getPortletId function.
Can someone help me on this please ?
-
5. Re: How to pass absolute URL with A4J.AJAX.Submit when switching tab in a rich:tabPanel
alexsmirnov Oct 20, 2010 7:26 PM (in response to klhoste2)You don't need to change URL to be processed by portal. This code generated by portletbridge 1.0 which is Portlet 1.0(JSR-168) compatible. That version does not define resouce requests, therefore I had to use Servlet requests for AJAX. Otherwise, portal adds its own templates to requests and destroys response expected by library.
If you run you application on Portlet 2.0 ( JSR-286 ) compatible platform, there is bridge 2.0 www.jboss.org/portletbridge that uses resource requests for everything including ajax.