Re: Versioned resources in separate deployment

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/Versioned-resources-in-separate-deployment-tp1574338p1575469.html

Versioned resources can only work for resources that are served by
Orbeon's page flow controller. If the resource is in your own war,
then it is not served by the Orbeon Forms. This means you can't use
Orbeon's versioned resources mechanism for resources that stored in
your own war.

If the resource was in the Orbeon's resources directory, and hence was
served by Orbeon Forms:

* In your HTML, you'd write:  <link rel="stylesheet" type="text/css"
href="/xforms/client/main.css"/>
* You would place the resource in RESOURCES//xforms/client/main.css
* Assuming you declared a property: <property as="xs:string"
name="oxf.resources.version-number" value="1.6.3"/>
* The link in your HTML would be rewritten
/your-app/1.6.3/xforms/client/main.css (where your-app is the Orbeon
context).
* The browser would request /your-app/1.6.3/xforms/client/main.css and
Orbeon Forms would serve RESOURCES//xforms/client/main.css.

You'll find more information about this on:

http://www.orbeon.com/orbeon/doc/reference-xforms-configuration#versioned-resources

Alex

On Mon, Mar 1, 2010 at 2:04 PM, npujol73 <[hidden email]> wrote:

>
> Hi,
>
>  I have turned out versioned resources. I am setup in a separate deployment.
> I am trying to understand what the url to my images/css should be.
>
> My war is in context ctxA. I have a subdirectory where i have my css under
> $WAR_ROOT/xforms/client/main.css.
>
> What should be the url in my xform ?
>
> This does not work?
>
>  <link rel="stylesheet" type="text/css" href="xforms/client/main.css"/>
>
> To determine what the urls should be to static resources, instances served
> as servlets etc... in a separate deployment is still a mystery to me. Can
> anybody help?
>
>
>
> Thanks
> --
> View this message in context: http://n4.nabble.com/Versioned-resources-in-separate-deployment-tp1574338p1574338.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet