Re: Re: Versioned resources in separate deployment

Posted by npujol73 on
URL: https://discuss.orbeon.com/Versioned-resources-in-separate-deployment-tp1574338p1579118.html

right this makes sense for links of xhtml elements (link,javascript,img etc...) but how about for xforms:instance src?

I have an xform who is produced by a jsp and contains a xforms:instance with a src pointing to a servlet that is hosted in the same war (separate deployment setup) like this:

<xforms:instance id="fr-url-0" xxforms:readonly="true" xxforms:cache="true" src="/LookupValues?op=mcSet&amp;id=15"/>

That definitely looks like a case of orbeon having to open a connection back to the server is it not? The only way i have been able to get this to work is to use the url-rewriting property and hard code the host and port of the server. This is particularly true in a proxied environment where the request url may not be valid on the local machine. Is there way to make this work with a relative link WITHOUT having to play around with the url-rewriting/proxy-host/proxy-port properties?

Thanks Alex for any feedback.