Re: Re: Re: Separate deployment, FilesystemResourceManagerFactory, CSS problem

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/Separate-deployment-FilesystemResourceManagerFactory-CSS-problem-tp1560229p1568252.html

Stessy,

I'll have to backtrack a bit to make sure I understand this. Let me
know if this is correct:

* You are using separate deployment.
* Your app is deployed under /epps.
* Orbeon Forms is deployed under /orbeon.

With sperate deployment, the idea is that:

* All the requests coming from the browser are going to
/epps/something, never to /orbeon/something.
* You always put your resources in your app, and don't put anything in
the Orbeon Forms war or its "resources" folder.

How does this sound so far?

Alex

On Wed, Feb 24, 2010 at 6:21 AM, stessy <[hidden email]> wrote:

>
> Alessandro,
>
> I succeeded in configuring the href attribute in link tag to keep the css
> folder inside my forms structure.
>
> <xhtml:link rel="stylesheet" type="text/css"
> href="/orbeon/css/epss-forms.css"/>
>
> If I understand correctly, the orbeon context points to the root folder
> mentioned in the web.xml
> Now when the application analyzes the url, if the root context is not
> 'orbeon', it doesn't add the orbeon context in the href attribute of the
> link tag displayed above.
>
> For example:
> URL http://localhost:7101/epss/orbeon/epss-forms/CP-IP/A2
> href becomes: href="/epss/orbeon/css/epss-forms.css"
> on the other hand, if I use orbeon alone
> URL http://localhost:7101/orbeon/epss-forms/CP-IP/A2
> href becomes: href="/orbeon/orbeon/css/epss-forms.css"
> And the css is not found.
>
> And I have to modify the href by removing the leading '/orbeon' to have my
> css found.
>
> Is that correct ??
>
> My question is: Is it possible to have a path relative to the page-flow.xml
> file for the css ??
>
> With the images I still have problems.
>
> The images are launched via xforms:output
>
> <xforms:output mediatype="image/*" value="'/orbeon/images/CP-IP-A2.gif'"/>
>
> I really don't know what value I have to put to have my image displayed. I
> don't know from where the application searches.
> I already tried multiple solutions:
>
> 1. relative to the page-flow.xml (value="'images/CP-IP-A2.gif'")
> 2. relative to the form (value="'../images/CP-IP-A2.gif'")
> 3. absolute to orbeon (value="'/orbeon/images/CP-IP-A2.gif'")
>
> I think that I'm missing something, but I don't know what.
>
> Thanks a lot for your help.
>
> Regards,
> Stessy
> --
> View this message in context: http://n4.nabble.com/Separate-deployment-FilesystemResourceManagerFactory-CSS-problem-tp1560229p1567517.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