Any
idea why my css displayed in 3.6 but not in 3.7? <head> <title>Brown University Library</title> <link rel="stylesheet"
type="text/css" href="/editor/css/editor.css" /> <xforms:model
schema="/editor/schema/editor.xsd"> ... -- 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 |
Administrator
|
Shouldn't make a difference. Form Runner and Builder both include CSS
exactly that way. Can you see in the Orbeon logs, or with Firebug or TCPMon if needed, what's happening? -Erik On Jun 11, 2008, at 4:02 PM, Park, Michael wrote: > Any idea why my css displayed in 3.6 but not in 3.7? > > <head> > <title>Brown University Library</title> > <link rel="stylesheet" type="text/css" href="/editor/css/ > editor.css" /> > <xforms:model schema="/editor/schema/editor.xsd"> > > ... > > -- > 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 for the Enterprise Done the Right Way http://www.orbeon.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 |
Erik,
I should note I'm using the XForms engine with my Java app. But it appears to be prefixing my href with "/editor/ops": <link href="/editor/css/editor.css" rel="stylesheet" type="text/css" /> <link href="/editor/ops/editor/css/editor.css" type="text/css" rel="stylesheet"> Thanks, Mike -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Wednesday, June 11, 2008 10:18 AM To: [hidden email] Subject: [ops-users] Re: css in version 3.7 Shouldn't make a difference. Form Runner and Builder both include CSS exactly that way. Can you see in the Orbeon logs, or with Firebug or TCPMon if needed, what's happening? -Erik On Jun 11, 2008, at 4:02 PM, Park, Michael wrote: > Any idea why my css displayed in 3.6 but not in 3.7? > > <head> > <title>Brown University Library</title> > <link rel="stylesheet" type="text/css" href="/editor/css/ > editor.css" /> > <xforms:model schema="/editor/schema/editor.xsd"> -- 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 |
Administrator
|
Mike,
On Wed, Jun 11, 2008 at 8:04 AM, Park, Michael <[hidden email]> wrote: > I should note I'm using the XForms engine with my Java app. But it > appears to be prefixing my href with "/editor/ops": > > <link href="/editor/css/editor.css" rel="stylesheet" type="text/css" /> > > <link href="/editor/ops/editor/css/editor.css" type="text/css" > rel="stylesheet"> And editor.css is your own CSS file, not the the one from YUI, right? By using "the XForms engine with my Java app", do you mean that you are using the separate deployment method? What is the servlet context of your application? Is it /editor? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 |
Alex,
The editor.css is my own file and I'm using the separate deployment method. My context is /editor. But for some reason /editor is being prefixed by /editor/ops. My project looks like the following: /editor/css/editor.css /editor/mods/demo.html /editor/WEB-INF/lib/orbeon-xforms-filter.jar /editor/WEB-INF/web.xml Thanks, Mike -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: Thursday, June 12, 2008 6:15 PM To: [hidden email] Subject: [ops-users] Re: RE: Re: css in version 3.7 Mike, On Wed, Jun 11, 2008 at 8:04 AM, Park, Michael <[hidden email]> wrote: > I should note I'm using the XForms engine with my Java app. But it > appears to be prefixing my href with "/editor/ops": > > <link href="/editor/css/editor.css" rel="stylesheet" type="text/css" /> > > <link href="/editor/ops/editor/css/editor.css" type="text/css" > rel="stylesheet"> And editor.css is your own CSS file, not the the one from YUI, right? By using "the XForms engine with my Java app", do you mean that you are using the separate deployment method? What is the servlet context of your application? Is it /editor? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 |
Administrator
|
Mike,
On Thu, Jun 12, 2008 at 9:02 PM, Park, Michael <[hidden email]> wrote: > The editor.css is my own file and I'm using the separate deployment > method. My context is /editor. But for some reason /editor is being > prefixed by /editor/ops. My project looks like the following: > > /editor/css/editor.css > /editor/mods/demo.html > /editor/WEB-INF/lib/orbeon-xforms-filter.jar > /editor/WEB-INF/web.xml And you write: <link href="/editor/css/editor.css" rel="stylesheet" type="text/css" /> Which get rewritten in: <link href="/editor/ops/editor/css/editor.css" type="text/css" rel="stylesheet"> "/editor/ops" is added, which is not correct. Only "/editor" should be added. Which of course still would not work for you. The idea is that you would write "/css/editor.css" in your code, and that the context will be added automatically for you, so you can later easily change where the application is deployed. Could you: 1) Change your code to have only "/css/editor.css", and see what happens. 2) If this still doesn't produce the right path (i.e. /editor/css/editor.css), then try to get the latest nightly build and try again. I am suggesting step #2 because I tried to put your code in a JSP here and the path is rewritten correctly. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 |
Alex,
It's strange. I tried both of your suggestions and I still get /editor/ops as a prefix. This is my web.xml: <?xml version="1.0" encoding="ISO-8859-1"?> <web-app> <display-name>Test Orbeon nightly</display-name> <filter> <filter-name>ops-xforms-filter</filter-name> <filter-class>org.orbeon.oxf.servlet.OPSXFormsFilter</filter-class> <init-param> <param-name>oxf.xforms.renderer.context</param-name> <param-value>/ops</param-value> </init-param> </filter> <filter-mapping> <filter-name>ops-xforms-filter</filter-name> <url-pattern>/editor/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>ops-xforms-filter</filter-name> <url-pattern>/ops/*</url-pattern> </filter-mapping> </web-app> -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: Friday, June 13, 2008 9:52 PM To: [hidden email] Subject: [ops-users] Re: RE: Re: RE: Re: css in version 3.7 Mike, On Thu, Jun 12, 2008 at 9:02 PM, Park, Michael <[hidden email]> wrote: > The editor.css is my own file and I'm using the separate deployment > method. My context is /editor. But for some reason /editor is being > prefixed by /editor/ops. My project looks like the following: > > /editor/css/editor.css > /editor/mods/demo.html > /editor/WEB-INF/lib/orbeon-xforms-filter.jar > /editor/WEB-INF/web.xml And you write: <link href="/editor/css/editor.css" rel="stylesheet" type="text/css" /> Which get rewritten in: <link href="/editor/ops/editor/css/editor.css" type="text/css" rel="stylesheet"> "/editor/ops" is added, which is not correct. Only "/editor" should be added. Which of course still would not work for you. The idea is that you would write "/css/editor.css" in your code, and that the context will be added automatically for you, so you can later easily change where the application is deployed. Could you: 1) Change your code to have only "/css/editor.css", and see what happens. 2) If this still doesn't produce the right path (i.e. /editor/css/editor.css), then try to get the latest nightly build and try again. I am suggesting step #2 because I tried to put your code in a JSP here and the path is rewritten correctly. Alex -- 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 |
In reply to this post by Alessandro Vernet
Alex,
I installed the latest nightly build. I'm fairly convinced that something is prefixing the path. I've attached my war and crossContext file. Thanks, Mike -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: Friday, June 13, 2008 9:52 PM To: [hidden email] Subject: [ops-users] Re: RE: Re: RE: Re: css in version 3.7 Mike, On Thu, Jun 12, 2008 at 9:02 PM, Park, Michael <[hidden email]> wrote: > The editor.css is my own file and I'm using the separate deployment > method. My context is /editor. But for some reason /editor is being > prefixed by /editor/ops. My project looks like the following: > > /editor/css/editor.css > /editor/mods/demo.html > /editor/WEB-INF/lib/orbeon-xforms-filter.jar > /editor/WEB-INF/web.xml And you write: <link href="/editor/css/editor.css" rel="stylesheet" type="text/css" /> Which get rewritten in: <link href="/editor/ops/editor/css/editor.css" type="text/css" rel="stylesheet"> "/editor/ops" is added, which is not correct. Only "/editor" should be added. Which of course still would not work for you. The idea is that you would write "/css/editor.css" in your code, and that the context will be added automatically for you, so you can later easily change where the application is deployed. Could you: 1) Change your code to have only "/css/editor.css", and see what happens. 2) If this still doesn't produce the right path (i.e. /editor/css/editor.css), then try to get the latest nightly build and try again. I am suggesting step #2 because I tried to put your code in a JSP here and the path is rewritten correctly. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 |
In reply to this post by Alessandro Vernet
Alex,
I still can't make sense of this. I installed the latest nightly build. I'm fairly convinced that something is prefixing the path. I've attached a test war and crossContext file to show my problem. Thanks, Mike -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: Friday, June 13, 2008 9:52 PM To: [hidden email] Subject: [ops-users] Re: RE: Re: RE: Re: css in version 3.7 Mike, On Thu, Jun 12, 2008 at 9:02 PM, Park, Michael <[hidden email]> wrote: > The editor.css is my own file and I'm using the separate deployment > method. My context is /editor. But for some reason /editor is being > prefixed by /editor/ops. My project looks like the following: > > /editor/css/editor.css > /editor/mods/demo.html > /editor/WEB-INF/lib/orbeon-xforms-filter.jar > /editor/WEB-INF/web.xml And you write: <link href="/editor/css/editor.css" rel="stylesheet" type="text/css" /> Which get rewritten in: <link href="/editor/ops/editor/css/editor.css" type="text/css" rel="stylesheet"> "/editor/ops" is added, which is not correct. Only "/editor" should be added. Which of course still would not work for you. The idea is that you would write "/css/editor.css" in your code, and that the context will be added automatically for you, so you can later easily change where the application is deployed. Could you: 1) Change your code to have only "/css/editor.css", and see what happens. 2) If this still doesn't produce the right path (i.e. /editor/css/editor.css), then try to get the latest nightly build and try again. I am suggesting step #2 because I tried to put your code in a JSP here and the path is rewritten correctly. Alex -- 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 |
In reply to this post by Erik Bruchez
Erik,
I'm still having troubles with the css. I debugged using Firebug and noticed that "my_webapp_name/ops" is prefixing all paths in href in the head tag. I get href="/editor/ops/editor/css/editor.css" instead of "/editor/css/editor.css". I've been running Orbeon as a separate deployment in version 3.6 for a while with no problems. When I try to run my same app in the nightly build I get this problem displaying due to the css path. I was hoping to upgrade to the newer version because I need some of the new features. Thanks, Mike -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Wednesday, June 11, 2008 10:18 AM To: [hidden email] Subject: [ops-users] Re: css in version 3.7 Shouldn't make a difference. Form Runner and Builder both include CSS exactly that way. Can you see in the Orbeon logs, or with Firebug or TCPMon if needed, what's happening? -Erik On Jun 11, 2008, at 4:02 PM, Park, Michael wrote: > Any idea why my css displayed in 3.6 but not in 3.7? > > <head> > <title>Brown University Library</title> > <link rel="stylesheet" type="text/css" href="/editor/css/ > editor.css" /> > <xforms:model schema="/editor/schema/editor.xsd"> > > ... > > -- > 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 for the Enterprise Done the Right Way http://www.orbeon.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 |
Free forum by Nabble | Edit this page |